2023-10-30 13:32:14 +02:00
|
|
|
# Website
|
|
|
|
|
|
|
|
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
|
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
## Development
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
### Generating the MDX files
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
From `packages/tools`, run `node website/processDocs.js --env dev`
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
### Getting the translations
|
|
|
|
|
|
|
|
```shell
|
|
|
|
CROWDIN_PERSONAL_TOKEN=..... yarn crowdinDownload
|
2023-10-30 13:32:14 +02:00
|
|
|
```
|
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
### Building the doc
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
From `packages/doc-builder`, run:
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
```shell
|
|
|
|
WEBSITE_BASE_URL=http://localhost:8077 yarn buildDev
|
2023-10-30 13:32:14 +02:00
|
|
|
```
|
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
Or to build a particular locale:
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
```shell
|
|
|
|
WEBSITE_BASE_URL=http://localhost:8077 yarn buildDev --locale fr
|
|
|
|
```
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
`processDocs.js` will also build everything by default, but it takes a long time, so using the above commands is convenient for dev.
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
## Translation
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
Translation is done using https://crowdin.com/
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
## Building for production
|
2023-10-30 13:32:14 +02:00
|
|
|
|
2023-11-24 21:01:28 +02:00
|
|
|
This is done in `release-website.sh` from the repository https://github.com/joplin/website/
|