Skip to content

Contributing

Contributing

Contributions are both encouraged and greatly appreciated.

To contribute content, fork this repo and make a pull request to the master branch including your changes.

  • On GitHub, fork the xmrig-api repo
  • Clone your newly created repo. (Note: replace your-username with your GitHub username)

via ssh:

git clone git@github.com:your-username/xmrig-api

via https:

git clone https://github.com/your-username/xmrig-api
  • Navigate to the repo and create a new topic branch
cd xmrig-api
git checkout -b foobar
  • After making modifications, commit and push your changes to your topic branch
  • Open a PR against the xmrig-api branch

Run the documentation server locally

This documentation can be built and run locally.

  • The build process for mkdocs utilizes Python
  • It is recommended to install python pip dependencies inside of a Virtual Environment (venv)

Note: You may need to first install python3-venv or the equivalent for your distribution

  • Navigate to your xmrig-api repo
  • Create the python virtual environment
python3 -m venv .venv
source .venv/bin/activate
  • Install mkdocs dependencies to the venv
pip install -r requirements.txt
  • Run the documentation server locally
mkdocs serve