Skip to content
forked from getodk/docs

The documentation for all the ODK tools. This is one of the most popular artifacts our community produces. It's built in Sphinx. ✨📚✨

License

Notifications You must be signed in to change notification settings

yanokwa/odk-docs

 
 

Repository files navigation

ODK Docs

Platform License Build status

The source for ODK documentation published at https://docs.getodk.org.

Please file an issue if you can't find what you are looking for.

Note

The source for the Central API documentation is managed in the Central code repository and copied here as part of the Central release process.

Building and viewing documentation

Prerequisites

We highly recommend you use a virtual environment like virtualenv. If you need to use different versions of Python, we recommend pyenv.

Cloning the repo

Clone the docs repo and make sure all the requirements are installed:

$ git clone https://github.com/getodk/docs.git
$ cd docs/

If you wish to use virtualenv, now is a good time to set it up:

$ python -m venv venv
$ source venv/bin/activate

You will see (venv) next to your prompt to indicate you are working within the docs project. To exit this mode, use the command deactivate.

Whether you are using virtualenv or not, you next need to install the dependencies:

$ pip install -r requirements.txt

It can take a long time (>10 minutes) to clone the repo due to the large number of images in the docs. If you get an error such as Smudge error or GitHub's rate limit reached, run git checkout -f HEAD until you get the message Checking out files: 100% done.

Building the docs

Once your environment is set up, build and serve the docs locally with:

$ make autobuild

You can then view the docs in your browser at http://localhost:8000. The docs will auto-build and refresh as you make changes to the source files.

You can use make dirhtml to for a one-time build of the HTML files and make clean to clean the build.

How to contribute?

We are open for new issues and pull requests.

  • Please read the Contributors Guide before working on the documentation.
  • Find issues to work on.
    • First time contributors are encouraged to complete a line edit as a way to get familiar with our contribution process.
    • Issues labelled easy do not require much specific technical knowledge.
    • Issues labelled contributor friendly are usually self-contained and don't require extensive knowledge of the ODK ecosystem as a whole.

If you would like to add a screenshot of Collect, please make a copy of this Figma document to use as a template. You can then expand either "Template" or "Bottom Template" and find the "Screen" child. Import your screenshot as the fill for the Screen. You can then export the template as 2x for use.

You can also...

Troubleshooting

  • If you get an extension error or a configuration error:
    • Make sure your virtual environment is activated.
    • Type python --version to check your current python version (it should be 3.10+).
    • Run pip install -r requirements.txt.

About

The documentation for all the ODK tools. This is one of the most popular artifacts our community produces. It's built in Sphinx. ✨📚✨

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.1%
  • Mustache 12.6%
  • Makefile 3.8%
  • Dockerfile 1.5%