change the generated cannonical URL to always point to the current version docs

This commit is contained in:
Axel Kohlmeyer
2022-12-30 09:46:10 -05:00
parent 33711ac36e
commit be8d15a728

View File

@ -251,7 +251,13 @@ htmlhelp_basename = 'LAMMPSdoc'
html_permalinks = True html_permalinks = True
html_baseurl = os.environ.get('LAMMPS_WEBSITE_BASEURL', '') # 2022-12-30:
# "Canonical" is always the "current" version of the LAMMPS online manual.
# Changing this depending on whether this is for the development or stable
# version is confusing search engines. So this is the URL to point to.
# This fixed setting should reduce the number of URLs that Google complains
# about as having a canonical URLs where it chooses a different one.
html_baseurl = 'https://docs.lammps.org/'
if 'epub' in sys.argv: if 'epub' in sys.argv:
html_math_renderer = 'imgmath' html_math_renderer = 'imgmath'