Skip to content

Commit f998893

Browse files
committed
docs: update usage
1 parent c8b82b0 commit f998893

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

plugins/rss/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@ npm install @notiz/scully-plugin-rss --save-dev
2424
2525
## Usage
2626

27-
Require the plugin in the Scully config file:
27+
Import the plugin in the Scully config file `scully.app-name.config.ts`:
2828

29-
```js
30-
require('@notiz/scully-plugin-rss');
29+
```ts
30+
import { ScullyConfig } from '@scullyio/scully';
31+
import '@notiz/scully-plugin-rss';
3132

32-
exports.config = {
33+
export const config: ScullyConfig = {
3334
projectRoot: './src/app',
34-
defaultPostRenderers: ['rss'],
35-
routes: {},
35+
routes: {
36+
...
37+
},
3638
};
3739
```
3840

0 commit comments

Comments
 (0)