Revision d128fdb6

b/.gitignore
28 28
/devel/upload
29 29

  
30 30
# doc
31
/doc/api
31 32
/doc/*.html
32 33
/doc/*.in
33 34
/doc/*.pdf
35
/doc/rapi-resources.sgml
34 36

  
35 37
# doc/examples
36 38
/doc/examples/ganeti.cron
b/Makefile.am
306 306
	@mkdir_p@ $(DIRS)
307 307
	touch $@
308 308

  
309
.PHONY: apidoc
310
apidoc:
311
	test -e doc/api || mkdir doc/api
312
	TMPDIR=`mktemp -d ./temp-epydoc.XXXXXX` && { \
313
		cp -r scripts daemons lib $$TMPDIR && \
314
		( \
315
			cd $$TMPDIR && \
316
			mv lib ganeti && \
317
			epydoc --conf ../epydoc.conf \
318
		) ; \
319
		rm -rf $$TMPDIR ; \
320
	}
321

  
309 322
# vim: set noet :
b/epydoc.conf
1
[epydoc]
2

  
3
name: Ganeti
4
url: http://code.google.com/p/ganeti/
5

  
6
output: html
7
target: ../doc/api
8

  
9
# note: the wildcards means the directories should be cleaned up after each
10
# run, otherwise there will be stale '*c' (compiled) files that will not be
11
# parsable and will break the epydoc run
12
modules: ganeti, scripts/gnt-*, daemons/ganeti-*
13

  
14
graph: all
15

  
16

  
17
simple-term: 1
18

  
19
docformat: epytext
20

  
21
imports: yes
22

  
23
include-log: no

Also available in: Unified diff