Skip to content

Commit

Permalink
Mention custom sitemap via robots.txt (#10899)
Browse files Browse the repository at this point in the history
* Mention custom sitemap via robots.txt

* Add example

* Update docs/user/reference/sitemaps.rst

Co-authored-by: Anthony <aj@ohess.org>

---------

Co-authored-by: Anthony <aj@ohess.org>
  • Loading branch information
ericholscher and agjohnson authored Nov 21, 2023
1 parent 75a5dc6 commit 719486d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/user/reference/sitemaps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ sorted by `semantic versioning`_.
Custom ``sitemap.xml``
----------------------

If you need a custom sitemap,
please let us know by contacting :doc:`/support`.
You can control the sitemap that is used via the ``robots.txt`` file.
Our :doc:`/reference/robots` allows you to host a custom version of this file.

An example would look like::

User-agent: *
Allow: /

Sitemap: https://docs.example.com/en/stable/sitemap.xml

.. _semantic versioning: https://semver.org/
.. _GitHub issue #5391: https://github.com/readthedocs/readthedocs.org/issues/5391

0 comments on commit 719486d

Please sign in to comment.