Adds a data.json file to give clear and meaningful metadata about the tips.
Adds a script to generate an RSS feed based on this metadata
Adds dynamic metadata to each tip
Each tip will be under a directory under /pages/example with an index.mdx for the content and a meta.js file.
Each meta.js file must contain an exported meta variable with the interface as below:
Adds a.data.json
file to give clear and meaningful metadata about the tipsEach tip will be under a directory under
/pages/example
with anindex.mdx
for the content and ameta.js
file. Eachmeta.js
file must contain an exportedmeta
variable with the interface as below:It's also important for
meta.js
to be a CommonJS module since we reuse it in the script that generates RSS feed dynamically.Each
index.mdx
file should also import the commonTip
component and themeta
variable and be like:@jamestthompson3 might be nice to have web pack aliases for the components dir.
Generating the feed
node scripts/rss.js
which scans the examples dir and generates afeed.xml
underpublic
with all the collected tips.