Commit f1bad2dd by benjaoming

automatically generate docs and CHANGELOG.md

parent b757c6d7
#!/bin/sh #!/bin/bash
echo "Compiling LESS files to CSS" set -e
# Ensure we're in the right directory
cd "$(dirname "$0")"
CHANGELOG="CHANGELOG.md"
echo "Creating CHANGELOG.md"
echo "Latest Changes" > $CHANGELOG
echo "==============" >> $CHANGELOG
echo "Compiled on: `date`" >> $CHANGELOG
echo "\nThis file is auto-generated upon every new release. To review the latest commits in the master branch, please refer to: https://github.com/benjaoming/django-wiki/commits/master"
echo "" >> $CHANGELOG
git log --graph --pretty=format:'%h -%d %s (%cr) <%an>' --abbrev-commit | sed "s/^/ /" >> $CHANGELOG
echo "Compiling LESS files to CSS..."
./build-less.sh ./build-less.sh
echo "Building model chart PDF (needs graphviz)" echo "Building docs..."
cd docs
make html
cd ..
echo "Building model chart PDF (needs graphviz)..."
cd testproject/ cd testproject/
./manage.py wikiviz wiki --inheritance | dot -Tpdf -o ../model_chart_wiki.pdf ./manage.py wikiviz wiki --inheritance | dot -Tpdf -o ../model_chart_wiki.pdf
cd .. cd ..
echo "Building Python source distribution" echo "Building Python source distribution..."
rm -Rf *egg-info/ rm -Rf *egg-info/
python setup.py sdist python setup.py sdist
#!/bin/bash
#sphinx-build -b html . _build
make html
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