rehlds.github.io/README.md

67 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2024-10-25 08:28:56 +03:00
# 📚 ReHLDS Documentation
2024-10-25 08:28:56 +03:00
This repository contains the documentation for the ReHLDS project, built using [Docusaurus](https://docusaurus.io/).
2024-10-25 08:28:56 +03:00
## Prerequisites
2024-10-25 08:28:56 +03:00
- Node.js version 18 or higher
- NPM (comes with Node.js)
## Getting Started
2024-10-25 08:28:56 +03:00
1. Clone the repository
2024-10-25 08:28:56 +03:00
2. Install the dependencies
```bash
npm install
```
2024-10-25 08:28:56 +03:00
3. Start the local development server
```bash
npm run start
```
2024-10-25 08:28:56 +03:00
This will launch the documentation at `http://localhost:3000` with hot reloading enabled. Any changes made to the content will automatically refresh the browser.
2024-10-25 08:28:56 +03:00
## Available Scripts
2024-10-25 08:28:56 +03:00
- **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.
2024-10-25 08:28:56 +03:00
## Building for Production
2024-10-25 08:28:56 +03:00
To create a production build of the documentation:
```npm
npm run build
```
The output will be in the `build` directory, which can be served by any static site hosting service.
2024-10-25 08:28:56 +03:00
## Deployment
2024-10-25 08:28:56 +03:00
To deploy the documentation site, make sure to configure the deployment settings in `docusaurus.config.js` and run:
2024-10-25 08:28:56 +03:00
```npm
npm run deploy
```
2024-10-25 08:28:56 +03:00
## Type Checking
To check for TypeScript errors, run:
```npm
npm run typecheck
```
2024-10-25 08:28:56 +03:00
This will ensure that all TypeScript code adheres to type definitions.
2024-10-25 08:28:56 +03:00
## Browser Support
2024-10-25 08:28:56 +03:00
This project follows the [browserslist](https://github.com/browserslist/browserslist) specification to support modern browsers in production and the last few versions of major browsers in development.
## Contributing
2024-10-25 08:28:56 +03:00
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.