From 59445ebec23aaf36cb2cbe60faf3ea12b7ef6940 Mon Sep 17 00:00:00 2001 From: Eric Holscher <25510+ericholscher@users.noreply.github.com> Date: Mon, 13 Nov 2023 09:32:07 -0800 Subject: [PATCH 1/3] Mention custom sitemap via robots.txt --- docs/user/reference/sitemaps.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/user/reference/sitemaps.rst b/docs/user/reference/sitemaps.rst index 49483613a92..211c8436ca0 100644 --- a/docs/user/reference/sitemaps.rst +++ b/docs/user/reference/sitemaps.rst @@ -28,8 +28,7 @@ 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. .. _semantic versioning: https://semver.org/ -.. _GitHub issue #5391: https://github.com/readthedocs/readthedocs.org/issues/5391 From 568e13889f9ada4077109a3eb0c935f3642eb2b6 Mon Sep 17 00:00:00 2001 From: Eric Holscher <25510+ericholscher@users.noreply.github.com> Date: Fri, 17 Nov 2023 10:42:25 -0800 Subject: [PATCH 2/3] Add example --- docs/user/reference/sitemaps.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/user/reference/sitemaps.rst b/docs/user/reference/sitemaps.rst index 211c8436ca0..33b235a027b 100644 --- a/docs/user/reference/sitemaps.rst +++ b/docs/user/reference/sitemaps.rst @@ -31,4 +31,11 @@ Custom ``sitemap.xml`` 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://www.example.com/sitemap.xml + .. _semantic versioning: https://semver.org/ From a92a57e9581ecceb47939690fc26e18eaf6926c3 Mon Sep 17 00:00:00 2001 From: Eric Holscher <25510+ericholscher@users.noreply.github.com> Date: Tue, 21 Nov 2023 13:37:59 -0800 Subject: [PATCH 3/3] Update docs/user/reference/sitemaps.rst Co-authored-by: Anthony --- docs/user/reference/sitemaps.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/reference/sitemaps.rst b/docs/user/reference/sitemaps.rst index 33b235a027b..85d9e50e8d3 100644 --- a/docs/user/reference/sitemaps.rst +++ b/docs/user/reference/sitemaps.rst @@ -36,6 +36,6 @@ An example would look like:: User-agent: * Allow: / - Sitemap: https://www.example.com/sitemap.xml + Sitemap: https://docs.example.com/en/stable/sitemap.xml .. _semantic versioning: https://semver.org/