Expand description

Generating documentation for gdnative.

The goal of this library is to automatically generate documentation and gut tests from a gdnative project, that would still look good to Godot users.

You should either use this library in a build.rs script, using the Builder structure to drive the documentation generation:

use gdnative_doc::{backend::BuiltinBackend, init_logger, Builder, LevelFilter};
use std::path::PathBuf;

init_logger(LevelFilter::Info)?;
Builder::new()
    .add_backend(BuiltinBackend::Markdown, PathBuf::from("doc"))
    .add_backend(BuiltinBackend::Gut, PathBuf::from("addons/gut"))
    .build()?;

Or you can use the command-line tool.

Modules

Module for implementing your own backend.
Structures representing the documentation of a gdnative package.

Structs

A builder for generating godot documentation in various formats.
Structure that holds user configuration settings.

Enums

Type of errors emitted by this library.
An enum representing the available verbosity level filters of the logger.
Used to specify a crate in Builder::package.

Functions

Initialize the logger with the specified logging level.