Skip to content

Commit

Permalink
docs: add sitemap and robots (#391)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Nov 25, 2024
1 parent d0d4363 commit 95aff9d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"sphinx.ext.autodoc",
"sphinx.ext.githubpages",
"myst_parser",
"sphinx_sitemap",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -45,7 +46,8 @@
exclude_patterns = []
source_suffix = [".rst", ".md"]
language = "en"

html_baseurl = "https://0b01001001.github.io/spectree/"
html_extra_path = ['robots.txt']

# -- Options for HTML output -------------------------------------------------

Expand Down
3 changes: 3 additions & 0 deletions docs/source/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *

Sitemap: https://0b01001001.github.io/spectree/sitemap.xml
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ docs = [
"Sphinx",
"shibuya",
"myst-parser",
"sphinx-sitemap",
]

[project.urls]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"Sphinx",
"shibuya",
"myst-parser",
"sphinx-sitemap",
],
},
)

0 comments on commit 95aff9d

Please sign in to comment.