#36485: Add linting tool for documentation
-------------------------------------+-------------------------------------
Reporter: David | Owner: David Smith
Smith |
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: 5.2
Documentation |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
As Natalia wrote on this [
https://forum.djangoproject.com/t/automatic-
docs-linter-for-style-consistency/41383 forum post]
> Currently, style guidelines for docs are well documented, but checking
them is still a manual part of the review process. That often results in
extra back-and-forth over small formatting details, which can slow things
down. Automating this would help ease that overhead, making reviews more
efficient for both contributors and maintainers.
The documentation can be linted with [
https://github.com/sphinx-contrib
/sphinx-lint?rgh-link-date=2025-06-09T22%3A42%3A19Z sphinx-lint] with some
modifications such that it works with Django's documentation. Main edits
are for Django's `.txt` extension (vs default `.rst`) and some additional
exceptions for the line length check.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36485>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.