Vimwiki allows to create a personal wiki style documents using its own markup or markdown. In order to have portability between other applications I opted to work using markdown :) Also because I <3 markdown, It’s simple to write and read, it’s just plain text and its the de facto standard writting language in the Developer world to write software documentation.
Using gulp to move vimwiki documents to hexo source files
In order to pre-process our vimwiki to contents ready to be published in your hexo site we’ll use gulp.
Just create Gulpfile.js in your hexo site and install gulp itself running npm i --save gulp.
Ignore contents of vimwiki markdown
Just add this two markdown links between you content to be ignored: (Remove escape characters \)
## My hidden content will be here
Ignoring entire pages from being moved to source folder
In order to ignore certain vimwiki pages we’ll create a hexoignore.json file in our vimwiki folder. This file will be loaded and passed to gulp-ignore.
Example of hexoignore.json file:
Also you can set your vimwiki markdown files name starting with . (dot) as unix hidden to be ignored by gulp moving.
var gulp = require('gulp')
var stripCode = require('gulp-strip-code')
var replace = require('gulp-replace')
var gulpIgnore = require('gulp-ignore')
var hexoIgnore = require('/home/genar/src/orgmode/hexoignore.json')