blackstork-io / fabric

An open-source command-line tool for reporting workflow automation and a configuration language for reusable templates. Reporting-as-Code
https://blackstork.io/fabric/
Apache License 2.0
10 stars 0 forks source link

Plugin improvements #132

Closed dobarx closed 1 month ago

dobarx commented 1 month ago
traut commented 1 month ago

TOC can now be placed anywhere inside document and it will be invoked last and content placed on top.

can both of these be configured? For the cases where TOC should render for a specific section (not the whole doc) and be placed in a specific location, instead just on the top of the doc.

With depends_on, for example, we could define a scope for TOC. As for the location, maybe we need place_at_the_top_of_the_doc (or something) bool flag, that defaults to true, but can be see to false with TOC placed inline.

apologies if some of this is covered, I haven't looked through the code yet!

dobarx commented 1 month ago

TOC can now be placed anywhere inside document and it will be invoked last and content placed on top.

can both of these be configured? For the cases where TOC should render for a specific section (not the whole doc) and be placed in a specific location, instead just on the top of the doc.

With depends_on, for example, we could define a scope for TOC. As for the location, maybe we need place_at_the_top_of_the_doc (or something) bool flag, that defaults to true, but can be see to false with TOC placed inline.

apologies if some of this is covered, I haven't looked through the code yet!

Ahh, so then I should turn off content placement at top for it and keep original one? As for the scope it should be based on scope variable that can either be document or section

dobarx commented 1 month ago

Fixes:

dobarx commented 1 month ago

Fixes:

traut commented 1 month ago

closes: