#[non_exhaustive]pub struct Page {
pub name: String,
pub content: String,
pub subpages: Vec<Page>,
/* private fields */
}
Expand description
Represents a documentation page. A page can contain subpages to represent nested documentation set structure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The name of the page. It will be used as an identity of the page to
generate URI of the page, text of the link to this page in navigation,
etc. The full page name (start from the root page name to this page
concatenated with .
) can be used as reference to the page in your
documentation. For example:
You can reference Java
page using Markdown reference link syntax:
[Java][Tutorial.Java]
.
content: String
The Markdown content of the page. You can use (== include {path} ==)
to include content from a Markdown file. The content can be used
to produce the documentation page such as HTML format page.
subpages: Vec<Page>
Subpages of this page. The order of subpages specified here will be honored in the generated docset.