Skip to content

Commit d35163f

Browse files
committed
docs: Add sitemap generation
1 parent 3c1e8ce commit d35163f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@
7272
}
7373
html_show_sphinx = False
7474
html_show_sourcelink = False
75+
76+
sitemap_url_scheme = "{link}"
77+
7578
if os.getenv("DOCS_BASE_URL"):
7679
html_baseurl = os.getenv("DOCS_BASE_URL")
80+
extensions.append("sphinx_sitemap") # Only generate sitemap when we have a base url
7781

7882
# Add any paths that contain custom static files (such as style sheets) here,
7983
# relative to this directory. They are copied after the builtin static files,

requirements/base.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mdformat==0.7.16
88
mdformat-myst==0.1.5
99
mdformat-frontmatter==0.4.1
1010
sphinx-notfound-page==0.8.3
11+
sphinx-sitemap==2.4.0
1112

1213
# hypernode/ requirements
1314
beautifulsoup4==4.11.1

0 commit comments

Comments
 (0)