diff options
author | nodiscc <nodiscc@gmail.com> | 2015-04-05 22:35:01 +0200 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2015-04-05 22:35:01 +0200 |
commit | 82af78b272ab0036eec289eb338934736aabbdc2 (patch) | |
tree | 6ef9ae0b2fd2e9ca16af9878e4671f7cf99e0edc /Makefile | |
parent | 10070c3700aba137aab7b341d6116584f22715a3 (diff) | |
download | Shaarli-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'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 | ||
107 | htmldoc: | ||
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 | ||