Skip to content

Commit dcaee62

Browse files
authored
Merge pull request #13662 from nextcloud/backport/13646/stable32
2 parents b69dc66 + a5626da commit dcaee62

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

admin_manual/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
# disable "Created using Sphinx" in the HTML footer (default is True)
5757
html_show_sphinx = False
5858

59+
# Add canonical link in all generated pages linking to their respective equivalent
60+
# in `stable` (regardless of which version of the docs someone lands in).
61+
# Note, there is an argument to be made for having this link to `latest` instead,
62+
# but this is likely good enough and the most conservative for now.
63+
html_baseurl = "https://docs.nextcloud.com/server/stable/admin_manual/"
64+
5965
# -- Options for HTML help output --------------------------------------------
6066
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-help-output
6167

developer_manual/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@
6363
# disable "Created using Sphinx" in the HTML footer (default is True)
6464
html_show_sphinx = False
6565

66+
# Add canonical link in all generated pages linking to their respective equivalent
67+
# in `stable` (regardless of which version of the docs someone lands in).
68+
# Note, there is an argument to be made for having this link to `latest` instead,
69+
# but this is likely good enough and the most conservative for now.
70+
html_baseurl = "https://docs.nextcloud.com/server/stable/developer_manual/"
71+
6672
html_last_updated_fmt = "%b %d, %Y"
6773

6874
# -- Options for HTML help output --------------------------------------------

user_manual/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
html_short_title = "User Manual"
6868
# disable "Created using Sphinx" in the HTML footer (default is True)
6969
html_show_sphinx = False
70+
71+
# Add canonical link in all generated pages linking to their respective equivalent
72+
# in `stable` (regardless of which version of the docs someone lands in).
73+
# Note, there is an argument to be made for having this link to `latest` instead,
74+
# but this is likely good enough and the most conservative for now.
75+
html_baseurl = "https://docs.nextcloud.com/server/stable/user_manual/"
76+
7077
# disable including the reST sources in the HTML build as _sources/name (default is True)
7178
html_copy_source = False
7279

0 commit comments

Comments
 (0)