mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
docs: use stricter validation options (#6096)
## Summary `mkdocs` supports [validation rules for links](https://www.mkdocs.org/user-guide/configuration/#validation), which can be tightened to report more issues than the default configuration. I used the recommended "maximal strictness" configuration from the documentation. Adding the `anchors` rule helped spot 4 errors: ```console WARNING - Doc file 'guides/install-python.md' contains a link '../concepts/python-versions.md#python-distributions', but the doc 'concepts/python-versions.md' does not contain an anchor '#python-distributions'. WARNING - Doc file 'guides/install-python.md' contains a link '../concepts/python-versions.md#discovery-order', but the doc 'concepts/python-versions.md' does not contain an anchor '#discovery-order'. WARNING - Doc file 'guides/projects.md' contains a link '../concepts/projects.md#lock-file', but the doc 'concepts/projects.md' does not contain an anchor '#lock-file'. WARNING - Doc file 'pip/environments.md' contains a link '../concepts/python-versions.md#discovery-order', but the doc 'concepts/python-versions.md' does not contain an anchor '#discovery-order'. ``` ## Test Plan Local run of the documentation + `mkdocs build --strict`.
This commit is contained in:
parent
7b67b5a328
commit
85be33d719
4 changed files with 12 additions and 6 deletions
|
@ -111,5 +111,5 @@ If the `--system` flag is included, uv will skip virtual environments search for
|
|||
version. Similarly, when running a command that does not mutate the environment such as
|
||||
`uv pip compile`, uv does not _require_ a virtual environment — however, a Python interpreter is
|
||||
still required. See the documentation on
|
||||
[Python discovery](../concepts/python-versions.md#discovery-order) for details on the discovery of
|
||||
installed Python versions.
|
||||
[Python discovery](../concepts/python-versions.md#discovery-of-python-versions) for details on the
|
||||
discovery of installed Python versions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue