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Β§
- DocComment
Token π - Documentation
Links - 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