[mlpack-git] master: Add a script to regenrate documentation for git master branch. To be used in a nightly cron job. (c3e7433)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Aug 20 18:23:50 EDT 2015


Repository : https://github.com/mlpack/mlpack.org

On branch  : master
Link       : https://github.com/mlpack/mlpack.org/compare/176a1c9126aa8c8336c3319c6d3430e9eff2d428...bcb617f6fb3a4d345e51788f095dc1c7959ec544

>---------------------------------------------------------------

commit c3e7433f3c36b2272d0928b4c61cff9186f15a98
Author: Ryan Curtin <ryan at ratml.org>
Date:   Thu Aug 20 18:22:09 2015 -0400

    Add a script to regenrate documentation for git master branch.
    To be used in a nightly cron job.


>---------------------------------------------------------------

c3e7433f3c36b2272d0928b4c61cff9186f15a98
 docs/update-git-documentation.sh | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/docs/update-git-documentation.sh b/docs/update-git-documentation.sh
new file mode 100755
index 0000000..a9fcfc5
--- /dev/null
+++ b/docs/update-git-documentation.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# git pull, then rebuild the docs.
+
+gitdir=/var/www/www.mlpack.org/mlpack-git/
+docdir=/var/www/www.mlpack.org/docs/mlpack-git/
+
+cd $gitdir
+
+git pull # Update sources.
+
+cd build
+# We have to build everything for the sake of the man pages.
+# This probably precipitates cleaning the environment.
+make clean
+rm -rf doc/html/*
+make -j2
+
+# Rebuild the man pages and the documentation.
+make man doc
+# build/doc/html/ should be symlinked to $docdir/doxygen already.
+# We need to invert all the images.
+cd doc/html/
+mogrify -negate *.png
+cd ../../
+
+# Copy the man page results to the right directory.
+rm -rf $docdir/man/*
+cp share/man/*.gz $docdir/man/
+cd $docdir/man/
+
+gunzip *.gz
+../../generate-man-html.sh # Rebuild html.



More information about the mlpack-git mailing list