wails/website
Misite Bao 0f791c71f4
fix: fix website build and add taskfile (#2577)
* chore: update dependencies

* docs: update source documents

* chore: use Taskfile instead of scripts
2023-04-12 21:36:01 +10:00
..
.vscode feat(website): repair document content (#1775) 2022-08-22 19:59:28 +10:00
blog Add github issue link 2023-01-18 17:41:33 +11:00
docs Update templates.mdx (#2571) 2023-04-10 22:00:04 +10:00
i18n fix: fix website build and add taskfile (#2577) 2023-04-12 21:36:01 +10:00
src feat(cli): add Nodejs version in wails doctor (#2546) 2023-04-12 07:11:37 +10:00
static chore: update sponsors.svg (#2566) 2023-04-11 18:26:28 +10:00
versioned_docs fix obfuscate build param name (#2542) 2023-04-01 21:48:03 +11:00
versioned_sidebars Release/v2.4.0 (#2470) 2023-03-08 23:27:23 +11:00
.gitignore fix: fix website build and add taskfile (#2577) 2023-04-12 21:36:01 +10:00
.npmrc Use swc + pnpm (#1966) 2022-10-13 21:22:57 +11:00
babel.config.js v2.0.0 2022-09-22 11:00:57 +10:00
crowdin.yml feat: optimize documentation website (#1849) 2022-09-18 22:01:50 +10:00
docusaurus.config.js Website / Documentation - Slack to Discord (#2200) 2022-12-29 11:54:18 +11:00
package.json fix: fix website build and add taskfile (#2577) 2023-04-12 21:36:01 +10:00
pnpm-lock.yaml fix: fix website build and add taskfile (#2577) 2023-04-12 21:36:01 +10:00
README.md v2.0.0 2022-09-22 11:00:57 +10:00
sidebars.js fix(website): fix link (#1785) 2022-08-24 06:22:48 +10:00
Taskfile.yml fix: fix website build and add taskfile (#2577) 2023-04-12 21:36:01 +10:00
versions.json Release/v2.4.0 (#2470) 2023-03-08 23:27:23 +11: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 crowdin push -- -b <branch>

branch - Branch name in crowdin project

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

npm run crowdin 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.