From 966887eab1d869bad94b5c0dd578455bb270674c Mon Sep 17 00:00:00 2001 From: Franco Masotti Date: Sat, 21 Aug 2021 22:13:54 +0200 Subject: [PATCH] Added RSS feeds for software releases. --- _config.yml | 6 ++++-- _pages/feed.xml | 23 +++++++++++++++++++++ _pages/software.md | 3 ++- {software => _software}/CHANGELOG-md-toc.md | 18 ++++++++++++++-- 4 files changed, 45 insertions(+), 5 deletions(-) rename {software => _software}/CHANGELOG-md-toc.md (75%) diff --git a/_config.yml b/_config.yml index f015810..f78aab5 100644 --- a/_config.yml +++ b/_config.yml @@ -19,7 +19,7 @@ software: author: name: "Franco" - email: "frnmst.blog@outlook.com" + email: "franco.masotti@tutanota.com" buymeacoffee: message: "Buy me a coffee" url: "https://buymeacoff.ee/frnmst" @@ -89,6 +89,8 @@ collections: output: true assets: output: true + software: + output: true ## Page names defaults: @@ -137,7 +139,7 @@ defaults: is_comment: true ## Other Params -include: [ "_pages" ] +include: [ "_pages"] exclude: [ "LICENSE", "README.md", "CNAME", "vendor", "Gemfile", "Gemfile.lock", "Makefile", "Pipfile", "Pipfile.lock", ".pre-commit-config.yaml" ] ## Ruby gems diff --git a/_pages/feed.xml b/_pages/feed.xml index aa20e3c..f8f8048 100644 --- a/_pages/feed.xml +++ b/_pages/feed.xml @@ -24,6 +24,29 @@ permalink: feed.xml {{ site.baseurl }}/ Jekyll + + {% for page in site.software %} + {% capture release_excerpt %} + {% assign start=page.content | split: '' | last %} + {% assign end=start | split: '' | first %} + {{ end }} + {% endcapture %} + + {% assign content = release_excerpt | replace: "↩", "↩︎" %} + {% assign content = content | replace: "data-lang", "lang" %} + {% assign content = content | replace: "", "" | replace: "", "" %} + + {{ page.title | xml_escape }} (version {{ page.last_version | xml_escape }}) + {{ page.url | prepend: site.baseurl }} + {{ page.updated | date_to_xmlschema }} + {{ page.date | date_to_xmlschema }} + + + + + {% endfor %} + + {% for post in site.posts %} {% assign content = post.content | replace: "↩", "↩︎" %} diff --git a/_pages/software.md b/_pages/software.md index 323af3d..8bf721a 100644 --- a/_pages/software.md +++ b/_pages/software.md @@ -280,8 +280,9 @@ status: active #### Repository - [canonical repository](https://software.franco.net.eu.org/frnmst/md-toc) -- [GitHub](https://github.com/frnmst/md-toc) - [Codeberg](https://codeberg.org/frnmst/md-toc) +- [Framagit](https://framagit.org/frnmst/md-toc) +- [GitHub](https://github.com/frnmst/md-toc) #### Documentation diff --git a/software/CHANGELOG-md-toc.md b/_software/CHANGELOG-md-toc.md similarity index 75% rename from software/CHANGELOG-md-toc.md rename to _software/CHANGELOG-md-toc.md index e2c3782..04b51e2 100644 --- a/software/CHANGELOG-md-toc.md +++ b/_software/CHANGELOG-md-toc.md @@ -1,9 +1,13 @@ --- layout: default -title: release +title: md-toc releases excerpt: none +updated: 2021-08-20 15:37:47 +date: 2021-08-20 15:37:47 +last_version: 8.0.1 --- + # md-toc changelog All notable changes to this project will be documented in this file. @@ -11,21 +15,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +Only the last version and unreleased changes are reported +in the RSS feeds. + ## Unreleased +Empty + ## [8.0.1] - 2021-08-20 ### Fixed -- Cmark code is now more adherent to the original. +- Cmark-specific code is now more adherent to the original. - License references are now more accurate. - The PyPI wheel is now made reproducible. - Updated email. +### Changed + +- Cmark-specific code has been moved to a separate Python module: `cmark.py`. + ### Added - New git hooks have been added in the pre-commit file. - Examples for unit tests of Cmark 0.30 have been checked with the existing examples. + ## [8.0.0] - 2021-05-28