Undocumented
Method | __init__ |
Constructor |
Method | anchor_function |
Undocumented |
Method | get_dumper |
Returns a DumperClass instance for source page page |
Method | index_function |
No summary |
Method | resource_function |
Undocumented |
Method | uri_function |
Undocumented |
Instance Variable | linker |
Undocumented |
Instance Variable | _content |
Undocumented |
Instance Variable | _dumper_factory |
Undocumented |
Instance Variable | _index_generator |
Undocumented |
Instance Variable | _index_page |
Undocumented |
Instance Variable | _linker_factory |
Undocumented |
Constructor
When exporting one notebook page per export page ("multi file"), 'content' is a list of one page everytime. Even for exporting special pages, they go into 'content' one at a time. The special pages are linked in 'links' so the template can refer to them.
When exporting multiple notebook pages to a single export page ("single file"), 'content' is a list of all notebook pages a nd 'special' a list.
Parameters | |
notebook | Notebook object |
linker_factory | function producing ExportLinker objects |
dumper_factory | function producing DumperClass objects |
title | the export page title |
content | list of notebook pages to be exported |
special | list of special notebook pages to be exported if any |
home | link to home page if any |
up | link to parent export page if any |
prevpage | link to previous export page if any |
nextpage | link to next export page if any |
links | list of links to special pages if any, links are given as a 2-tuple of a key and a target (either a Path or a NotebookPathProxy ) |
index_generator | a generator function or that provides Path or Page objects to be used for the the index() function. This method should take a single argument for the root namespace to show. See the definition of Index.walk() or PageSelection.index() . |
index_page | the current page to show in the index if any |
Returns a DumperClass
instance for source page page
Only template options defined before this method is called are included, so only construct the "dumper" when you are about to use it
Parameters | |
namespace | the namespace to include |
collapse | if True only the branch of the current page is shown, if False the whole index is shown |
ignore_empty | if True empty pages (placeholders) are not shown in the index |