out-of-cheese-error / gooseberry

A command line utility to generate a knowledge base from Hypothesis annotations
Apache License 2.0
153 stars 9 forks source link

Feat/templating #44

Closed Ninjani closed 3 years ago

Ninjani commented 3 years ago

Big commit! Changes:

  1. Adds a new config subcommand called kb for configuring generated knowledge base. This has

    all           Change everything related to the knowledge base
    directory     Change knowledge base directory
    annotation    Change annotation handlebars template
    link          Change index link handlebars template
    index         Change index file name
    extension     Change knowledge base file extension
    hierarchy     Change folder hierarchy
  2. Uses annotation template to render annotations in plaintext files with extension filetype and an index file named index with links to each page decided by link. hierarchy dictates the folder format and directory says where the knowledge base files are stored.

  3. Added examples of use for mdbook, obsidian and org-mode (partial)

BREAKING CHANGE: yes