Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(option): allow customize output filenames #278

Merged
merged 4 commits into from
Jun 8, 2024

Conversation

Guts
Copy link
Owner

@Guts Guts commented Jun 7, 2024

Add option feeds_filenames to customize every feed filenames generated by the plugin:

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

@github-actions github-actions bot added enhancement New feature or request quality Tests, project resiliency, etc. labels Jun 7, 2024
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.65%. Comparing base (c5c3759) to head (222d3f0).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #278      +/-   ##
==========================================
+ Coverage   84.60%   84.65%   +0.05%     
==========================================
  Files          10       10              
  Lines         552      554       +2     
  Branches      117      117              
==========================================
+ Hits          467      469       +2     
  Misses         54       54              
  Partials       31       31              
Flag Coverage Δ
unittests 84.47% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
mkdocs_rss_plugin/config.py 100.00% <100.00%> (ø)
mkdocs_rss_plugin/constants.py 100.00% <ø> (ø)
mkdocs_rss_plugin/models.py 100.00% <100.00%> (ø)
mkdocs_rss_plugin/plugin.py 92.53% <100.00%> (ø)

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 8, 2024
@Guts Guts self-assigned this Jun 8, 2024
@Guts Guts merged commit 9e7369e into main Jun 8, 2024
10 checks passed
@Guts Guts deleted the feature/configurable-output-feeds-names branch June 8, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request quality Tests, project resiliency, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change feed url? multiple instances? #feature_request Naming of RSS feed and autodetection by clients
1 participant