All checks were successful
Deploy to Server / deploy (push) Successful in 10s
104 lines
5.2 KiB
HTML
104 lines
5.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
{% block title %}
|
|
RSS Feeds Documentation
|
|
{% endblock title %}
|
|
{% block content %}
|
|
<main>
|
|
<h1>RSS Feeds Documentation</h1>
|
|
<p>This page lists all available RSS feeds for TTVDrops.</p>
|
|
<p>
|
|
Atom feeds are also available for the same resources under the
|
|
<code>/atom/</code> endpoints.
|
|
</p>
|
|
<p>
|
|
Discord feeds are available under the <code>/discord/</code> endpoints. These are Atom feeds
|
|
that include Discord relative timestamps (e.g., <code><t:1773450272:R></code>) for dates,
|
|
making them ideal for Discord bots and integrations.
|
|
</p>
|
|
<section>
|
|
<h2>Global RSS Feeds</h2>
|
|
<p>These feeds contain all items across the entire site:</p>
|
|
<ul>
|
|
{% for feed in feeds %}
|
|
<li>
|
|
<h3>{{ feed.title }}</h3>
|
|
<p>{{ feed.description }}</p>
|
|
<p>
|
|
<a href="{{ feed.url }}">Subscribe to {{ feed.title }} RSS Feed</a>
|
|
{% if feed.atom_url %}
|
|
|
|
|
<a href="{{ feed.atom_url }}">Subscribe to {{ feed.title }} Atom Feed</a>
|
|
{% endif %}
|
|
{% if feed.discord_url %}
|
|
|
|
|
<a href="{{ feed.discord_url }}">Subscribe to {{ feed.title }} Discord Feed</a>
|
|
{% endif %}
|
|
</p>
|
|
<pre><code class="language-xml">{% if feed.example_xml %}{{ feed.example_xml|escape }}{% else %}No example XML available yet.{% endif %}</code></pre>
|
|
{% if feed.example_xml_atom %}
|
|
<h4>Atom example</h4>
|
|
<pre><code class="language-xml">{{ feed.example_xml_atom|escape }}</code></pre>
|
|
{% endif %}
|
|
{% if feed.example_xml_discord %}
|
|
<h4>Discord example</h4>
|
|
<pre><code class="language-xml">{{ feed.example_xml_discord|escape }}</code></pre>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
<section>
|
|
<h2>Filtered RSS Feeds</h2>
|
|
<p>
|
|
You can subscribe to RSS feeds scoped to a specific game or organization. When available, links below point to live examples; otherwise use the endpoint template.
|
|
</p>
|
|
<ul>
|
|
{% for feed in filtered_feeds %}
|
|
<li>
|
|
<h3>{{ feed.title }}</h3>
|
|
<p>{{ feed.description }}</p>
|
|
<p>
|
|
Endpoint: <code>{{ feed.url }}</code>
|
|
{% if feed.atom_url %} | Atom: <code>{{ feed.atom_url }}</code>{% endif %}
|
|
{% if feed.discord_url %} | Discord: <code>{{ feed.discord_url }}</code>{% endif %}
|
|
</p>
|
|
{% if feed.has_sample %}
|
|
<p>
|
|
<a href="{{ feed.url }}">View a live example</a>
|
|
{% if feed.atom_url %}
|
|
|
|
|
<a href="{{ feed.atom_url }}">View Atom example</a>
|
|
{% endif %}
|
|
{% if feed.discord_url %}
|
|
|
|
|
<a href="{{ feed.discord_url }}">View Discord example</a>
|
|
{% endif %}
|
|
</p>
|
|
{% endif %}
|
|
<pre><code class="language-xml">{% if feed.example_xml %}{{ feed.example_xml|escape }}{% else %}No example XML available yet.{% endif %}</code></pre>
|
|
{% if feed.example_xml_atom %}
|
|
<h4>Atom example</h4>
|
|
<pre><code class="language-xml">{{ feed.example_xml_atom|escape }}</code></pre>
|
|
{% endif %}
|
|
{% if feed.example_xml_discord %}
|
|
<h4>Discord example</h4>
|
|
<pre><code class="language-xml">{{ feed.example_xml_discord|escape }}</code></pre>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
<section>
|
|
<h2>How to Use RSS Feeds</h2>
|
|
<p>
|
|
RSS feeds allow you to stay updated with new content. You can use any RSS reader application to subscribe to these feeds.
|
|
</p>
|
|
<ul>
|
|
<li>Copy the feed URL</li>
|
|
<li>Paste it into your favorite RSS reader (Feedly, Inoreader, NetNewsWire, etc.)</li>
|
|
<li>Get automatic updates when new content is added</li>
|
|
</ul>
|
|
</section>
|
|
</main>
|
|
{% endblock content %}
|