Commit d128fdb6 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add apidoc makefile target

The patch adds the apidoc target and the epydoc config file for it. Note
that this is for epydoc 3.0 and that it will put the docs into

The patch also adds a new .gitignore rule for the auto-generated rapi

Reviewed-by: imsnah
parent 0e46916d
......@@ -28,9 +28,11 @@
# doc
# doc/examples
......@@ -306,4 +306,17 @@ stamp-directories: Makefile
@mkdir_p@ $(DIRS)
touch $@
.PHONY: apidoc
test -e doc/api || mkdir doc/api
TMPDIR=`mktemp -d ./temp-epydoc.XXXXXX` && { \
cp -r scripts daemons lib $$TMPDIR && \
( \
cd $$TMPDIR && \
mv lib ganeti && \
epydoc --conf ../epydoc.conf \
) ; \
rm -rf $$TMPDIR ; \
# vim: set noet :
name: Ganeti
output: html
target: ../doc/api
# note: the wildcards means the directories should be cleaned up after each
# run, otherwise there will be stale '*c' (compiled) files that will not be
# parsable and will break the epydoc run
modules: ganeti, scripts/gnt-*, daemons/ganeti-*
graph: all
simple-term: 1
docformat: epytext
imports: yes
include-log: no
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment