Skip to main content

Crate forge_doc

Crate forge_doc 

Source
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ยง

BaseInfo
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.
CommentsRef
The collection of references to natspec Comment items.
ContractInheritance
The contract inheritance preprocessor.
ContractSource
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.
EnumSource
Owned enum definition data.
ErrorSource
Owned error definition data.
EventSource
Owned event definition data.
FunctionSource
Owned function definition data.
GitSource
The git source preprocessor.
InferInlineHyperlinks
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.
ParamInfo
Information about a parameter, struct field, event/error parameter, etc.
ParseItem
The parsed item.
Parser
The documentation parser.
PreprocessorId
The preprocessor id.
StructSource
Owned struct definition data.
TypeSource
Owned type definition data (user-defined value types).
VariableSource
Owned variable definition data.

Enumsยง

CommentTag
The natspec comment tag explaining the purpose of the comment. See: https://docs.soliditylang.org/en/v0.8.17/natspec-format.html#tags.
ContractKind
The kind of a contract-like definition.
Markdown
The markdown format.
ParseSource
A wrapper type around owned source data extracted from the parse tree.
PreprocessorOutput
Preprocessor output. Wraps all existing preprocessor outputs in a single abstraction.
VariableAttr
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
Inheritdoc preprocessor 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ยง

AsDocResult
The result of AsDoc::as_doc.