Skip to content

Commit

Permalink
Fixed docs internal links.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Sep 15, 2024
1 parent 7a1a114 commit b894683
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

notfound_urls_prefix = "/pysnmp/"

html_baseurl = "https://docs.lextudio.com/pysnmp/"
sitemap_url_scheme = "{link}"
sitemap_suffix_included = False

Expand Down Expand Up @@ -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"
Expand All @@ -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",
},
Expand Down Expand Up @@ -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),
}
Expand Down

0 comments on commit b894683

Please sign in to comment.