-
Install NodeJS + NPM
For macOS
brew install node
More information on how to install it can be found in Gatsbyjs docs.
-
Documentation project setup
Install Gatsby CLI
npm install -g gatsby-cli
Clone repository
git clone [email protected]:mysteriumnetwork/documentation.git
Navigate into project directory
cd documentation
Install project dependencies
npm install
-
Start developing.
To start the live-reload server run
gatsby develop
To build static pages run
gatsby build
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial. -
Edit content or create a new page
Content is located in the
content/
directory.All pages must contain a title and description.
--- title: Mission description: Censorship free internet for all --- ## Don't use #h1 to start the content as the page title is already h1 Your content
Navigations in Gatsby are hardcoded, your can find its configuration in the navigation/
directory.
The sidebar navigation is located in navigation/sidebar.js
.
Editing navigation requires that you restart the gatsby develop
command in your terminal.