mirror of https://github.com/FOME-Tech/wiki.git
59 lines
1.1 KiB
Markdown
59 lines
1.1 KiB
Markdown
# Wiki
|
|
|
|
This is the source code for the FOME Wiki - [wiki.fome.tech](https://wiki.fome.tech).
|
|
|
|
## Development
|
|
|
|
FOME Wiki is built using [Docusaurus 2](https://docusaurus.io/).
|
|
|
|
### Installation
|
|
|
|
Required [Node.js](https://nodejs.dev/) is defined in [.nvmrc](/.nvmrc). If you use [nvm](https://github.com/nvm-sh/nvm), run `nvm use` to switch to the correct version.
|
|
|
|
To install dependencies, run:
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
### Local Development
|
|
|
|
```bash
|
|
npm 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.
|
|
|
|
Docusaurus guides: [https://docusaurus.io/docs/category/guides](https://docusaurus.io/docs/category/guides)
|
|
|
|
#### Lint code
|
|
|
|
```bash
|
|
npm run lint
|
|
```
|
|
|
|
### Build
|
|
|
|
```bash
|
|
npm build
|
|
```
|
|
|
|
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
|
|
|
### Generate PDF
|
|
|
|
Required [Prince XML](https://www.princexml.com/).
|
|
|
|
Build and serve docs locally before generating PDF:
|
|
|
|
```bash
|
|
npm run build
|
|
npm run serve
|
|
```
|
|
|
|
In another terminal, run this to generate PDF:
|
|
|
|
```bash
|
|
npm run pdf
|
|
```
|