Skip to content

Commit d725202

Browse files
committed
add sitemap and robots.txt
1 parent 94653d3 commit d725202

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ sphinxcontrib-htmlhelp==1.0.2
3838
sphinxcontrib-jsmath==1.0.1
3939
sphinxcontrib-qthelp==1.0.2
4040
sphinxcontrib-serializinghtml==1.1.3
41+
sphinx-sitemap==2.2.0

source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,5 @@
150150

151151
# Options for extensions.
152152
disqus_shortname = 'iswbm' # Add this line to conf.py.
153+
html_baseurl = 'http://pythontime.iswbm.com'
154+
html_extra_path = ["robots.txt"]

source/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Sitemap: http://pythontime.iswbm.com/sitemap.xml

0 commit comments

Comments
 (0)