pub struct DocusaurusGlossaryOptions { /* private fields */ }
Implementations§
Source§impl DocusaurusGlossaryOptions
impl DocusaurusGlossaryOptions
Sourcepub fn with_slug(self, slug: &str) -> Self
pub fn with_slug(self, slug: &str) -> Self
Format the slug in the metadata section of the generated MDX document.
By default the root /glossary
path is used.
Sourcepub fn generate(self, module: &Documentation) -> Result<String, RenderError>
pub fn generate(self, module: &Documentation) -> Result<String, RenderError>
Build MDX documentation for docusaurus from the given module documentation struct, with a glossary that group all functions from all submodules.
§Return
A glossary and a hashmap with the name of the module as the key and its raw documentation as the value.
§Errors
Handlebar failed to render the variables in the module documentation.
Trait Implementations§
Source§impl Default for DocusaurusGlossaryOptions
impl Default for DocusaurusGlossaryOptions
Source§fn default() -> DocusaurusGlossaryOptions
fn default() -> DocusaurusGlossaryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocusaurusGlossaryOptions
impl RefUnwindSafe for DocusaurusGlossaryOptions
impl Send for DocusaurusGlossaryOptions
impl Sync for DocusaurusGlossaryOptions
impl Unpin for DocusaurusGlossaryOptions
impl UnwindSafe for DocusaurusGlossaryOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more