File: README.doc

package info (click to toggle)
aiocoap 0.1%2B9ae36f4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 396 kB
  • ctags: 597
  • sloc: python: 2,987; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
in order to have auto-buildable documentation with sphinx (using `./setup.py
build_sphinx`), you must first run

    for x in $(find aiocoap -name '*.py' | sed -e 's@.py$@@' -e 's@/__init__$@@' -e 's@/@.@g')
    do
        rm doc/$x.rst
        echo "$x module\n=========================================\n\n.. automodule:: $x" > doc/$x.rst
        if [[ $x != "aiocoap.numbers" ]]
        then
           echo "    :members:\n    :undoc-members:\n    :show-inheritance:" >> doc/$x.rst
        else
           echo ".. toctree::\n    :glob:\n\n    aiocoap.numbers.*\n" >> doc/$x.rst
        fi
    done

(sphinx-apidoc is less customizable and does not seem to do more).

for readthedocs to work, a branch `for-readthedocs` has been generated that
contains those files statically checked in.