Page
You can start a page by starting a line with one or more +
characters.
You specify one +
character
for each level in the page hierarchy followed by the page title, where
a single +
character indicates a page at one level
below the starting page. If the generated index is rendered as a tree
structure, then subpages are shown as child nodes of a parent page.
+ <page-title>
Restriction: The page markup is supported only in the SPLDOC
descriptions for toolkits, namespaces, primitive operators, and SPL
files.
Restriction: Page markup is only supported
from a top section level, not from a subsection.
- A new page is started by a
+
character. - The following SPLDOC markup generates four pages in addition to the starting page. The second and third pages are subpages of the first new page. The fourth page is a new page at the same level as the first new page. Both the first and fourth new pages are linked from the starting page.
/** * Example of new page markup. * * + The title for a new page * Text in the page. Following this sentence are links to subpages. * ++ The title for a new subpage 1 * Text in the subpage 1. This is the second sentence. * ++ The title for a new subpage 2 * Text in the subpage 2. This is the second sentence. * + The title for another new page * Text in the page. */
The spl-make-doc command renders the markup as four new pages with titles similar to the examples. Each page contains links to any new subpages.
The title for a new page Text in the page. Following this sentence are links to subpages. The title for a new subpage 1 Text in the subpage 1. The title for a new subpage 2 Text in the subpage 2.
The title for a new subpage 1 Text in the subpage 1. This is the second sentence.
The title for a new subpage 2 Text in the subpage 2. This is the second sentence.
The title for another new page Text in the page.