Skip to content

Commit 1b7995d

Browse files
authored
Merge pull request saltstack#32 from lumenCodes/adding-sitemap
Adding the Sphinx sitemap extension
1 parent b3b3122 commit 1b7995d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def setup(app):
111111
"sphinx-prompt", # Required by sphinx_substitution_extensions
112112
"sphinx_inline_tabs",
113113
"sphinx_substitution_extensions",
114+
"sphinx_sitemap",
114115
]
115116
# Render TODO directives
116117
todo_include_todos = True
@@ -143,6 +144,15 @@ def setup(app):
143144
html_show_sourcelink = True # False on private repos; True on public repos
144145
html_theme = "furo"
145146
html_title = "Salt install guide"
147+
html_baseurl = "https://docs.saltproject.io/salt/install-guide/"
148+
149+
# Extends baseurl, in combination with version value
150+
sitemap_locales = ["en"]
151+
# Pages we don't care to include in generated sitemap file
152+
sitemap_excludes = [
153+
"search.html",
154+
"genindex.html",
155+
]
146156

147157
html_theme_options = {
148158
"dark_css_variables": {

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sphinx-copybutton>=0.5.2
33
sphinx-design>=0.5.0
44
sphinx-inline-tabs>=2023.4.21
55
sphinx-prompt>=1.5.0
6+
sphinx-sitemap==2.6.0
67
sphinx-substitution-extensions>=2022.02.16
78
sphinx-tabs>=3.4.7
89
sphinx>=5.3.0

0 commit comments

Comments
 (0)