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 4ce5ae0 commit 08e3e87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
html_last_updated_fmt = '%Y-%m-%d %H:%M:%S'
git_last_updated_timezone = 'Asia/Shanghai'
html_baseurl = 'https://question-board.readthedocs.io/'
sitemap_filename = 'sitemapindex.xml'
html_extra_path = ['robots.txt']


def setup(app):
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://question-board.readthedocs.io/sitemapindex.xml

0 comments on commit 08e3e87

Please sign in to comment.