wails/website
2022-09-21 01:27:35 +08:00
..
.vscode feat(website): repair document content (#1775) 2022-08-22 19:59:28 +10:00
blog feat(website): update en docs 2022-09-20 23:41:42 +08:00
docs fix(website): fix broken links 2022-09-21 01:27:35 +08:00
i18n fix(website): fix broken links 2022-09-21 01:27:35 +08:00
src Add sponsor label workflow. Generate sponsor svg. 2022-09-20 21:52:20 +10:00
static Add sponsor label workflow. Generate sponsor svg. 2022-09-20 21:52:20 +10:00
.gitignore [v2] Docs update 2021-09-27 19:37:58 +10:00
babel.config.js feat(website): update en docs 2022-09-20 23:41:42 +08:00
crowdin.yml feat: optimize documentation website (#1849) 2022-09-18 22:01:50 +10:00
docusaurus.config.js Remove "Built with docusaurus" text 2022-09-20 07:36:25 +10:00
package-lock.json feat: optimize documentation website (#1849) 2022-09-18 22:01:50 +10:00
package.json feat(website): update en docs 2022-09-20 23:41:42 +08:00
README.md feat(website): update Chinese and Japanese and temporarily remove other language translations 2022-09-21 00:39:42 +08:00
sidebars.js fix(website): fix link (#1785) 2022-08-24 06:22:48 +10:00
versions.json feat: remove documentation for "beta" and "rc" versions 2022-09-20 23:06:51 +08:00

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ npm

Local Development

$ npm run start

Other languages:

npm run start -- --locale <language>

language - The language code configured in the i18n field in the docusaurus.config.js file.

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Translate

After the English source file is updated, run the following command to submit the source file to Crowdin:

npm run crwodin push -- -b <branch>

branch - Branch name in crowdin project

Run the following command to pull the translated files in crwodin to the local:

npm run crwodin pull -- -b <branch> -l <languageCode>

languageCode - Note that this refers to the language code in the crowdin project.

The recommended practice is to update the English source file locally, then translate the file in crowdin, and finally pull the translated file to the local.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.