Skip to content

Commit

Permalink
doc: generate sitemap.xml
Browse files Browse the repository at this point in the history
Generate a sitemap.xml for the documentation.
This aims at helping search engines react faster to the addition/removal
of new pages.

Signed-off-by: Benjamin Cabé <[email protected]>
  • Loading branch information
kartben authored and jhedberg committed Apr 3, 2024
1 parent d8b368a commit 8f17c83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"zephyr.dtcompatible-role",
"zephyr.link-roles",
"sphinx_tabs.tabs",
"sphinx_sitemap",
"zephyr.warnings_filter",
"zephyr.doxyrunner",
"zephyr.gh_utils",
Expand Down Expand Up @@ -351,6 +352,10 @@
copybutton_prompt_text = r"\$ |uart:~\$ "
copybutton_prompt_is_regexp = True

# -- Options for sphinx-sitemap ----------------------------------------

sitemap_url_scheme = "{link}"

# -- Linkcheck options ----------------------------------------------------

linkcheck_ignore = [
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pygments>=2.9
sphinx-notfound-page
sphinx-copybutton
sphinx-togglebutton
sphinx-sitemap

# YAML validation. Used by zephyr_module.
PyYAML>=6.0
Expand Down

0 comments on commit 8f17c83

Please sign in to comment.