From bb6a9ded5a5937fd969dba75f9e90bcf7fa3bd58 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 28 Mar 2022 23:46:52 -0400 Subject: [PATCH] Backport PR #22716: DOC: set canonical --- doc/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index a37e07e7fce3..dfa0bfb495d5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -335,6 +335,9 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, # default is ``".html"``. html_file_suffix = '.html' +# this makes this the canonical link for all the pages on the site... +html_baseurl = 'https://matplotlib.org/stable/' + # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. html_last_updated_fmt = '%b %d, %Y'