Difference between revisions of "Documentation/Dashboard/Wiki Books"
From Apache OpenOffice Wiki
< Documentation | Dashboard
(→Export wiki pages from the wiki) |
|||
Line 13: | Line 13: | ||
parse(mainTOC) | parse(mainTOC) | ||
− | + | ||
sub parse(TOC) | sub parse(TOC) | ||
load(TOC) | load(TOC) | ||
Line 24: | Line 24: | ||
endfor | endfor | ||
endsub | endsub | ||
− | |||
====Resolve transcluded content==== | ====Resolve transcluded content==== |
Revision as of 14:42, 14 November 2007
Template:Documentation/BeingEdited
Wiki Books Project
The objective of this project is to implement a solution that allows compilations of wiki pages to be exported as books in ODF and/or PDF.
Steps
Define a sequence of wiki pages to make up a book
The documentation wiki makes use of TOC templates to define a wiki book.
Export wiki pages from the wiki
This includes recursively parsing the pages referenced by the main TOC (for sub-TOCs) and remembering the page level for later heading adjustments.
parse(mainTOC) sub parse(TOC) load(TOC) foreach entry(TOC) parse(entry) if contains(subTOC) level++ parse(subTOC) endif endfor endsub