This repository contains the code for the Semaphore website published at semaphore.appliedzkp.org. It uses Markdown syntax and the Docusaurus site generator. |
---|
Install dependencies, build the documentation, and run the site on your local machine.
If you haven't already, download and install Node.js.
You can use npm
(included with Node.js) or yarn
to install Docusaurus and other Node.js packages.
To install yarn
, run the following in your terminal:
$ npm i --global yarn
Clone the Semaphore repository and then change to the website
directory:
$ git clone https://github.com/semaphore-protocol/website.git && cd website
To install dependencies, run yarn
:
$ yarn
To generate the HTML and start the site, run yarn start
:
$ yarn start
Visit the Semaphore docs site in your browser at http://localhost:3000.
$ yarn start
Th start
command starts a local development server (default port is :3000
) and launches the site in your browser.
As you edit, the server reloads most changes and automatically refreshes the site in your browser.
$ yarn build
The build
command generates static content into the build
directory that can be served by any static content hosting service.
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
If you use GitHub pages for hosting, this command lets you build the website and push to the gh-pages
branch.