Patch Gimli to fix underscores_inside_words in PDF manuals

This commit is contained in:
Nicholas Sherlock 2015-05-12 22:26:36 +12:00
parent 948d39a20c
commit 3b95ae49e9
1 changed files with 10 additions and 2 deletions

View File

@ -9,12 +9,20 @@ TARGET_FILE=obj/cleanflight_${TARGET}
if [ $RUNTESTS ] ; then
cd ./src/test && make test
# A hacky way of running the unit tests at the same time as the normal builds.
# A hacky way of building the docs at the same time as the normal builds.
elif [ $PUBLISHDOCS ] ; then
if [ $PUBLISH_URL ] ; then
sudo apt-get install zlib1g-dev libssl-dev wkhtmltopdf libxml2-dev libxslt-dev #ruby-rvm
rvmsudo gem install gimli
# Patch Gimli to fix underscores_inside_words
curl -L https://github.com/walle/gimli/archive/v0.5.9.tar.gz | tar zxf -
sed -i 's/).render(/, :no_intra_emphasis => true).render(/' gimli-0.5.9/ext/github_markup.rb
cd gimli-0.5.9/
gem build gimli.gemspec && rvmsudo gem install gimli
cd ../
./build_docs.sh