2024-02-22 01:17:23 -05:00
|
|
|
# Website
|
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
This is the [Docusaurus](https://docusaurus.io/) project for the Sparo website.
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
## Development
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
1. Install the monorepo dependencies using [RushJS](https://rushjs.io/):
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
```shell
|
|
|
|
rush install
|
|
|
|
rush build
|
|
|
|
```
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
2. Launch the local development server:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cd apps/website
|
|
|
|
rushx start
|
|
|
|
```
|
2024-02-22 01:17:23 -05: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.
|
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
## Deployment
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
1. If you will manually copy the files to a server, you can build the **apps/sparo/build** folder like this:
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
```shell
|
|
|
|
cd apps/website
|
|
|
|
rushx build
|
|
|
|
```
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
2. To automatically deploy to GitHub Pages (as an administrator):
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
```shell
|
|
|
|
# If you are using HTTPS authentication for GitHub:
|
|
|
|
cd apps/website
|
|
|
|
GIT_USER=<Your GitHub username> rushx deploy
|
|
|
|
```
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
```
|
|
|
|
# If you are using SSH authentication for GitHub:
|
|
|
|
USE_SSH=true rushx deploy
|
|
|
|
```
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
## See also
|
2024-02-22 01:17:23 -05:00
|
|
|
|
2024-02-22 02:48:30 -05:00
|
|
|
- [Deployment](https://docusaurus.io/docs/deployment) from the Docusaurus help
|
2024-02-22 01:17:23 -05:00
|
|
|
|