This creates a static website using Docusaurus. Content comes from two sources:
- Main documentation: Pulled from Notion using docu-notion
- Reference documentation: Downloaded from https://ref-docs.bloomlibrary.org
pnpm install
Set these 3 environment variables:
- SIL_BLOOM_DOCS_NOTION_ROOT_PAGE (see docu-notion docs)
- SIL_BLOOM_DOCS_NOTION_TOKEN (see docu-notion docs)
- SIL_BLOOM_DOCS_CROWDIN_TOKEN (see Docusaurus Crowdin docs)
# Pull main docs from Notion
pnpm pull
# Download and convert reference docs
pnpm ref-docs
# or
pnpm ref-docs:incrementalpnpm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
- Direct dependencies should stay on exact versions.
pnpm-workspace.yamlsetssavePrefix: '', sopnpm addandpnpm updatewill write exact versions by default. - Add or update packages with an explicit version, for example
pnpm add react@17.0.2orpnpm add -D typescript@4.9.5. - If pnpm blocks a dependency build script, review it with
pnpm approve-buildsand commit the resultingallowBuildschanges inpnpm-workspace.yamlonly after confirming the package is required.