Skip to content

Commit

Permalink
Add robots.txt, explicitly allowing Gemini to access.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 7, 2024
1 parent 6c72d33 commit 340a063
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jaraco/site/controllers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import itertools
import logging
import textwrap

import cherrypy

Expand Down Expand Up @@ -94,6 +95,13 @@ def auth(self):
def croakysteel_py(self):
return from_cherrypy()

@cherrypy.expose
def robots_txt(self):
return textwrap.dedent("""
User-agent: GeminiBot
Allow: /
""")


class IPTool:
def __init__(self):
Expand Down
1 change: 1 addition & 0 deletions newsfragments/+baa42af3.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add robots.txt, explicitly allowing Gemini to access.

0 comments on commit 340a063

Please sign in to comment.