Skip to content

[epic] MarkdownDB plugin system #2

@rufuspollock

Description

@rufuspollock

We want a plugin system in MarkdownDB so people can easily extend the core functionality, for example to extract additional metadata, so that not all functionality has to be in core and people can rapidly add functionality

Sketch (April 2023)

https://link.excalidraw.com/l/9u8crB2ZmUo/9hkrQmVl9QX

image

Acceptance

  • Identify the different types of plugins ✅2023-11-19 roughly: parsing, computing, validating (and maybe serializing ...)
  • Research how remark works to see if we can reuse it 🚧2023-11-19 see notes in comment below
  • Design of MarkdownDB and especially the plugin system.
    • extract first heading as title metadata
    • add a metadata field

Notes

MarkdownDB vs Contentlayer

Contentlayer supported:

  • document types with
    • frontmatter schema definition and validation
    • assigning document types based on glob patterns
    • computed fields, e.g. description auto-extracted from the document content
  • excluding/including some content folders we kinda already have this but it's not configurable
  • ...

What we need:

  • probably config file similar to Contentlayer one, with:
    • custom document types,
    • content include/exclude option
    • plugins
    • ...
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions