alfredbaudisch / pardall_markdown

Reactive publishing framework, filesystem-based with support for Markdown, nested hierarchies, and instant content rebuilding. Written in Elixir.
Apache License 2.0
115 stars 7 forks source link

Add support for custom content trees similarly to Docusaurus Sidebars #19

Closed alfredbaudisch closed 3 years ago

alfredbaudisch commented 3 years ago

When it's needed to fine-tune a content tree, it's better to manually create them. Add support to the property custom_content_trees into the root _index.md.

custom_content_trees is a map, where each key is a content key identifier:

%{ custom_content_trees: %{
  "custom-tree": []
}}

Then the custom tree should be available by calling Repository.get_content_tree("custom-tree").

The custom tree should have support to:

Example: https://docusaurus.io/docs/sidebar

alfredbaudisch commented 3 years ago

This is not related to PardallMarkdown itself, it should be implemented by a consuming application itself.