Created
July 24, 2015 17:56
-
-
Save Mihara/31fae4ab8e4296fa1df6 to your computer and use it in GitHub Desktop.
RPM documentation generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GITDIR=RasterPropMonitor.wiki | |
HTMLDIR=html | |
cd `dirname $0` | |
cd $GITDIR | |
git pull | |
#gollum-site import | |
gollum-site --working --base_path ./ generate | |
cd .. | |
rm -f $HTMLDIR/* | |
mv $GITDIR/_site/* ./$HTMLDIR | |
rm -f $GITDIR/_site/* | |
rmdir $GITDIR/_site | |
mv $HTMLDIR/Home.html $HTMLDIR/index.html | |
sed -i '/<p><strong>Warning<\/strong>:/d' $HTMLDIR/index.html | |
#sed -i '/68q5rv2/d' $HTMLDIR/index.html | |
sed -i '/<title>Home/d' $HTMLDIR/index.html | |
sed -i '/<h1>Home/d' $HTMLDIR/index.html | |
htmldoc --webpage --links --compression --header ... -f RasterPropMonitor.pdf \ | |
$HTMLDIR/index.html \ | |
$HTMLDIR/Distribution-notes.html \ | |
$HTMLDIR/Making-a-prop-for-RasterPropMonitor.html \ | |
$HTMLDIR/Setting-up-cameras.html \ | |
$HTMLDIR/Configuring-a-monitor.html \ | |
$HTMLDIR/Writing-page-definition-files.html \ | |
$HTMLDIR/Defined-variables.html \ | |
$HTMLDIR/Writing-plugins-for-RasterPropMonitor.html \ | |
$HTMLDIR/Variable-handlers.html \ | |
$HTMLDIR/Internal-modules.html \ | |
$HTMLDIR/Prop-modules.html \ | |
$HTMLDIR/Action-handlers.html \ | |
$HTMLDIR/Part-modules.html \ | |
$HTMLDIR/Page-handlers.html \ | |
$HTMLDIR/Background-handlers.html \ | |
$HTMLDIR/Making-an-IVA-that-works-both-with-and-without-RasterPropMonitor.html \ | |
$HTMLDIR/Changes-in-this-version.html \ | |
$HTMLDIR/Changes-in-previous-versions.html \ | |
$HTMLDIR/Variables-deprecated-in-v0.17.html \ | |
$HTMLDIR/Variables-removed-in-v0.15.html | |
./markdown2bbcode < $GITDIR/Changes-in-this-version.md > update-post.txt | |
sed -i "s@\[/\*]@@g" update-post.txt | |
sed -i "s@h]@b]@g" update-post.txt | |
sed -i "s@em]@i]@g" update-post.txt | |
sed -i "/\[\[Changes in previous versions]]/d" update-post.txt | |
sed -i "/PLANS\.md/d" update-post.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: markdown2bbcode is originally from here: http://xyne.archlinux.ca/scripts/web/markdown2bbcode.md
HTMLDOC was an ancient version of that: https://www.msweet.org/projects.php?Z1