2022-10-28 02:38:26 +00:00
|
|
|
# Website
|
|
|
|
|
2024-04-16 05:26:12 +00:00
|
|
|
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
|
2022-10-28 02:38:26 +00:00
|
|
|
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
```
|
2024-05-17 20:49:23 +00:00
|
|
|
$ npm install
|
2022-10-28 02:38:26 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Local Development
|
|
|
|
|
|
|
|
```
|
2024-05-17 20:49:23 +00:00
|
|
|
$ npm run start
|
2022-10-28 02:38:26 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
|
|
|
|
|
|
|
### Build
|
|
|
|
|
|
|
|
```
|
2024-05-17 20:49:23 +00:00
|
|
|
$ npm run build
|
2022-10-28 02:38:26 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
|
|
|
|
|
|
|
### Deployment
|
|
|
|
|
|
|
|
Using SSH:
|
|
|
|
|
|
|
|
```
|
2024-05-17 20:49:23 +00:00
|
|
|
$ USE_SSH=true npm run deploy
|
2022-10-28 02:38:26 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Not using SSH:
|
|
|
|
|
|
|
|
```
|
2024-05-17 20:49:23 +00:00
|
|
|
$ GIT_USER=<Your GitHub username> npm run deploy
|
2022-10-28 02:38:26 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
|