
Installation
[!NOTE] You can download the prebuilt binary artifacts from the Releases page.
Package Managers
- B(inary)Install:
- Crates.io:
- Git:
&&
Manual
|
Get Started
[!NOTE] You can refer to our examples.
Run the following command to generate a katharsis.toml file in the current directory:
Run the following command to create a default rss.xml:
Usage
Commands
| Command | Description |
|---|---|
init |
Generates a katharsis.toml file in the current directory |
help |
Displays help information |
Options
| Option | Description |
|---|---|
-c |
Specifies a katharsis.toml file as the config |
-h |
Displays help information |
-V |
Displays the current version of Katharsis |
[!NOTE] If you do not specify the
-coption, thekatharsis.tomlfile in the current directory will be used by default.
Properties
You can refer to the RSS 2.0 at Harvard Law for more detailed documentation.
| Property | Description |
|---|---|
rss.title |
The title of the website |
rss.description |
A description of the website |
rss.site_url |
The main URL of the website |
rss.image |
Path to the channel's logo |
rss.copyright |
Copyright information |
rss.language |
Preferred language |
rss.output |
Path to the local output RSS file |
[!NOTE]
- The
rss.site_urlproperty should not include a trailing slash (for example,https://example.comrather thanhttps://example.com/).- The
rss.imageproperty is relative to therss.site_url(for example,favicon.pngcorresponds tohttps://example.com/favicon.png).- The
rss.outputproperty specifies the path relative to the working directory (for example,rss.xmlcorresponds to./rss.xml).
| Property | Description |
|---|---|
article.title |
The tag containing the article's title |
article.description |
The tag or attribute containing the article's description |
article.input |
The HTML files that needs to be parsed |
article.author |
Information about the article's author |
article.prefix |
The relative prefix for the article's URL |
article.content |
The tag or attribute containing the article's content |
article.date |
The tag containing the article's publication date |
article.image |
The image files to be used as the article cover |
article.sort |
Whether to sort articles by their publication date |
[!NOTE]
- The
article.inputproperty corresponds to the file stem (*), which is the same as the article's URL slug.- The
article.dateproperty's tag must include a datetime attribute, and the attribute value must follow the%Y-%m-%dformat.- The
article.imageproperty's folder name (**) must match the article's URL slug.
API Docs
Please refer to our API Docs.
Contributing
Please refer to our CONTRIBUTING.md.
Security
[!NOTE] If you believe you have found a security vulnerability in Katharsis, we encourage you to responsibly disclose this and NOT open a public issue.
Please refer to our SECURITY.md.
Releases
The version naming of Katharsis follows Semantic Versioning 2.0.0.
Long-term Support
[!NOTE] When Katharsis releases a new major version, the previous stable version will be designated as an LTS version.
The LTS version of Katharsis provides security updates and bug fixes for six months.
Release Table
| Katharsis | MSRV[^1] | Codename | Released at | End of Life |
|---|---|---|---|---|
| v1.0.0 | 1.85.0 | Telescope | - | - |
License
Katharsis is distributed under the MIT License.
[^1]: Minimum Supported Rust Version