Implementation of copyrights page HTML generator
Context
For the case of POD client we want to auto generate a component during the creation of a book which will act as a placeholder of the Copyrights page of that book.
Proposal
Design
Implementation (if applicable)
- In here based on the
featurePODEnabled
flag a new component should be created automatically in a similar way as the existing automatic creation of TOC component here from lines 379-451. This new component should be included in thefrontmatter
division after theTOC
component, itscomponentType
should becopyrights-page
and itsincludeInToc
should be set to false. - A new function should be implemented here called
generateCopyrightsPage
, the arguments of that function should be an object ofbookComponent
as well as the book's metadata. Then, based on this the function should create theHTML
for the Copyrights page. - Finally, the above method,
generateCopyrightsPage
, should be called in the exported function here in a similar way like this