pkgs/docs/README.md
This library is used to load docs into the database and provide a schema for the website.
The package is integrated into the date-fns build and release scripts, but if you need to run it manually, use the following instructions:
npm i -D @date-fns/docs@latest
tmp/docs.json):npx typedoc
env GOOGLE_APPLICATION_CREDENTIALS="secrets/$APP_ENV/key.json" npx date-fns-docs docs/config.js
Replace $APP_ENV with either staging or production.
When working locally, to upload the docs follow the instructions:
tmp/docs.json):npx typedoc
env GOOGLE_APPLICATION_CREDENTIALS="../date-fns/secrets/staging/key.json" npx tsx ./src/bin.ts ../date-fns/docs/config.js --rollback
env GOOGLE_APPLICATION_CREDENTIALS="../date-fns/secrets/staging/key.json" npx tsx ./src/bin.ts ../date-fns/docs/config.js