Module doc_links

Module doc_links 

Source
Expand description

Extracts, resolves and rewrites links and intra-doc links in markdown documentation.

ModulesΒ§

intra_doc_links πŸ”’
Helper tools for intra doc links.

StructsΒ§

DocCommentToken πŸ”’
DocumentationLinks
Web and local links to an item’s documentation.

ConstantsΒ§

MARKDOWN_OPTIONS πŸ”’

FunctionsΒ§

broken_link_clone_cb πŸ”’
doc_attributes πŸ”’
external_docs πŸ”’
extract_definitions_from_docs πŸ”’
Extracts all links from a given markdown text returning the definition text range, link-text and the namespace if known.
filename_and_frag_for_def πŸ”’
Get the filename and extension generated for a symbol by rustdoc.
get_assoc_item_fragment πŸ”’
Get the fragment required to link to a specific field, method, associated type, or associated constant.
get_doc_base_urls πŸ”’
Get the root URL for the documentation of a definition.
get_doc_links πŸ”’
map_links πŸ”’
Rewrites a markdown document, applying β€˜callback’ to each link.
mod_path_of_def πŸ”’
remove_links πŸ”’
Remove all links in markdown documentation.
resolve_doc_path_for_def πŸ”’
rewrite_intra_doc_link πŸ”’
rewrite_links πŸ”’
Rewrite documentation links in markdown to point to an online host (e.g. docs.rs)
rewrite_url_link πŸ”’
Try to resolve path to local documentation via path-based links (i.e. ../gateway/struct.Shard.html).
token_as_doc_comment πŸ”’