Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create daily, weekly, monthly and yearly RSS feeds of the site changes docs: explain how to create the newsletters automatically chore: update requirements feat: create newsletter landing page
- Loading branch information
Showing
29 changed files
with
1,297 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Date: 2021-03-26 | ||
|
||
# Status | ||
<!-- What is the status? Draft, Proposed, Accepted, Rejected, Deprecated or Superseded? | ||
--> | ||
Draft | ||
|
||
# Context | ||
<!-- What is the issue that we're seeing that is motivating this decision or change? --> | ||
We want the readers to be notified by RSS of the changes of the documentation | ||
site. They should be able to choose the frequency of the updates. | ||
|
||
# Proposals | ||
<!-- What are the possible solutions to the problem described in the context --> | ||
|
||
Once the newsletter mkdocs articles are created, we need to expose them through | ||
RSS feeds for each of the periodicities (daily, weekly, monthly and yearly). | ||
|
||
We have the newsletter articles both in markdown and in html if we use the | ||
[`on_post_build`](https://www.mkdocs.org/user-guide/plugins/#on_post_build) | ||
event. | ||
|
||
We need to create both the RSS site documentation and the entries content. The | ||
first one can be created with the contents of the mkdocs `config` object, the | ||
second ones using the html might be more interesting as it will have already the | ||
internal links resolved to working urls. | ||
|
||
We'll refactor the code from | ||
[mkdocs-rss-plugin](https://github.com/Guts/mkdocs-rss-plugin), as they've | ||
already solved the problem of creating an RSS for a MkDocs site. | ||
|
||
We need to decide: | ||
|
||
* [How to select the newsletters to be published in each | ||
feed.](#newsletter-selection) | ||
* [How to create each feed.](#how-to-create-each-feed) | ||
|
||
## Newsletter selection | ||
|
||
We're going to expose 15 entries in each feed. | ||
|
||
To get the 15 last newsletters for each feed we need to analyze the existent | ||
elements in the newsletter directory and then see the latest modification date | ||
of each of them. | ||
|
||
The `published_date` of the channel must be the published date of the last entry | ||
of the feed. | ||
|
||
## How to create each feed | ||
|
||
We'll use the mkdocs-rss-plugin jinja2 template. I tried to use feedparser, but | ||
it's only for parsing and not for building RSSs. | ||
|
||
# Decision | ||
<!-- What is the change that we're proposing and/or doing? --> | ||
Implement the only proposal. | ||
|
||
# Consequences | ||
<!-- What becomes easier or more difficult to do because of this change? --> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.