Expand description
A mdbook
backend which will check all links in a document are valid.
The link-checking process has roughly three stages:
- Find all the links in a body of markdown text (see
extract_links
) - Validate all the links we’ve found, taking into account cached results and configuration options
- Cache the results in the output directory for reuse by step 2 in the next round
- Emit errors/warnings to the user
Structs§
- Config
- The configuration options available with this backend.
- Context
- The
linkcheck::validation::Context
. - Hashed
Regex - A wrapper around
regex::Regex
which implements string repr basedSerialize
,Deserialize
,PartialEq
,Eq
,Hash
. - Incomplete
Link - A potential link that has a broken reference (e.g
[foo]
when there is no[foo]: ...
entry at the bottom). - NotIn
Summary - An error that is emitted if something links to a file that exists on disk, but isn’t included in the book.
- Validation
Outcome - The outcome of validating a set of links.
Enums§
- Warning
Policy - How should warnings be treated?
Constants§
- COMPATIBLE_
MDBOOK_ VERSIONS - A semver range specifying which versions of
mdbook
this crate supports.
Functions§
- extract_
links - Search every file in the
Files
and collate all the links that are found. - get_
config - Get the configuration used by
mdbook-linkcheck
. - load_
files_ into_ memory - A helper for reading the chapters of a
Book
into memory, filtering out files using the givenfilter
. - run
- Run the link checking pipeline.
- validate
- Try to validate the provided
Link
s. - version_
check - Check whether this library is compatible with the provided version string.