The utility for fetching RSS feeds which can be used in external data jobs ideally exports a single method that reads the authorsData.json file on both web.dev and d.c.c, loops over all authors and looks for a to-be-introduced external key, which contains the configurable list of arbitrary sources.
Next is fetching the feeds from the sources in the external key, normalising them and writing a JSON file containing all data needed for the updated author page layout. The written JSON file named external-posts.json will be located at src/site/_data/ directory.
How to test this job with web.dev.
Updates an authorsData.json file in webdev project, just for testing purposes:
Run npm install on webdev-infra project. Then wrap up a new webdev-infra module and replace the current module with a new one at the node_modules directory in web.dev. project.
Adds this code below in the eleventy.js in web.dev. project.
fixes #71
The utility for fetching RSS feeds which can be used in external data jobs ideally exports a single method that reads the authorsData.json file on both web.dev and d.c.c, loops over all authors and looks for a to-be-introduced
external
key, which contains the configurable list of arbitrary sources.Next is fetching the feeds from the sources in the
external
key, normalising them and writing a JSON file containing all data needed for the updated author page layout. The written JSON file namedexternal-posts.json
will be located at src/site/_data/ directory.How to test this job with web.dev.
Run
npm install
on webdev-infra project. Then wrap up a new webdev-infra module and replace the current module with a new one at the node_modules directory in web.dev. project.Adds this code below in the eleventy.js in web.dev. project.
npm run build
, a new JSON file named external-posts.json will be generated to src/site/_data/ path.