Files
bottom/docs/overrides/main.html
T
Clement Tsang 8add5183ad docs: add banner for nightly version (#1931)
* docs: try and add notification for nightly version

* hmmm

* hmmmm

* I forgot to run the banner

* fix spacing

* some more comments

* fmt
2025-12-26 00:58:11 -05:00

11 lines
602 B
HTML

{% extends "base.html" %}
{% block announce %}
<!-- It's like helm and you need to add dashes, see https://github.com/squidfunk/mkdocs-material/discussions/5803#discussioncomment-7690065 -->
{%- if config.extra.nightly -%}
<!-- Need to reapply margin from base CSS, which is overridden in extra CSS (to fix empty banner) -->
<div style="margin: 0.6rem auto">
This is <strong>nightly</strong> documentation, and it may differ from stable. Please see <strong><a href="{{ '../' ~ base_url }}">here for stable documentation</a></strong>.
</div>
{%- endif -%}
{% endblock %}