From b89468362c80209a868a11f38b9c67ca6eb45d70 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Sat, 14 Sep 2024 20:09:45 -0400 Subject: [PATCH] Fixed docs internal links. --- docs/source/conf.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 201d3372..e9b667f6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -45,7 +45,6 @@ notfound_urls_prefix = "/pysnmp/" -html_baseurl = "https://docs.lextudio.com/pysnmp/" sitemap_url_scheme = "{link}" sitemap_suffix_included = False @@ -125,6 +124,9 @@ # -- Options for HTML output ---------------------------------------------- +html_baseurl = f"https://docs.lextudio.com/pysnmp/v{version}" +repo = "https://github.com/lextudio/pysnmp" + # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = "furo" @@ -134,13 +136,13 @@ # documentation. html_theme_options = { - "source_repository": "https://github.com/lextudio/pysnmp", - "source_branch": "main", + "source_repository": repo, + "source_branch": f"release-{version}", "source_directory": "docs/source/", "footer_icons": [ { "name": "GitHub", - "url": "https://github.com/lextudio/pysnmp", + "url": repo, "html": "", "class": "fa-brands fa-solid fa-github fa-2x", }, @@ -344,7 +346,7 @@ # Configuration for Intersphinx intersphinx_mapping = { - "python": ("https://docs.python.org/3.7/", None), + "python": ("https://docs.python.org/3.8/", None), "pyasn1": ("https://pyasn1.readthedocs.io/en/latest/", None), "pysmi": ("https://docs.lextudio.com/pysmi/", None), }