pub struct Options {Show 23 fields
pub init: bool,
pub summary: bool,
pub book_root: String,
pub markdown_root: String,
pub summary_path: String,
pub book: Option<String>,
pub mdbook_out: Option<String>,
pub title: Option<String>,
pub ignore_git: bool,
pub layout: Layout,
pub search_paths: Vec<PathBuf>,
pub escape_tags: EscapeTags,
pub link_format: Option<String>,
pub no_proto_markdown: bool,
pub no_proto_highlight: bool,
pub no_cel_highlight: bool,
pub explicit_markdown_root: bool,
pub explicit_summary_path: bool,
pub explicit_book_root: bool,
pub alphabetize_services: bool,
pub alphabetize_messages: bool,
pub openapi_operation_source: OpenApiOperationSource,
pub openapi_summary_label: OpenApiSummaryLabel,
}Expand description
Spine options shared across renderers (subset ported from protobuf-mdbook).
Passed to Contract::link_context and
renderers at output time. In-memory configuration only.
Fields§
§init: boolWhen true, emit initial book scaffolding (SUMMARY, directories).
summary: boolWhen true, regenerate the mdBook SUMMARY.md.
book_root: StringRoot directory of the mdBook project.
markdown_root: StringRelative path from book_root to generated markdown pages.
summary_path: StringRelative path from book_root to SUMMARY.md.
book: Option<String>Optional mdBook book title override.
mdbook_out: Option<String>Optional output directory for the built book.
title: Option<String>Optional title override for the reference manual.
ignore_git: boolWhen true, skip git-based provenance checks.
layout: LayoutPage layout strategy for generated markdown.
search_paths: Vec<PathBuf>Extra filesystem paths searched when resolving links or companions.
How to escape HTML-like tags in prose comments.
link_format: Option<String>Selected link formatter name (default mdbook-relative).
no_proto_markdown: boolWhen true, skip copying companion proto markdown files.
no_proto_highlight: boolWhen true, skip protobuf syntax highlighting in init scaffold.
no_cel_highlight: boolWhen true, skip CEL syntax highlighting in init scaffold.
explicit_markdown_root: boolSet when markdown_root= appears in plugin options (preserved under book=).
explicit_summary_path: boolSet when summary_path= appears in plugin options (preserved under book=).
explicit_book_root: boolSet when book_root= appears in plugin options (preserved under book=).
alphabetize_services: boolWhen true, sort package-layout Services headings by entity title (mdBook).
alphabetize_messages: boolWhen true, sort package-layout Messages and enums headings by entity title
(mdBook).
openapi_operation_source: OpenApiOperationSourceHow to render raw OpenAPI operation source on operation pages.
openapi_summary_label: OpenApiSummaryLabelHow to label OpenAPI operations in SUMMARY and index navigation.
Implementations§
Source§impl Options
impl Options
Sourcepub fn link_format_name(&self) -> &str
pub fn link_format_name(&self) -> &str
Default link formatter name.
Sourcepub fn output_path(&self, rel: &str) -> String
pub fn output_path(&self, rel: &str) -> String
Join book_root with a relative output path.
Sourcepub fn proto_highlight(&self) -> bool
pub fn proto_highlight(&self) -> bool
Returns true when protobuf highlight preprocessor should be configured.
Sourcepub fn cel_highlight(&self) -> bool
pub fn cel_highlight(&self) -> bool
Returns true when CEL highlight preprocessor should be configured.
Sourcepub fn render_summary(&self) -> bool
pub fn render_summary(&self) -> bool
Returns true when a SUMMARY file should be rendered (summary or init).
Sourcepub fn package_only_summary(&self) -> bool
pub fn package_only_summary(&self) -> bool
Returns true when only package-level SUMMARY entries are needed (init mode).