You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo includes a few scripts to pull content from external sources, primarily the [p5.js repo](https://github.com/processing/p5.js).
4
4
5
5
They are all runnable via npm scripts.
6
6
7
-
## Search Indices Build Script
7
+
## After a p5.js release
8
8
9
-
`npm run build:search` generates metadata about the content of the website so the search functionality can show relevant results.
9
+
To update the content on the p5.js website following a new release of p5.js, you should run all of these commands to pull in the latest content. **Be sure to run the search indices script last as it depends on the results of the other scripts to be accurate.**
10
10
11
11
## Contributor Docs Build Script
12
12
13
-
`npm run build:contributor-docs` copies the contributor docs from the p5.js website repo and places them into the [contributor docs content collection](/src/content/contributor-docs).
13
+
`npm run build:contributor-docs` copies the contributor docs from the p5.js repo and places them into the [contributor docs content collection](/src/content/contributor-docs).
14
14
15
15
## Reference Build Script
16
16
@@ -19,3 +19,7 @@ They are all runnable via npm scripts.
19
19
## Contributors List Build Script
20
20
21
21
`npm run build:contribtuors` parses the list of contributors from the all contributors [config file](https://github.com/processing/p5.js/blob/main/.all-contributorsrc) in the p5.js repo and adds entries in the [people collection](src/content/people/en) for anyone who is missing. These are used to render the list of contributors on the [People page](https://p5js.org/people/). This script will **not** remove or update existing entries, that must be done manually.
22
+
23
+
## Search Indices Build Script
24
+
25
+
`npm run build:search` generates metadata about the content of the website so the search functionality can show relevant results. This script should usually be run after any of the above scripts are run.
0 commit comments