nimbus-eth2/docs/the_nimbus_book/src/contribute.md

46 lines
1.5 KiB
Markdown
Raw Normal View History

# Updating this guide
2020-06-09 16:50:10 +00:00
We use [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) to produce our documentation.
2020-06-09 16:40:18 +00:00
## Before You Start
1. Clone the repository by `git clone https://github.com/status-im/nimbus-eth2.git`.
2. Go to the `docs` folder and type `make` to install `mkdocs`
3. Activate mkdocs: `. mkdocs/bin/activate`
3. Go to where the Markdown files are located by `cd the_nimbus_book/`.
2020-06-09 16:40:18 +00:00
## Real-Time Update and Preview Changes
1. Run `mkdocs serve` in the terminal.
2. Preview the book at [http://localhost:8000](http://localhost:8000).
2020-06-09 16:40:18 +00:00
## Build and Deploy
2021-04-28 14:06:00 +00:00
The first step is to submit a pull request to the [unstable branch](https://github.com/status-im/nimbus-eth2/tree/unstable).
2020-06-19 13:55:11 +00:00
Then, after it is merged, do the following under our main repository:
```sh
cd nimbus-eth2
git checkout unstable
git pull
make update # (This is to update the submodules to the latest version)
make publish-book
```
2020-06-09 16:40:18 +00:00
2021-04-28 14:06:00 +00:00
## Troubleshooting
2020-06-19 14:03:17 +00:00
If you see file conflicts in the pull request, this may due to that you have created your new branch from an old version of the `unstable` branch.
Update your new branch using the following commands:
2020-06-19 14:03:17 +00:00
```sh
2021-04-28 14:06:00 +00:00
git checkout unstable
2020-06-19 14:03:17 +00:00
git pull
make update
git checkout readme
2021-04-28 14:06:00 +00:00
git merge unstable
# use something like "git mergetool" to resolve conflicts, then read the instructions for completing the merge (usually just a `git commit`)
# check the output of "git diff unstable"
2020-06-19 14:03:17 +00:00
```
2020-06-09 16:40:18 +00:00
Thank you so much for your help to the decentralized and open source community. :)