Introduce automated documentation linting
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- markdown
- Bereich
- documentation, tooling
Rechercherichtung
Es werden keine Repository-Dateien oder Tests genannt. Beginne damit, die verlinkten Referenzen zu Vale, GitLab technical-writing und den verwandten Issues (#642 und #519) zu lesen, und ordne anschließend die vorgeschlagenen Linting-Phasen diesem Dokumentationsprojekt zu. Für den Abschluss wären eine vereinbarte Menge an Checks, eine Entscheidung über Build-Fehler und importierte Inhalte sowie ein dokumentierter Implementierungsumfang erforderlich.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Goal 🏁
Improve consistency across the documentation for both readers and writers. Or at least highlight the inconsistencies.
This suggestion is prompted:
- by @lucyb's mention of the alex linter
- by my reading around "docs as code" tooling
Tooling 🔨
There are several linting tools out there. But, Vale allows you to apply different style rules or guides taken from various different linters. You can also write your own rules in YAML.
Vale aside: there are lots of other potential tools around. But Vale is mentioned a lot.
How do other people work? 👀
For example, GitLab's technical writers use:
- Text content and writing style: markdownlint, Vale
- Text formatting: Markdownlint, yamllint
- Link validity: nanoc
- File permissions and naming:
lint-doc.sh
I'm more interested in the stages, than the specific tools chosen by the GitLab team. We don't have any of these right now. I also opened #642 for link checking as I believe that's a self-contained problem.
Note that tools like markdownlint are actually focused on markup consistency, not content consistency. This might be another benefit. We — understandably — have a mixture of Markdown styles across our documentation due to different author contributions.
Considerations 💭
- Is this a good idea, in principle?
- Are the checks useful or distractingly noisy?
- Would this add friction for less regular contributors?
- Should failed linting cause an outright failure of a build, or just alert "content managers" to this to later fix up? If failing, what types of lint failures should fail a build?
- What checks do we want (relates to #519)?
- Are there issues of having consistency across imported content? We include content in the documentation from the source of cohort-extractor and Data Builder. This content may not be subject to the same checks.
- Vorherrschende Sprache
- Python
- Sterne
- 48
- Forks
- 10
- Ø Merge
- 1 T. 12 Std.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus opensafely/documentation
-
bug improve content
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
opensafely/documentation#2102 ·
Maintainer antworten meist innerhalb von 1 Tag
-
initiative:retire-actions-registry
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
opensafely/documentation#2035 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
opensafely/documentation#2017 · 9 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Unpin `click`Offen
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
opensafely/documentation#2006 ·
Maintainer antworten meist innerhalb von 1 Tag
-
job-ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
opensafely/documentation#2000 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in opensafely/documentation
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
raman325/lock_code_manager#1864 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
521xueweihan/HelloGitHub#4636 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
ida-arbeitszeit/workers-control#1607 ·
Maintainer antworten meist innerhalb von 1 Tag