Repository of the VSC documentation website.
Improving the documentation is quite simple, all documents can be edited with a simple text editor. You standard workflow to contribute changes is:
- Clone this repository
- Make corrections/improvements to any document
- Push you changed to a new branch
- Open a pull request to the
master
branch of this repo
Feel free to open issues to get fixes or improvements on the agenda. To get an overview of work that is planned or in progress, check out the project overview.
You will need to clone the repository, i.e.,
$ git clone [email protected]:hpcleuven/VscDocumentation.git
Your life will be substantially easier if you can preview your changes locally. Install the required packages in a self-contained environment such a Python virtual environment (venv) or Conda.
All required Python modules can be easily installed in a Python virtual
environment using the requirements.txt
file in this repo
$ python -m venv /path/to/new/venv
$ source /path/to/new/venv/bin/activate
$ cd VscDocumentation
$ python -m pip install -r requirements.txt
A conda environment has be defined to install all the required software
Downloads and installation instructions for Miniconda can be found on conda's website.
The YAML environment description file is sphinx.yml
. The
environment can be created using
$ conda env create -f environment.yml
The sphinx
environment can be activated by
$ source activate sphinx
Do not make changes in the master
or development
branches directly. Create
your own feature/bugfix branch as needed.
$ cd VscDocumentation
$ git checkout master
$ git checkout -b feature/new_stuff
The repository contains a make file that has a target to run the sphinx server.
The latter will monitor the source
directory for changes, and serve the
documentation to a web browser that is opened automatically.
$ make web
You can now edit the content to your heart's content, making commits to your feature branch as you go. You can push your feature branch to the Github repository whenever you like.
$ git add source/some_documentation_file.rst
$ git commit -m "some new stuff added to VSC docs"
$ git push origin feature/new_stuff
When you are done, create a pull request to the master
branch of this
repository on GitHub.
Changes to the documentation require the positive review from the documentation maintainers of your pull request. Pay attention to the review in case there would be remarks to address.
Once the pull request has been merged, the branch will be deleted from GitHub. At this point, all that is left to do is delete your local feature branch.
$ git fetch origin
$ git checkout master
$ git pull origin master
$ git branch -d feature/new_stuff