Skip to main content

Module render

Module render 

Source
Expand description

Rendering: solar AST -> vocs MDX.

Structsยง

CommentData ๐Ÿ”’
Ctx ๐Ÿ”’
Description ๐Ÿ”’

Enumsยง

DescKind ๐Ÿ”’

Functionsยง

collect_comments ๐Ÿ”’
Collect natspec from doc comments, applying inline link replacement.
contract_kind_str ๐Ÿ”’
dedent ๐Ÿ”’
Strip common leading whitespace from all non-empty lines.
escape_table_cell ๐Ÿ”’
Escape a value so it is safe inside a markdown (GFM) table cell:
find_contract_id ๐Ÿ”’
Find the HIR ContractId for a contract by name, requiring the contract to live in the source file currently being rendered (compared via absolute path) so contracts that share a file stem across src/ and lib/ cannot collide.
first_notice ๐Ÿ”’
function_heading ๐Ÿ”’
function_signature_anchor ๐Ÿ”’
inheritdoc_base ๐Ÿ”’
Returns the base contract name from @inheritdoc Base, or None.
is_known_custom_tag ๐Ÿ”’
Returns true if tag looks like a generally-recognised natspec custom tag.
italicize_dev ๐Ÿ”’
Italicize a @dev block by wrapping it in <i>...</i> HTML tags. Surrounding blank lines around the tags ensure MDX/CommonMark parses the inner content as block-level markdown (lists, code fences, multiple paragraphs all work).
render_constants ๐Ÿ”’
render_contract ๐Ÿ”’
render_enum ๐Ÿ”’
render_error ๐Ÿ”’
render_event ๐Ÿ”’
render_free_functions ๐Ÿ”’
render_function_section ๐Ÿ”’
render_struct ๐Ÿ”’
render_udvt ๐Ÿ”’
return_description ๐Ÿ”’
source
Render a single Solidity source file as a list of (relative_output_path, mdx_content) pairs.
split_first_word ๐Ÿ”’
strip_one_ws ๐Ÿ”’
write_code_block ๐Ÿ”’
write_comment_block ๐Ÿ”’
write_deployments_table ๐Ÿ”’
Write the Deployments table for a contract page.
write_enum_variants_table ๐Ÿ”’
write_frontmatter ๐Ÿ”’
write_git_source ๐Ÿ”’
Write link if git_url is set.
write_param_table ๐Ÿ”’
write_struct_properties_table ๐Ÿ”’
yaml_escape_double_quoted ๐Ÿ”’
Escape a string for use as a YAML double-quoted scalar.