Skip to content

Commit d2c26ac

Browse files
committed
create robots.txt for HTML docs
1 parent 3f6e92e commit d2c26ac

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

conf.py

+4
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ def get_version():
256256
# so a file named "default.css" will overwrite the builtin "default.css".
257257
html_static_path = ['docs/styles']
258258

259+
# A list of paths that contain extra files not directly related to the
260+
# documentation.
261+
html_extra_path = ['robots.txt']
262+
259263
# Custom sidebar templates, maps document names to template names.
260264
html_sidebars = {
261265
'**': [

robots.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
User-agent: *
2+
3+
Allow: /en/stable/
4+
5+
Sitemap: https://docs.dfhack.org/sitemap.xml

0 commit comments

Comments
 (0)