Commit graph

5 commits

Author SHA1 Message Date
Jonathan Hodgson
992a47f727 Stop .git directory being copied when creating html 2020-12-31 17:40:05 +00:00
Jonathan Hodgson
7a032b7cdb 2 bug fixes - git not always working and verbose pandoc
Pandoc would output warnings about a lack of title, although we are not
using it in the template.

Also, the tool would fail to do some git commands because it was
checking the wrong folder
2020-12-31 16:57:47 +00:00
Jonathan Hodgson
6641d61b1f Causes the convert tool to copy other files
Any non-markdown files (except the database) will also be copied to the
directory when doing a convert.
2020-12-31 09:57:25 +00:00
Jonathan Hodgson
7d554d5326 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`.
2020-12-31 09:46:23 +00:00
Jonathan Hodgson
4c891efdce Start work on export options
I have started an html export. So far a toc is generated
2020-12-31 00:06:24 +00:00