aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-06-20 16:37:55 +0200
committerVirtualTam <virtualtam@flibidi.net>2018-06-20 16:37:55 +0200
commit1d9eb22a3df85b67fe6652c0876cd7382c2fb525 (patch)
tree5fa04f9084e6a816bee36326ffc7a5973237a731 /Makefile
parent9a6183e852efdc8100c09fcc238b27d10d6e1b10 (diff)
parentc372fc96faa94c124cf94d26fa34666d071116f8 (diff)
downloadShaarli-1d9eb22a3df85b67fe6652c0876cd7382c2fb525.tar.gz
Shaarli-1d9eb22a3df85b67fe6652c0876cd7382c2fb525.tar.zst
Shaarli-1d9eb22a3df85b67fe6652c0876cd7382c2fb525.zip
Merge tag 'v0.8.7' into stable
Release v0.8.7
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 60aec9a0..47f3530f 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@
11# - install Xdebug for PHPUnit code coverage reports: 11# - install Xdebug for PHPUnit code coverage reports:
12# - see http://xdebug.org/docs/install 12# - see http://xdebug.org/docs/install
13# - enable in php.ini 13# - enable in php.ini
14SHELL := /bin/bash
14 15
15BIN = vendor/bin 16BIN = vendor/bin
16PHP_SOURCE = index.php application tests plugins 17PHP_SOURCE = index.php application tests plugins
@@ -203,14 +204,18 @@ htmlsidebar:
203htmlpages: 204htmlpages:
204 @for file in `find doc/ -maxdepth 1 -name "*.md"`; do \ 205 @for file in `find doc/ -maxdepth 1 -name "*.md"`; do \
205 base=`basename $$file .md`; \ 206 base=`basename $$file .md`; \
206 sed -i "1i #$${base//-/ }" $$file; \ 207 sed -i "1i # $${base//-/ }" $$file; \
207 awk 'BEGIN { FS = "[\\[\\]]{2}" }'\ 208 awk 'BEGIN { FS = "[\\[\\]]{2}" }'\
208 'm = /\[/ { t=$$2; gsub(/ /, "-", $$2); print $$1"["t"]("$$2".html)"$$3 }'\ 209 'm = /\[/ { t=$$2; gsub(/ /, "-", $$2); print $$1"["t"]("$$2".html)"$$3 }'\
209 '!m { print $$0 }' $$file > doc/tmp.md; \ 210 '!m { print $$0 }' $$file > doc/tmp.md; \
210 mv doc/tmp.md $$file; \ 211 mv doc/tmp.md $$file; \
211 pandoc -f markdown_github -t html5 -s \ 212 pandoc -f gfm \
213 -t html5 \
214 -s \
212 -c "github-markdown.css" \ 215 -c "github-markdown.css" \
213 -T Shaarli -M pagetitle:"$${base//-/ }" -B doc/sidebar.html \ 216 -T Shaarli \
217 -M pagetitle:"$${base//-/ }" \
218 -B doc/sidebar.html \
214 -o doc/$$base.html $$file; \ 219 -o doc/$$base.html $$file; \
215 done; 220 done;
216 221