Use vimwiki as your favorite publishing tool !
"vimwiki let mainWiki = {} let mainWiki.path = '~/vimwiki/' let mainWiki.template_path = '~/sites/tyjak.github.io/templates' let mainWiki.template_default = 'default' let mainWiki.template_ext = '.tpl' let mainWiki.path_html = '~/sites/tyjak.github.io/app' let g:vimwiki_list = [mainWiki]
Yeoman is the web's scaffolding tool for modern webapps. Built on node.js, it inludes yo, bower ans grunt
$ npm install -g yo bower
Choose your prefer webapp environement. Generator-webapp is Html5boilerplate qith Jquery, Modernizer and Bootstrap
$ npm install -g generator-webapp
Go to your project directory and run :
$ yo webapp
Add a directory templates in root of the porject. Copy app/index.html
to templates/default.tpl
Put those two vimwiki vars in your template :
<title>%title</title> <body>%content</body>
In the directory of the project launch:
$ grunt serve
In the directory of the project launch:
$ grunt build
Within vim :
Gw
to save and stage your wikifile Gcommit
to commit change :WikiToHTML
to have the html file Within local www folder :
grunt build
git -a -m 'message' file.html
It's done' !
Automate all the stuff above !