summary refs log tree commit diff
path: root/scripts/gendoc.sh
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-03 04:58:01 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-03 04:58:01 +0100
commit84430a4a8a13aa2ea7964471988ccea1862ba442 (patch)
treef3cb0d8049da3e0448984f557c113402af7b5444 /scripts/gendoc.sh
parentfix rst (diff)
downloadsynapse-84430a4a8a13aa2ea7964471988ccea1862ba442.tar.xz
doc generator
Diffstat (limited to 'scripts/gendoc.sh')
-rwxr-xr-xscripts/gendoc.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/gendoc.sh b/scripts/gendoc.sh
new file mode 100755
index 0000000000..30ba1db629
--- /dev/null
+++ b/scripts/gendoc.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+MATRIXDOTORG=$HOME/workspace/matrix.org
+
+rst2html-2.7.py --stylesheet=basic.css,nature.css ../docs/specification.rst > $MATRIXDOTORG/docs/spec/index.html
+rst2html-2.7.py --stylesheet=basic.css,nature.css ../docs/client-server/howto.rst > $MATRIXDOTORG/docs/howtos/client-server.html
+
+perl -pi -e 's#<head>#<head><link rel="stylesheet" href="/site.css">#' $MATRIXDOTORG/docs/spec/index.html $MATRIXDOTORG/docs/howtos/client-server.html
+
+perl -pi -e 's#<body>#<body><div id="header"><div id="headerContent">&nbsp;</div></div><div id="page"><div id="wrapper"><div style="text-align: center; padding: 40px;"><img src="/matrix.png" width="305" height="130" alt="[matrix]"/></div>#' $MATRIXDOTORG/docs/spec/index.html $MATRIXDOTORG/docs/howtos/client-server.html
+
+perl -pi -e 's#</body>#</div></div><div id="footer"><div id="footerContent">&copy 2014 Matrix.org</div></div></body>#' $MATRIXDOTORG/docs/spec/index.html $MATRIXDOTORG/docs/howtos/client-server.html
\ No newline at end of file