You must install virtualenvwrapper and a requirement is
Python 3. You can install it with brew. Once you do that you should
have pip3.
pip3 install virtualenvwrapperAnd add these two lines to your ~/.bash_profile:
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/virtualenvwrapper.shTo get started with contributing to these docs, set up a virtual environment for the project with Python 3 and clone the repo:
$ mkvirtualenv up42-docs --python=$(which python3)
$ git clone git@github.com:up42/docs.git
$ cd docs
$ pip install -r requirements.txtDocumentation will be built and pushed to the documentation site on merge or push to master. If you want to build the documentation locally to try it out, then run:
$ make htmland the output will be written to the build/ directory.
You don't need to manually remake the html files and delete the cache every time you want to check how code changes are rendered. Sphinx-reload reflects changes every time you save your code.
$ sphinx-reload docsTo generate the auto screenshots you need to add the path of the Chrome driver to
your environment - you can use the webdrivermanager command to achieve this.
Note that you need to have Chrome installed (at least version 76).
Additionally, also add a valid User and Password for the platform. Run this:
$ webdrivermanager chrome --linkpath /usr/local/bin
$ export UP42_USER=!!YOUR USER NAME!!
$ export UP42_PASSWORD=!!YOUR USER PASSWORD!!To update all the screenshots simply run:
$ robot screenshotsSphinx documentation is written in ReStructured Text. There is a quick primer available here.
- Good documentation is an essential part of a good product.
- There are 4 main categories of documentation:
- tutorials: is learning-oriented, allows the newcomer to get started; is a lesson.
- how-tos: is goal-oriented; shows how to solve a specific problem; is a series of steps.
- explanations: is understanding-oriented; explains, provides background and context.
- references: is information-oriented; describes the machinery; is accurate and complete. Taken from here. What category does the documentation that your are working on fits into?
- In terms of technical writing guidelines we follow the Google technical documentation guidelines.
- In terms of English prose The Complete Plain Words by Sir Ernest Gowers is a good reference on clear writing.
- If you introduce a new term: add it to the glossary and then reference it in the text.
- Prefer to use Sphinx cross references instead of anchors when cross referencing document locations.
- If you find any omission on the documentation you can and should submit a pull request that hopefully fixes the problem.
- Alternatively you can join our gitter support chatroom or email mailto:support@up42.com for the issue to be addressed.
- If you are a partner and want to incentivize the usage of your block, having good documentation is a must. Create a pull request with the documentation for your block(s) we'll get to it and merge it when needed.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.