summaryrefslogtreecommitdiffstats
path: root/doc/_templates
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /doc/_templates
parentInitial commit. (diff)
downloadceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz
ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/_templates')
-rw-r--r--doc/_templates/layout.html5
-rw-r--r--doc/_templates/page.html21
-rw-r--r--doc/_templates/smarttoc.html16
3 files changed, 42 insertions, 0 deletions
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
new file mode 100644
index 00000000..c6f57096
--- /dev/null
+++ b/doc/_templates/layout.html
@@ -0,0 +1,5 @@
+{% extends "!layout.html" %}
+
+{%- block extrahead %}
+ <script type="text/javascript" src="http://ayni.ceph.com/public/js/ceph.js"></script>
+{% endblock %}
diff --git a/doc/_templates/page.html b/doc/_templates/page.html
new file mode 100644
index 00000000..cfcf309b
--- /dev/null
+++ b/doc/_templates/page.html
@@ -0,0 +1,21 @@
+{% extends "!page.html" %}
+{% block body %}
+
+<div id="dev-warning" class="admonition note" style="display:none;">
+ <p class="first admonition-title">Notice</p>
+ <p class="last">This document is for a development version of Ceph.</p>
+</div>
+
+<div id="eol-warning" class="admonition warning" style="display:none;">
+ <p class="first admonition-title">Warning</p>
+ <p class="last">This document is for an unsupported version of Ceph.</p>
+</div>
+
+{%- if edit_on_github_url %}
+ <div id="docubetter" align="right" style="display:none; padding: 15px; font-weight: bold;">
+ <a id="edit-on-github" href="{{ edit_on_github_url }}" rel="nofollow">{{ _('Edit on GitHub')}}</a> | <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
+ </div>
+{%- endif %}
+
+ {{ super() }}
+{% endblock %}
diff --git a/doc/_templates/smarttoc.html b/doc/_templates/smarttoc.html
new file mode 100644
index 00000000..7a3fd3f2
--- /dev/null
+++ b/doc/_templates/smarttoc.html
@@ -0,0 +1,16 @@
+{#
+ Sphinx sidebar template: smart table of contents.
+
+ Shows a sidebar ToC that gives you a more global view of the
+ documentation, and not the confusing cur/prev/next which is the
+ default sidebar.
+
+ The ToC will open and collapse automatically to show the part of the
+ hierarchy you are in. Top-level items will always be visible.
+
+#}
+<h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
+{{ toctree(maxdepth=-1, includehidden=True) }}
+
+<!-- ugly kludge to make genindex look like it's part of the toc -->
+<ul style="margin-top: -10px"><li class="toctree-l1"><a class="reference internal" href="{{ pathto('genindex') }}">Index</a></li></ul>