expressjs.com
expressjs.com copied to clipboard
Add GH action to update middleware READMEs
Docs for the middleware modules linked from https://expressjs.com/en/resources/middleware.html are sourced from
the README files in the corresponding repos and are copied to _includes/readmes
using get-readmes.sh. So, e.g., https://expressjs.com/en/resources/middleware/body-parser.html comes from https://github.com/expressjs/body-parser/blob/master/README.md.
Similar to #1504 this issue is a task to add a GH action to perform this task. However, since it should run whenever any of the middleware READMEs are updated, it might require an action be added to each of those repos so that it would get triggered when that occurs....unless there's a way to detect a change to a particular file in another repo and perform an action when that happens. Since I am not an expert on GH actions, I will defer to someone who is.
Also some community docs from the expressjs/express repo are similarly reproduced on the website in Resources > Contributing to Express, cf. https://github.com/expressjs/expressjs.com/pull/1507 and it would be great to automate that, too.