Cartesi Docs has been built using Docusaurus 2, a modern static website generator.
Note that on macOS you also need Xcode and Command Line Tools.
-
Fork the repo:
For help, refer to GitHub Docs: Fork a repo.
-
Clone your forked repo:
git clone [email protected]:[your_github_handle]/cartesi/docs
-
Navigate into the cloned folder:
cd docs
-
If you have already cloned the repository, be sure to sync your fork with the latest changes:
For help, refer to GitHub Docs: Syncing a fork.
git checkout master git pull
-
Install the dependencies:
yarn install
The site is built using Docusaurus. You may need to install Docusaurus before running the Docs locally.
yarn add docusaurus
Alternatively, you can upgrade Docusaurus.
yarn upgrade @docusaurus/core@latest @docusaurus/preset-classic@latest
-
Run the Docs locally: The following command will start a local development server and open a browser window. Most changes are reflected live without having to restart the server.
yarn start
And then point your browser to http://localhost:3000
.
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
This repo build is automatically deployed using AWS Amplify.
The following branches and pull requests are deployed to the following URLs:
Branch | URL |
---|---|
master | https://github.com/cartesi/docs |