mirror of
https://github.com/nextcloud/documentation.git
synced 2025-07-23 00:48:36 +00:00
fix: Add versions back to developer and admin docs
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
18
admin_manual/_templates/versions.html
Normal file
18
admin_manual/_templates/versions.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% if READTHEDOCS %}
|
||||
{# Add rst-badge after rst-versions for small badge style. #}
|
||||
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
|
||||
<span class="rst-current-version" data-toggle="rst-current-version">
|
||||
<span class="fa fa-book"> Read the Docs</span>
|
||||
v: {{ current_version }}
|
||||
<span class="fa fa-caret-down"></span>
|
||||
</span>
|
||||
<div class="rst-other-versions">
|
||||
<dl>
|
||||
<dt>{{ _('Versions') }}</dt>
|
||||
{% for slug, url in versions %}
|
||||
<dd><a href="{{ url }}">{{ slug }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
@ -32,7 +32,7 @@ from conf import *
|
||||
extensions += ['sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['../_shared_assets/templates']
|
||||
templates_path = ['../_shared_assets/templates', '_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
@ -52,6 +52,8 @@ master_doc = 'contents'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
#release = '12'
|
||||
|
||||
language = 'en'
|
||||
|
||||
# General information about the project.
|
||||
project = u'Nextcloud %s Administration Manual' % (version)
|
||||
#copyright = u'2012-2017, The Nextcloud developers'
|
||||
|
2
conf.py
2
conf.py
@ -8,6 +8,8 @@ dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||
sys.path.insert(0, os.path.abspath(dir_path + '/_ext'))
|
||||
now = datetime.datetime.now()
|
||||
|
||||
os.environ["READTHEDOCS"] = "True"
|
||||
|
||||
extensions = ['sphinx_rtd_theme', 'sphinx_rtd_dark_mode', 'sphinx_copybutton', 'sphinxcontrib.mermaid']
|
||||
|
||||
# General information about the project.
|
||||
|
18
developer_manual/_templates/versions.html
Normal file
18
developer_manual/_templates/versions.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% if READTHEDOCS %}
|
||||
{# Add rst-badge after rst-versions for small badge style. #}
|
||||
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
|
||||
<span class="rst-current-version" data-toggle="rst-current-version">
|
||||
<span class="fa fa-book"> Read the Docs</span>
|
||||
v: {{ current_version }}
|
||||
<span class="fa fa-caret-down"></span>
|
||||
</span>
|
||||
<div class="rst-other-versions">
|
||||
<dl>
|
||||
<dt>{{ _('Versions') }}</dt>
|
||||
{% for slug, url in versions %}
|
||||
<dd><a href="{{ url }}">{{ slug }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
@ -32,7 +32,7 @@ from conf import *
|
||||
extensions += ['sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx', 'sphinxcontrib.phpdomain', 'sphinx_toolbox.collapse', 'sphinx_reredirects']
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['../_shared_assets/templates']
|
||||
templates_path = ['../_shared_assets/templates', '_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
@ -172,7 +172,6 @@ html_show_sphinx = False
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'NextcloudDeveloperManual'
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
|
Reference in New Issue
Block a user