This is the repository for the AutoParams Documentation site.
docs: Docs markdown filessrc/components: React components used in homepage, docs mdxsrc/pages: Homepage files
docs/**/_category_.yml: Category metadatadocusaurus.config.ts: Configuration fileyarn.lock: Used for deploy
This website is built using Docusaurus, a modern static website generator.
$ yarn
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ yarn build
$ yarn serve
This command generates static content into the build directory and test your build locally.
```json
i18n: {
..
locales: ['en', 'fr'],
localeConfigs: {
fr: {
htmlLang: 'fr',
},
}
}
```
Extract and initialize JSON translation files.
yarn write-translations --locale frTranslates messages in JSON files in the i18n/[locale] path.
mkdir -p i18n/fr/docusaurus-plugin-content-docs/current
cp -r docs/** i18n/fr/docusaurus-plugin-content-docs/currentTranslates markdown files in the i18n/[locale] path.
Each locale is a distinct standalone single-page application: it is not possible to start the Docusaurus sites in all locales at the same time.
yarn start --locale fr- First, make sure the current docs version (the
./docsdirectory) is ready to be frozen. - Enter a new version number.
yarn docusaurus docs:version 2.x
- In the
classictheme configuration of thedocusaurus.config.tsfile, change thedocs.versions.current.labelto the current version value.