0.38.0 • Published 10 months ago

@date-fns/docs v0.38.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

date-fns documentation utilities & types

This library is used to load docs into the database and provide a schema for the website.

Usage

The package is integrated into the date-fns build and release scripts, but if you need to run it manually, use the following instructions:

  1. To generate the date-fns docs, start by installing the latest version:
npm i -D @date-fns/docs@latest
  1. Then generate TypeDoc JSON file (tmp/docs.json):
npx typedoc
  1. Then, upload the docs to the Firebase with the path to the service key:
env GOOGLE_APPLICATION_CREDENTIALS="secrets/$APP_ENV/key.json" npx date-fns-docs docs/config.js

Replace $APP_ENV with either staging or production.

Contributing

When working locally, to upload the docs follow the instructions:

  1. In the date-fns library source directory generate TypeDoc JSON file (tmp/docs.json):
npx typedoc
  1. Rollback the docs for the current version for 1+n run to avoid having duplicates:
env GOOGLE_APPLICATION_CREDENTIALS="../date-fns/secrets/staging/key.json" npx tsx ./src/bin.ts ../date-fns/docs/config.js --rollback
  1. Then upload the docs to the Firebase:
env GOOGLE_APPLICATION_CREDENTIALS="../date-fns/secrets/staging/key.json" npx tsx ./src/bin.ts ../date-fns/docs/config.js

License

MIT © Sasha Koss

0.38.0

10 months ago

0.36.0

10 months ago

0.34.0

10 months ago

0.37.0

10 months ago

0.35.0

10 months ago

0.33.0

10 months ago

0.32.0

10 months ago

0.31.0

10 months ago

0.30.0

10 months ago

0.29.0

2 years ago

0.28.0

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago

0.25.0

2 years ago

0.21.0

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.13.0

3 years ago

0.14.0

3 years ago

0.13.1

3 years ago

0.15.0

2 years ago

0.16.0

2 years ago

0.17.0

2 years ago

0.18.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.0

2 years ago

0.21.1

2 years ago

0.12.1

3 years ago

0.12.0

3 years ago

0.11.1

3 years ago

0.11.0

3 years ago

0.10.0

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago