Skip to content

Commit

Permalink
Remove RSS feed (#254)
Browse files Browse the repository at this point in the history
* Remove RSS feed

* Use production domain for SITEURL
  • Loading branch information
ericholscher authored Feb 6, 2024
1 parent 5a06180 commit 1e214ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
"""Read the Docs website Pelican configuration."""

import os

AUTHOR = 'Read the Docs, Inc'
SITENAME = 'Read the Docs'
SITEURL = ''
RELATIVE_URLS = True

if os.environ.get("READTHEDOCS_VERSION_TYPE") == "external":
# Make all URLs "domainless" in the RTD PR preview
# https://docs.readthedocs.io/en/stable/reference/environment-variables.html
SITEURL = ""
else:
# This setting is needed to make the RSS/Atom feeds generate correctly
SITEURL = "https://https://about.readthedocs.com"

TIMEZONE = 'US/Pacific'
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%b %-d, %Y'
Expand Down Expand Up @@ -38,8 +46,8 @@
# Feed (RSS/Atom) settings
FEED_DOMAIN = SITEURL
FEED_ATOM = "feeds/atom.xml"
FEED_RSS = "feeds/feed.rss"
FEED_MAX_ITEMS = 1
FEED_RSS = None # No rss
FEED_ALL_ATOM = None # No translation
TRANSLATION_FEED_ATOM = None # No translation
AUTHOR_FEED_ATOM = None # No per author feed
Expand Down
2 changes: 1 addition & 1 deletion readthedocs_theme/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<div class="item">
<i class="fad fa-feed icon"></i>
<div class="content">
Subscribe to <a href="/feeds/feed.rss">our RSS feed</a> or <a href="/feeds/atom.xml" target="_blank">our Atom feed</a> with your favorite reader.
Subscribe to <a href="/feeds/atom.xml" target="_blank">our Atom feed</a> with your favorite reader.
</div>
</div>
<div class="item">
Expand Down

0 comments on commit 1e214ef

Please sign in to comment.