📚 ReHLDS Documentation
This repository contains the documentation for the ReHLDS project, built using Docusaurus.
Prerequisites
- Node.js version 22 LTS
- NPM (comes with Node.js)
- Install
yarn
(orpnpm
,bun
, etc. or usenpm
)
Getting Started
-
Clone the repository
-
node -v
Should printv22.17.1
or other22.x
-
corepack enable yarn
-
yarn -v
-
Install the dependencies
yarn install --frozen-lockfile
- Start the local development server
yarn start
This will launch the documentation at http://localhost:3000
with hot reloading enabled. Any changes made to the content will automatically refresh the browser.
Available Scripts
- docusaurus: Runs the Docusaurus CLI.
- start: Starts the development server.
- build: Builds the static website for production.
- swizzle: Customizes the Docusaurus theme.
- deploy: Deploys the website (requires configuration).
- clear: Cleans up the cached data and files.
- serve: Serves the production build locally.
- write-translations: Prepares translation files.
- write-heading-ids: Generates heading IDs for markdown.
- typecheck: Runs TypeScript type checking.
Building for Production
To create a production build of the documentation:
yarn run build
The output will be in the build
directory, which can be served by any static site hosting service.
Deployment
To deploy the documentation site, make sure to configure the deployment settings in docusaurus.config.js
and run:
yarn run deploy
Type Checking
To check for TypeScript errors, run:
yarn run typecheck
This will ensure that all TypeScript code adheres to type definitions.
Browser Support
This project follows the browserslist specification to support modern browsers in production and the last few versions of major browsers in development.
Contributing
Feel free to contribute to the documentation by submitting pull requests. Please follow the contribution guidelines and ensure that your changes pass all checks before submitting.