git clone -b testing git@github.com:DARIAH-DE/Topics
cd Topics
mkvirtualenv Topics # if you use virtualenvwrapper
workon Topics # if you use virtualenvwrapper
pip install -r requirement-dev.txt
The testing branch is the integration branch for current developments. The master branch should always contain the latest stable version.
Pushing to master is protected, you can only push heads that have an "green" status from the integration build. To do so, do the following (from a clean working copy):
- Prepare everything in
testing
. Don't forget to tune the version number. - Merge testing into master. Use
--no-ff
to make sure we get a merge commit:git checkout master; git merge --no-ff testing
- if there are conflicts, resolve them and commit (to master)
- now, fast-forward-merge master into testing:
git checkout testing; git merge master
. testing and master should now point to the same commit. - push testing. This will trigger the integration build, which will hopefully work out fine.
- when the build has successfully finished, push master.
If something goes wrong, git reset --hard master origin/master
and try again.
The documentation is built using Sphinx. The following files influence the docs:
index.rst
contains the landing page with the table of contents. Here, all files should be linked.*.ipynb
for tutorials etc. can be linked from the index fileREADME.md
andCONTRIBUTING.md
will also be included- Docstrings in the modules will be included
docs/**/*
may contain additional filesconf.py
contains sphinx configurationsetup.py
contains version numbers etc.
Standalone documentation files can be written in one of the following formats:
- ReSTructured Text (
*.rst
), see Sphinx docs - Jupyter Notebook (
*.ipynb
), by way of nbsphinx - Markdown
Docstrings should follow Google conventions, this is supported by Napoleon.
Run python setup.py build_sphinx -a
, which will create the documentation tree in build/sphinx/html
.
Run sphinx-apidoc -M -e -o docs/gen dariah_topics
to add a documentation stub to docs/gen
.