-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(option): allow customize output filenames (#278)
Add option `feeds_filenames` to customize every feed filenames generated by the plugin: ```yaml title="mkdocs.yml with custom RSS and JSON feeds names." plugins: - rss: feeds_filenames: json_created: feed.json json_updated: feed-updated.json rss_created: rss.xml rss_updated: rss-updated.xml ``` Default: - JSON feed for **created** items: `feed_json_created.json` - JSON feed for **updated** items: `feed_json_updated.json` - RSS feed for **created** items: `feed_rss_created.json` - RSS feed for **updated** items: `feed_rss_updated.json`
- Loading branch information
Showing
8 changed files
with
141 additions
and
47 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
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,14 @@ | ||
site_name: Test RSS Plugin with custom RSS and JSON feeds output | ||
site_description: Test RSS Plugin with customized output_basename | ||
site_url: https://guts.github.io/mkdocs-rss-plugin | ||
|
||
plugins: | ||
- rss: | ||
feeds_filenames: | ||
json_created: json | ||
json_updated: json-updated | ||
rss_created: rss | ||
rss_updated: rss-updated | ||
|
||
theme: | ||
name: mkdocs |
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