-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
# Website | ||
# ZetaChain Documentation | ||
|
||
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. | ||
Welcome to the ZetaChain documentation repository! Here you will find | ||
comprehensive information about the ZetaChain protocol, including tutorials, | ||
developer resources, and more. | ||
|
||
## Make sure you have a .env with: | ||
To access the live version of the documentation, please visit | ||
https://www.zetachain.com/docs/. | ||
|
||
``` | ||
URL=https://docs.staging.zetachain.com/ | ||
BASE_URL=/docs/ | ||
``` | ||
## Contributing | ||
|
||
### Installation | ||
|
||
``` | ||
$ yarn | ||
``` | ||
|
||
### Local Development | ||
To get started, make sure you have all the necessary dependencies installed. You | ||
can do this by running the following command: | ||
|
||
``` | ||
$ yarn dev | ||
yarn | ||
``` | ||
|
||
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. | ||
### Local Development | ||
|
||
### Build | ||
For local development, you can run a development server by executing the | ||
following command: | ||
|
||
``` | ||
$ yarn build | ||
yarn dev | ||
``` | ||
|
||
This command generates static content into the `build` directory and can be served using any static contents hosting service. | ||
This will start a local development server and automatically open a browser | ||
window. Most changes you make will be reflected live without the need to restart | ||
the server. | ||
|
||
### Deployment | ||
### Build | ||
|
||
Using SSH: | ||
To generate static content for deployment, you can use the following command: | ||
|
||
``` | ||
$ USE_SSH=true yarn deploy | ||
yarn build | ||
``` | ||
|
||
Not using SSH: | ||
|
||
``` | ||
$ GIT_USER=<Your GitHub username> yarn deploy | ||
``` | ||
Running this command will generate the static content and store it in the build | ||
directory. You can then use any static content hosting service to serve the | ||
documentation. | ||
|
||
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. | ||
We encourage and welcome contributions to the ZetaChain documentation. If you | ||
have any suggestions, improvements, or find any issues, please feel free to | ||
contribute by submitting a pull request. |