diff --git a/admin_manual/conf.py b/admin_manual/conf.py index 6f4e59a3078..cb8ee91290a 100644 --- a/admin_manual/conf.py +++ b/admin_manual/conf.py @@ -56,6 +56,12 @@ # disable "Created using Sphinx" in the HTML footer (default is True) html_show_sphinx = False +# Add canonical link in all generated pages linking to their respective equivalent +# in `stable` (regardless of which version of the docs someone lands in). +# Note, there is an argument to be made for having this link to `latest` instead, +# but this is likely good enough and the most conservative for now. +html_baseurl = "https://docs.nextcloud.com/server/stable/admin_manual/" + # -- Options for HTML help output -------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-help-output diff --git a/user_manual/conf.py b/user_manual/conf.py index aafb8687c4a..fb397678adc 100644 --- a/user_manual/conf.py +++ b/user_manual/conf.py @@ -67,6 +67,13 @@ html_short_title = "User Manual" # disable "Created using Sphinx" in the HTML footer (default is True) html_show_sphinx = False + +# Add canonical link in all generated pages linking to their respective equivalent +# in `stable` (regardless of which version of the docs someone lands in). +# Note, there is an argument to be made for having this link to `latest` instead, +# but this is likely good enough and the most conservative for now. +html_baseurl = "https://docs.nextcloud.com/server/stable/user_manual/" + # disable including the reST sources in the HTML build as _sources/name (default is True) html_copy_source = False