mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #962 from nextcloud/stb14-stable-links-footer
Add stable to the version links and fix conf
This commit is contained in:
commit
bb89e69037
@ -8,7 +8,7 @@
|
||||
}
|
||||
|
||||
/* Remove unwanted data on the bottom left sidebar */
|
||||
.rst-versions.shift-up .rst-other-versions > dl:not(:nth-child(1)):not(:nth-child(2)),
|
||||
.rst-versions.shift-up .rst-other-versions > dl:not(:nth-child(1)),
|
||||
.rst-versions.shift-up .rst-other-versions > a,
|
||||
.rst-versions.shift-up .rst-other-versions > hr {
|
||||
display:none
|
||||
|
||||
16
conf.py
16
conf.py
@ -28,6 +28,7 @@ html_theme_options = {
|
||||
'style_external_links': True,
|
||||
'display_version': False,
|
||||
}
|
||||
|
||||
# relative path to subdirectories
|
||||
html_logo = "../_shared_assets/static/logo-white.png"
|
||||
|
||||
@ -36,26 +37,21 @@ rst_epilog = '.. |version| replace:: %s' % version
|
||||
|
||||
# building the versions list
|
||||
def generateVersionsDocs(current_docs):
|
||||
version_start = 13
|
||||
version_stable = int(version)
|
||||
version_start = 13 # THIS IS THE SUPPORTED VERSION NUMBER
|
||||
version_stable = 15 # INCREASE THIS NUMBER TO THE LATEST STABLE VERSION NUMBER
|
||||
versions_doc = []
|
||||
for v in range(version_start, version_stable):
|
||||
for v in range(version_start, version_stable + 1):
|
||||
url = 'https://docs.nextcloud.com/server/%s/%s' % (str(v), current_docs)
|
||||
versions_doc.append(tuple((v, url)))
|
||||
versions_doc.append(tuple((version, 'https://docs.nextcloud.com/server/%s/%s' % (version, current_docs))))
|
||||
versions_doc.append(tuple(('stable', 'https://docs.nextcloud.com/server/%s/%s' % ('stable', current_docs))))
|
||||
versions_doc.append(tuple(('latest', 'https://docs.nextcloud.com/server/%s/%s' % ('latest', current_docs))))
|
||||
return versions_doc
|
||||
|
||||
html_context = {
|
||||
'current_version': version,
|
||||
'READTHEDOCS': True,
|
||||
'downloads': [
|
||||
('User Manual', 'https://docs.nextcloud.com/server/%s/Nextcloud_User_Manual.pdf' % version),
|
||||
('Administration Manual', 'https://docs.nextcloud.com/server/%s/Nextcloud_Server_Administration_Manual.pdf' % version),
|
||||
('Developer Manual', 'https://docs.nextcloud.com/server/%s/NextcloudDeveloperManual.pdf' % version)
|
||||
],
|
||||
'extra_css_files': ['_static/custom.css']
|
||||
}
|
||||
|
||||
edit_on_github_project = 'nextcloud/documentation'
|
||||
edit_on_github_branch = 'master'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user