Adds the ability to convert to html

Issue #14

I still want, at some point, to add to other formats but this is fine
for now.

The tool uses pandoc to do the conversion from md to html

A sample template (without any styling) is provided. This can be
overwritten in $HOME/.config/kb/templates/main.html or in the
knowledgebase directory under `templates`.
This commit is contained in:
Jonathan Hodgson 2020-12-31 09:46:23 +00:00
parent 4c891efdce
commit 7d554d5326
4 changed files with 47 additions and 3 deletions

View file

@ -9,6 +9,8 @@ install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
sed '/^source/d' inc/* kb > $(DESTDIR)$(PREFIX)/bin/kb
chmod +x $(DESTDIR)$(PREFIX)/bin/kb
mkdir -p $(DESTDIR)$(PREFIX)/share/kb
cp -r templates $(DESTDIR)$(PREFIX)/share/kb
uninstall: