Statistics
| Branch: | Tag: | Revision:

root / ci / make_docs.sh @ 6a8190a5

History | View | Annotate | Download (488 Bytes)

1
#!/bin/sh
2

    
3
# Copied from main Synnefo repository
4
# snf-vncauthproxy has no Sphinx-based docs yet
5

    
6
set -e
7

    
8
DOCS_DIR=$1
9

    
10
# Make sure the $DOCS_DIR exists, otherwise
11
# buildbot/common.py will throw exception
12
mkdir -p $DOCS_DIR
13
cat << EOF >$DOCS_DIR/index.html
14
<html>
15
<body>
16
No docs yet.
17
</body>
18
</html>
19
EOF
20

    
21
echo "Created documentation stub in $(pwd)/$DOCS_DIR"
22
exit 0
23

    
24
cd docs
25
make html
26
cd -
27

    
28
mkdir -p $DOCS_DIR
29
mv -n docs/_build/html/* $DOCS_DIR
30

    
31
echo "Moved docs to to: $(pwd)/$DOCS_DIR"