Skip to content

Commit

Permalink
Add ability to override docs option
Browse files Browse the repository at this point in the history
  • Loading branch information
awfulwoman authored and jpmonette committed Aug 11, 2019
1 parent 077a44f commit 7a3c835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rss2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default (ins: Feed) => {
link: { _text: options.link },
description: { _text: options.description },
lastBuildDate: { _text: options.updated ? options.updated.toUTCString() : new Date().toUTCString() },
docs: { _text: "https://validator.w3.org/feed/docs/rss2.html" },
docs: { _text: options.docs ? options.docs : "https://validator.w3.org/feed/docs/rss2.html" },
generator: { _text: options.generator || generator }
}
}
Expand Down
1 change: 1 addition & 0 deletions src/typings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface FeedOptions {
feed?: string;
feedLinks?: any;
hub?: string;
docs?: string;

author?: Author;
link?: string;
Expand Down

0 comments on commit 7a3c835

Please sign in to comment.