Skip to content

Commit d5f8da5

Browse files
committed
add robots.txt
1 parent e273c39 commit d5f8da5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_extra/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: GPTBot
2+
Disallow: /

conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ def get_version():
143143
#
144144
# html_sidebars = {}
145145

146+
#extra HTML files
147+
html_extra_path = ['_extra']
146148

147149
# -- Options for HTMLHelp output ---------------------------------------------
148150

@@ -221,7 +223,7 @@ def get_version():
221223
# epub_uid = ''
222224

223225
# A list of files that should not be packed into the epub file.
224-
epub_exclude_files = ['search.html']
226+
epub_exclude_files = ['search.html','robots.txt']
225227

226228

227229
# -- Extension configuration -------------------------------------------------

0 commit comments

Comments
 (0)