summaryrefslogtreecommitdiffstats
path: root/gen-doc.bash
blob: f2176de44d44b0a96350f67e87f4217b2428b9c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

# Hackish script to generate documentation using epydoc

sources="ipalib ipa_server ipa_webui"
out="./freeipa2-dev-doc"

init="./ipalib/__init__.py"
echo "Looking for $init"
if [[ ! -f $init ]]
then
    echo "Error: You do not appear to be in the project directory"
    exit 1
fi
echo "You appear to be in the project directory"

# Documentation
if [[ -d $out ]]
then
    echo "Removing old $out directory"
    rm -r $out
fi
echo "Creating documentation in $out"

epydoc -v --parse-only --html --no-frames --include-log \
    --name="FreeIPA2 developer documentation" \
    --docformat=restructuredtext \
    --output=$out \
    $sources