3 ms·
I use Pandoc to convert directories of Markdown files into static HTML websites. Here's the build command for responsive.style[1]: pandoc $file -f markdow
by err4nt 8y ago
I use Pandoc to convert directories of Markdown files into static HTML websites.
Here's the build command for responsive.style[1]:
pandoc $file -f markdown -t html5 -H templates/header-prod.html -B templates/nav.html -A templates/footer-prod.html -o (echo "../$file" | sed '$s/\.md$/.html/') -s --data-dir=./ --highlight-style breezedark --variable=file:(echo "$file" | sed '$s/\.md$/.html/')
Works beautifully!
1: https://github.com/tomhodgins/responsive.style/blob/master/src/build-prod.sh https://github.com/tomhodgins/responsive.style/blob/master/s...
- ArlenBales 8y agoI know Blot.im as one static site generator that uses it: https://github.com/davidmerfield/Blot/blob/master/app/models/entry/build/file/markdown/convert.js https://github.com/davidmerfield/Blot/blob/master/app/models...
- privong 8y agoHakyll is another: https://jaspervdj.be/hakyll/ https://jaspervdj.be/hakyll/
- uvtc 8y agoNice. I wrote up a tool as well, with navigation and prev/next links: http://www.unexpected-vortices.com/sw/rippledoc/index.html http://www.unexpected-vortices.com/sw/rippledoc/index.html