Expand description
The module for generating Solidity documentation.
See DocBuilder.
Re-exportsยง
pub use mdbook_driver;
Modulesยง
- builder ๐
- document ๐
- error
- Parser error.
- helpers ๐
- parser ๐
- The parser module.
- preprocessor ๐
- Module containing documentation preprocessors.
- writer ๐
- The module for writing and formatting various parse tree items.
Structsยง
- Base
Info - A base contract reference (e.g.
is IERC721, Ownable). - BufWriter
- The buffered writer. Writes various display items into the internal buffer.
- Comment
- The natspec documentation comment.
- Comments
- The collection of natspec Comment items.
- Comments
Ref - The collection of references to natspec Comment items.
- Contract
Inheritance - The contract inheritance preprocessor.
- Contract
Source - Owned contract definition data.
- Deployment
- A contract deployment.
- Deployments
- The deployments preprocessor.
- DocBuilder
- Build Solidity documentation for a project from natspec comments. The builder parses the source files using Parser, then formats and writes the elements as the output.
- Document
- The wrapper around the ParseItem containing additional information the original item and extra context for outputting it.
- Enum
Source - Owned enum definition data.
- Error
Source - Owned error definition data.
- Event
Source - Owned event definition data.
- Function
Source - Owned function definition data.
- GitSource
- The git source preprocessor.
- Infer
Inline Hyperlinks - The infer hyperlinks preprocessor tries to map @dev tags to referenced items Traverses the documents and attempts to find referenced items comments for dev comment tags.
- Inheritdoc
- The inheritdoc preprocessor. Traverses the documents and attempts to find inherited comments for inheritdoc comment tags.
- Param
Info - Information about a parameter, struct field, event/error parameter, etc.
- Parse
Item - The parsed item.
- Parser
- The documentation parser.
- Preprocessor
Id - The preprocessor id.
- Struct
Source - Owned struct definition data.
- Type
Source - Owned type definition data (user-defined value types).
- Variable
Source - Owned variable definition data.
Enumsยง
- Comment
Tag - The natspec comment tag explaining the purpose of the comment. See: https://docs.soliditylang.org/en/v0.8.17/natspec-format.html#tags.
- Contract
Kind - The kind of a contract-like definition.
- Markdown
- The markdown format.
- Parse
Source - A wrapper type around owned source data extracted from the parse tree.
- Preprocessor
Output - Preprocessor output. Wraps all existing preprocessor outputs in a single abstraction.
- Variable
Attr - Variable attribute relevant for doc generation.
Constantsยง
- CONTRACT_
INHERITANCE_ ID - ContractInheritance preprocessor id.
- DEPLOYMENTS_
ID - Deployments preprocessor id.
- GIT_
SOURCE_ ID - GitSource preprocessor id.
- INFER_
INLINE_ HYPERLINKS_ ID - InferInlineHyperlinks preprocessor id.
- INHERITDOC_
ID Inheritdocpreprocessor ID.
Traitsยง
- AsDoc
- A trait for formatting a parse unit as documentation.
- Preprocessor
- Trait for preprocessing and/or modifying existing documents before writing the to disk.
Type Aliasesยง
- AsDoc
Result - The result of
AsDoc::as_doc.