Introduce automated documentation linting

Offen
#643 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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

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

enhancement

Goal 🏁

Improve consistency across the documentation for both readers and writers. Or at least highlight the inconsistencies.

This suggestion is prompted:

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

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus opensafely/documentation

Alle Issues in opensafely/documentation

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.