You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,12 @@
14
14
15
15
A plugin for [MkDocs](https://www.mkdocs.org), the static site generator, which creates [RSS 2.0](https://wikipedia.org/wiki/RSS) feeds using the creation and modification dates from [git log](https://git-scm.com/docs/git-log) and page metadata ([YAML frontmatter](https://www.mkdocs.org/user-guide/writing-your-docs/#yaml-style-meta-data)).
Copy file name to clipboardExpand all lines: docs/configuration.md
+2-22Lines changed: 2 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,13 @@ authors:
4
4
- "Julien Moura"
5
5
date: 2020-12-31 14:20
6
6
description: Configuration steps and settings for MkDocs RSS plugin
7
-
image: "https://svgsilh.com/png-512/97849.png"
7
+
image: https://svgsilh.com/png-512/97849.png
8
8
tags:
9
9
- settings
10
10
- options
11
11
- plugin
12
12
---
13
13
14
-
# Configuration
15
-
16
14
To produce a valid RSS feed, the plugin uses:
17
15
18
16
- some global settings from [MkDocs configuration](#mkdocs-configuration)
@@ -132,7 +130,7 @@ Output:
132
130
133
131
## Plugin options
134
132
135
-
For a sample see [homepage](../#usage).
133
+
For a sample see [homepage](./index.md#quickstart).
136
134
137
135
### Disabling the plugin
138
136
@@ -426,23 +424,5 @@ Will result in:
426
424
427
425
Default: `None`.
428
426
429
-
----
430
-
431
-
## Integration
432
-
433
-
### Reference RSS feeds in HTML meta-tags
434
-
435
-
To facilitate the discovery of RSS feeds, it's recommended to add relevant meta-tags into the pages `<head>`, through template customization in `main.html` :
436
-
437
-
```html
438
-
{% extends "base.html" %}
439
-
440
-
{% block extrahead %}
441
-
<!-- RSS Feed -->
442
-
<link rel="alternate" type="application/rss+xml" title="RSS feed of created content" href="{{ config.site_url }}feed_rss_created.xml">
A plugin for [MkDocs](https://www.mkdocs.org), the static site generator, which creates [RSS 2.0](https://wikipedia.org/wiki/RSS) feeds using the creation and modification dates from [git log](https://git-scm.com/docs/git-log) and page metadata ([YAML frontmatter](https://www.mkdocs.org/user-guide/writing-your-docs/#yaml-style-meta-data)).
Plugin logic is inspired from [Tim Vink git-based plugins](https://github.com/timvink?tab=repositories&q=mkdocs-git&type=&language=) and main parts of Git stuff are nearly copied/pasted.
Documentation theme [United from mkdocs-bootswatch](https://mkdocs.github.io/mkdocs-bootswatch/#united) as a tribute to the classic RSS color scheme: orange and white.
68
+
- Plugin logic is inspired from [Tim Vink git-based plugins](https://github.com/timvink?tab=repositories&q=mkdocs-git&type=&language=) and main parts of Git stuff are nearly copied/pasted.
69
+
- Using magic mainly from:
70
+
- [GitPython](https://gitpython.readthedocs.io/)
71
+
- [Jinja2](https://jinja.palletsprojects.com/)
72
+
- Documentation colors are a tribute to the classic RSS color scheme: orange and white.
To facilitate the discovery of RSS feeds, it's recommended to add relevant meta-tags in `<head>` section in HTML pages.
9
+
10
+
### Automatically set with Material theme
11
+
12
+
If you're using the Material theme, everything is automagically set up (see [the related documentation page](https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#rss)) :partying_face:.
13
+
14
+
### Manually
15
+
16
+
You need to customize the theme's template. Typically, in `main.html`:
17
+
18
+
```html
19
+
{% extends "base.html" %}
20
+
21
+
{% block extrahead %}
22
+
<!-- RSS Feed -->
23
+
<linkrel="alternate"type="application/rss+xml"title="RSS feed of created content"href="{{ config.site_url }}feed_rss_created.xml">
24
+
<linkrel="alternate"type="application/rss+xml"title="RSS feed of updated content"href="{{ config.site_url }}feed_rss_updated.xml">
0 commit comments