The documentation for BERVO is managed in two places (relative to the repository root):
docs directory contains all the files that pertain to the content of the documentation (more below)mkdocs.yaml file contains the documentation config, in particular its navigation bar and theme.The documentation is hosted using GitHub pages, on a special branch of the repository (called gh-pages). It is important that this branch is never deleted - it contains all the files GitHub pages needs to render and deploy the site. It is also important to note that the gh-pages branch should never be edited manually. All changes to the docs happen inside the docs directory on the main branch.
All the documentation is contained in the docs directory, and is managed in Markdown. Markdown is a very simple and convenient way to produce text documents with formatting instructions, and is very easy to learn - it is also used, for example, in GitHub issues. This is a normal editing workflow:
.md file you want to change in an editor of choice (a simple text editor is often best). IMPORTANT: Do not edit any files in the docs/odk-workflows/ directory. These files are managed by the ODK system and will be overwritten when the repository is upgraded! If you wish to change these files, make an issue on the ODK issue tracker.The documentation is not automatically updated from the Markdown, and needs to be deployed deliberately. To do this, perform the following steps:
cd bervo/src/ontology
sh run.sh make update_docs
Mkdocs now sets off to build the site from the markdown pages. You will be asked to
If everything was successful, you will see a message similar to this one:
INFO - Your documentation should shortly be available at: https://bioepic-data.github.io/bervo/