vimwiki ghp-import gh-pages
- Github Pages Import
- Github Pages
-
Add to
.git/hooks/pre-commit
:# Update gh-pages if test "$(git config --bool ghppages.push || echo false)" = true then pathhtml=$(git config ghppages.pathhtml || echo "$GIT_WORK_TREE/docs") say 'Pushing html to gh-pages...' ghp-import -n -o -p -f "$pathhtml" say_done fi
-
Update git config to enable:
git config ghppages.push true # g:vimwiki_list[1]['path_html'] git config ghppages.pathhtml "$HOME/vimwiki_home/docs"
-
To test start a webserver on the local network and open
http://laptop-pif179dt:8000/. Update the
hostname
and allowpython
to access the network, in Windows Security: Firewall & network protection. Create a Python Web Server provides details.python -m http.server --bind 0.0.0.0 8000 --dir $HOME/vimwiki_home/docs
- Template updates recommended by Ruslan Osipov in Custom templates in vimwiki.