Skip to content

Commit

Permalink
自定义站点地图
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Feb 5, 2024
1 parent d782383 commit 751bdd9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'sphinx_design',
'sphinx_examples',
'sphinx_last_updated_by_git',
'sphinx_sitemap',
'sphinx_tabs.tabs',
'sphinx_togglebutton',
]
Expand Down Expand Up @@ -76,6 +77,9 @@
html_search_language = 'zh'
html_last_updated_fmt = '%Y-%m-%d %H:%M:%S'
git_last_updated_timezone = 'Asia/Shanghai'
html_baseurl = 'https://vscode-cpp-starter.readthedocs.io/'
sitemap_filename = 'sitemapindex.xml'
html_extra_path = ['robots.txt']


def setup(app):
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sphinx-copybutton>=0.5.2
sphinx-examples>=0.0.5
sphinx-last-updated-by-git>=0.3.6
sphinx-sitemap>=2.5.1
sphinx-tabs>=3.4.5
sphinx_book_theme>=1.1.0
sphinx_design>=0.0.5
Expand Down
5 changes: 5 additions & 0 deletions docs/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
User-agent: *

Disallow: # Allow everything

Sitemap: https://vscode-cpp-starter.readthedocs.io/sitemapindex.xml

0 comments on commit 751bdd9

Please sign in to comment.