mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 19:03:38 +02:00
feat(v2): enable feeds by default in blog plugin (#3842)
* feat: enables feeds by default in blog * feat(v2): enable feeds by default committing a failed attempt for review * feat(v2): enable feeds by default in blog plugin - allow validation to work with arrays syntax - using DEFAULT_OPTIONS.feedOptions.type instead * feat(v2): enable feeds by default in blog plugin - added documentation for feedOptions * feat(v2): enable feeds by default in blog plugin - modified implementation to allow feeds to be disable without error - added unit test to ensure type: null leads to type: null after validation - added documentation to explain how to disable feed generation
This commit is contained in:
parent
dd8f3257a8
commit
0b05806593
4 changed files with 46 additions and 10 deletions
|
@ -89,11 +89,11 @@ Or this.
|
|||
|
||||
## Feed
|
||||
|
||||
You can generate RSS/ Atom feed by passing feedOptions.
|
||||
You can generate RSS/Atom feed by passing feedOptions. By default, RSS and Atom feeds are generated. To disable feed generation, set `feedOptions.type` to `null`.
|
||||
|
||||
```ts
|
||||
feedOptions?: {
|
||||
type: 'rss' | 'atom' | 'all';
|
||||
type?: 'rss' | 'atom' | 'all' | null;
|
||||
title?: string;
|
||||
description?: string;
|
||||
copyright: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue