4 ms·
Create a gh-pages branch for your content, and make an _layouts folder. Then put something like this inside it: https://github.com/Shikaga/story/blob/gh-pages/
by kybernetikos 13y ago
Create a gh-pages branch for your content, and make an _layouts folder. Then put something like this inside it: https://github.com/Shikaga/story/blob/gh-pages/_layouts/main.html https://github.com/Shikaga/story/blob/gh-pages/_layouts/main...
Now write your novel in markdown in an index.md file. Every time you check in github will render a nice html file for you that's easy to read, but your source remains easy to write and diff since it's just markdown.
- gabemart 13y agoThis is an interesting approach, but markdown strips whitespace which could be problematic with some forms of indentation (for dialogue, etc.) Might still be worth it though. Thanks.
- asdfaoeu 13y agoWhat sort of indentation do you want? Markdown allows pre-formatted text for code and the like. http://daringfireball.net/projects/markdown/syntax#precode http://daringfireball.net/projects/markdown/syntax#precode
- kybernetikos 13y agoI had exactly that problem, although use of text-indent in the css meant that every paragraph starts indented, so you just make each line of dialogue a new paragraph and it works out ok. So yes, it's not ideal, but it's still pretty good.