From ed810096f0190e62c79d4f9c01f94a8d835495b5 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Sat, 31 Aug 2024 11:18:50 +1000 Subject: [PATCH] Add 0.10.0 release --- content/documentation.md | 11 +++++++ content/news/release-0.10.0.md | 45 +++++++++++++++++++++++++++++ templates/page.html | 4 --- templates/section.html | 6 +++- templates/shortcodes/downloads.html | 5 ++-- 5 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 content/news/release-0.10.0.md diff --git a/content/documentation.md b/content/documentation.md index 321104e..6befeec 100644 --- a/content/documentation.md +++ b/content/documentation.md @@ -78,6 +78,8 @@ output = "/tmp" # It can also be specified as environment variable `http_proxy` or `HTTPS_PROXY`. # The config file takes precedence, then the env vars in the above order. # proxy = socks5://10.64.0.1:1080 +# Optionally enable reading web pages from local files though file:// URLs. +# file_urls = false # Next is the array of feeds, each one starts with [[feed]] [[feed]] @@ -198,6 +200,15 @@ The proxy for http and https requests can also be specified with the environment variables `http_proxy` and `HTTPS_PROXY` respectively. The config file takes precedence over environment variables. +### file_urls + +Since: 0.10.0 + +Optional boolean value (default `false`) indicating whether to allow fetching web +pages from `file` URLs. When set to `true`, [feed.config.url](#feed-config-url) +can be a URL using the `file` scheme to a local HTML file like: +`file:///home/wmoore/Documents/example.html`. The path must be absolute. + ### feed.title The title of the channel in the generated feed. diff --git a/content/news/release-0.10.0.md b/content/news/release-0.10.0.md new file mode 100644 index 0000000..0999c17 --- /dev/null +++ b/content/news/release-0.10.0.md @@ -0,0 +1,45 @@ ++++ +title = "Version 0.10.0 released" +description = "The 0.10.0 release has been published. RSS Please now optionally supports reading web pages from local files." +date = 2024-08-31T10:25:14+10:00 + +#[extra] +#updated = 2024-02-20T22:57:15+10:00 ++++ + +_RSS Please is a command line tool that allows you to generate RSS feeds from web pages. +Parts of the page are extracted using CSS selectors and a feed generated from the matching +items. RSS Please runs on Linux, macOS, Windows, BSD, and more._ + +The 0.10.0 release has been published. RSS Please now optionally supports reading +web pages from local files. + + + +## Version 0.10.0 + +[This release][release] adds a new optional boolean property, `file_urls`, to the +configuration file (default `false`) indicating whether to allow fetching web +pages from `file` URLs. When set to `true`, +[feed.config.url](@/documentation.md#feed-config-url) can be a URL using the +`file` scheme to a local HTML file like: +`file:///home/wmoore/Documents/example.html`. + +This feature enables workflows where the HTML is generated locally before +running RSS Please, or fetching the HTML using a different mechanism such as a +[cURL] invocation or headless browser. This latter option might allow +generating RSS feeds from sites that require authentication or JavaScript to +render. + +A statically linked binary for ARM64 Linux is also published for this release, +which should run on Raspberry Pis, and other ARM based Linux devices. + +- [Full Changelog](https://github.com/wezm/rsspls/compare/0.9.0...0.10.0) +- [Download][release] + +If you find `rsspls` useful please consider a one-off or recurring contribution +to support development [on GitHub Sponsors][sponsor]. + +[release]: https://github.com/wezm/rsspls/releases/tag/0.10.0 +[sponsor]: https://github.com/sponsors/wezm +[cURL]: https://curl.se/ diff --git a/templates/page.html b/templates/page.html index 6dfb912..98cf684 100644 --- a/templates/page.html +++ b/templates/page.html @@ -12,11 +12,7 @@ {% endblock %} {% block content %} -{% if page.description %} -

{{ page.description }}

-{% else %}

{{ page.title }}

-{% endif %} {% if page.date %} {% endif %} diff --git a/templates/section.html b/templates/section.html index 1cdbc6b..f944912 100644 --- a/templates/section.html +++ b/templates/section.html @@ -29,7 +29,11 @@
- {{ page.summary | safe }} + {% if page.description %} +

{{ page.description }}

+ {% else %} + {{ page.summary | safe }} + {% endif %}
Read more → diff --git a/templates/shortcodes/downloads.html b/templates/shortcodes/downloads.html index f3ff63d..df988ab 100644 --- a/templates/shortcodes/downloads.html +++ b/templates/shortcodes/downloads.html @@ -3,9 +3,10 @@ {% set_global latest_version = latest_release.link['@href'] | split(pat="/") | last %}