Files
zulip/docs/_templates/layout.html
Lauryn Menard 75f6d543bb docs: Rename "security-model.md" to "securing-your-zulip-server.md".
Updates relative links and any "security-model" label for ref links.

(cherry picked from commit 04275d8e14)
2025-10-21 10:37:53 -07:00

28 lines
1.6 KiB
HTML

{% extends "!layout.html" %}
{% block document %}
{#
# This allows us to insert a warning that appears only on the development
# version e.g. to say that something is likely to have changed.
# For more info see: https://www.sphinx-doc.org/en/master/templating.html
#}
{% if pagename in ["production/securing-your-zulip-server"] and release.endswith('+git') %}
{#
# This page doesn't exist in the stable documentation yet.
# This temporary workaround prevents test failures and should be removed after the next release.
#}
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">You are reading a <strong>development version</strong> of the Zulip documentation. These instructions may contain changes that are not yet present in a supported Zulip Server release.
See <a class="reference external" href="https://zulip.readthedocs.io/en/stable/production/">documentation for the latest stable release</a>.</p>
</div>
{% elif pagename.split("/")[0] == "production" and release.endswith('+git') %}
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">You are reading a <strong>development version</strong> of the Zulip documentation. These instructions may contain changes that are not yet present in a supported Zulip Server release.
See <a class="reference external" href="https://zulip.readthedocs.io/en/stable/{{ pagename }}.html">documentation for the latest stable release</a>.</p>
</div>
{% endif %}
{{ super() }}
{% endblock %}