PDF export options: root place, depth, tree/by-place layout, theme grouping, table of contents #41
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thierryade/backend#41
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Exporting a PDF (validated version, current state, or a spec extract) currently always renders the whole tree, nested, with no table of contents.
Add export options to
PdfExportJob, applied to every target alike:root_place): export only that place's subtree (not combinable withspec, whose own place is already the root).max_depth): relative to the root place, 0 = that place only, null = unlimited.layout):tree(current, nested) orby_place(one flat section per place with its full path, a link to its parent place and to each child place).group_by_theme): one chapter per theme (then an untagged chapter), each laid out with the chosen layout.In both layouts each spec links to the spec it refines and to its refinements; a target cut from the document renders as plain text.
The render context keeps its existing
roottree untouched so custom templates keep working, and gainsexport,places,themesandtoc. The template preview endpoint accepts the samelayout/group_by_themeoptions.Spec: THI-168
Spec: THI-178
Spec: THI-188
Spec: THI-198