aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2015-04-05 22:35:01 +0200
committernodiscc <nodiscc@gmail.com>2015-04-05 22:35:01 +0200
commit82af78b272ab0036eec289eb338934736aabbdc2 (patch)
tree6ef9ae0b2fd2e9ca16af9878e4671f7cf99e0edc
parent10070c3700aba137aab7b341d6116584f22715a3 (diff)
downloadShaarli-82af78b272ab0036eec289eb338934736aabbdc2.tar.gz
Shaarli-82af78b272ab0036eec289eb338934736aabbdc2.tar.zst
Shaarli-82af78b272ab0036eec289eb338934736aabbdc2.zip
use pandoc to generate local HTML documentation
fixes https://github.com/shaarli/Shaarli/issues/178 run 'make htmldoc'
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9635e53e..e6f42853 100644
--- a/Makefile
+++ b/Makefile
@@ -102,3 +102,9 @@ doc: clean
102 @rm -rf doc 102 @rm -rf doc
103 @git clone https://github.com/shaarli/Shaarli.wiki.git doc 103 @git clone https://github.com/shaarli/Shaarli.wiki.git doc
104 @rm -rf doc/.git 104 @rm -rf doc/.git
105
106### Convert local markdown documentation to HTML
107htmldoc:
108 for file in `find doc/ -maxdepth 1 -name "*.md"`; do \
109 pandoc -f markdown_github -t html5 -s -c "github-markdown.css" -o doc/`basename $$file .md`.html "$$file"; \
110 done; \ No newline at end of file