3 ms·
Why would you choose that over a simple static site generator that converts a markdown file into a static html file that works without JavaScript and doesn't ca
by dewey 6y ago
Why would you choose that over a simple static site generator that converts a markdown file into a static html file that works without JavaScript and doesn't cause any problems for search engines?
This one command does just that and you don't have to "prerender" your pages in an "additional build step" as suggested in the other comment.
pandoc -f markdown -t html5 -o output.html input.md -c style.css
- 0x142857 6y agoThat command is essentially what I mean by "prerender". I will add this feature to docup later, for people who want to have a static html file instead.
- dewey 6y agoSo why all that extra work when in the end the only feature of Docup that would be used is the CSS which could also just be fed into pandoc?
- 0x142857 6y agoFirst it's for people who don't want a build step, but they can prerender if they want. And it does more than adding some CSS, JavaScript is also used for interactions.
- littlecranky67 6y agoExcept that you (and everyone in your team/contributor) needs to have pandoc installed when updating the docs. I wrote mdwiki (http://mdwiki.info http://mdwiki.info) ages ago to exactly avoid this.