diff options
author | James Shubin <james@shubin.ca> | 2013-12-13 10:44:34 -0500 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-12-17 09:03:28 -0800 |
commit | 99f9dedd5b0f817364deff7c2bd1a8401e067e40 (patch) | |
tree | e8adf209aaece077b1f35c9103cb8f0969cec6e1 /doc | |
parent | 329e38d4ab5af1a675b4d5651eda983f8a924418 (diff) |
Add boilerplate for easy, local, documentation testing.
Change-Id: I5386b4e1f05a30b051d81eaca557c93ede198b51
Signed-off-by: James Shubin <james@shubin.ca>
Reviewed-on: http://review.gluster.org/6506
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/admin-guide/en-US/markdown/.gitignore | 2 | ||||
-rwxr-xr-x | doc/admin-guide/en-US/markdown/pdfgen.sh | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/admin-guide/en-US/markdown/.gitignore b/doc/admin-guide/en-US/markdown/.gitignore new file mode 100644 index 00000000000..9eed460045f --- /dev/null +++ b/doc/admin-guide/en-US/markdown/.gitignore @@ -0,0 +1,2 @@ +output/*.pdf + diff --git a/doc/admin-guide/en-US/markdown/pdfgen.sh b/doc/admin-guide/en-US/markdown/pdfgen.sh new file mode 100755 index 00000000000..68b320617b1 --- /dev/null +++ b/doc/admin-guide/en-US/markdown/pdfgen.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# pdfgen.sh simple pdf generation helper script. +# Copyright (C) 2012-2013 James Shubin +# Written by James Shubin <james@shubin.ca> + +#dir='/tmp/pdf' +dir=`pwd`'/output/' +ln -s ../images images +mkdir -p "$dir" + +for i in *.md; do + pandoc $i -o "$dir"`echo $i | sed 's/\.md$/\.pdf/'` +done + +rm images # remove symlink + |