Add support for writing preview pages in AsciiDoc
Currently, pages in the preview site must be written as embeddable HTML. This not only makes editing preview pages tedious, it's also easy to create HTML that is different than what the AsciiDoc processor produces. Instead, it should be possible to write the preview pages in AsciiDoc and have the build automatically convert those pages to embeddable HTML.
Include the following capabilities:
-
Only support preview pages written in AsciiDoc -
Process page attributes ( page-*
) and assign them to thepage.attributes
property in the UI model -
Set the page.layout
property in the UI model to the value of thepage-layout
attribute, if specified (otherwisedefault
) -
Use the 404 layout if the file stem is 404, otherwise use the value of the page.layout
property in the UI model -
Assign the document title to the page.title
property in the UI model
Edited by Dan Allen