Check the docs on every pull request: links, Markdown, SUMMARY.md and wording

Ouverte
#185 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
github-actions, markdown, yaml
Domaine
ci-cd, documentation

Piste de recherche

Start by reading .github/workflows/update-website.yml to see how the existing workflow is wired, then AGENTS.md for the doc conventions the markdownlint and Vale configs must follow. Run lychee, markdownlint-cli2 and Vale locally over the pages to record the baseline, and read SUMMARY.md next to the files under v3.0 to see what the consistency script must compare. Done means a PR-triggered workflow on staging and master that passes green on the current pages, with local run instructions added to AGENTS.md.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

enhancement

Summary

Add a GitHub Actions workflow that checks the docs on every pull request into staging and master. Today the only workflow, update-website.yml, runs after a push to master; nothing checks a PR, so broken links, wrong heading levels or a page missing from SUMMARY.md are only found by reading.

Checks

  1. Links and anchors with lychee, offline for internal links: a link to a missing page or to a #heading that does not exist fails the PR. Blocking.
  2. Markdown structure with markdownlint-cli2 and a repo config that follows AGENTS.md: heading levels in order, code blocks with a language hint, consistent lists. Noisy rules such as line length stay off. Blocking.
  3. SUMMARY.md matches the pages, with a small script in the repo: every page SUMMARY.md links exists, and every page under v3.0 is listed. Blocking.
  4. Wording with Vale and a small style of our own instead of a ready-made style guide: the product and tool names (Quantum, PHPUnit, qt), no history narration outside the upgrade guide, filler words, and spelling with a vocabulary of the framework's names. It checks only the lines a PR adds and reports warnings on the PR; rules move to blocking once they give no false hits.

External links (GitHub, Packagist and other sites) are not checked on every PR, because slow sites would fail PRs at random; a weekly run or a non-blocking check can follow.

Steps

  1. Run the tools once locally on the current pages and record the findings (the baseline).
  2. Fix the findings of checks 1 to 3, or tune the config where a rule does not fit the docs, so the workflow starts green.
  3. Add the workflow, the configs, the SUMMARY.md script and the Vale style, and describe in AGENTS.md how to run the checks locally.

Out of scope

  • Checking statements and example names against the framework code: that stays a review task.
Langage dominant
Aucune donnée de langage
Étoiles
3
Forks
1
Merge moyen
2 min
PR mergées (30 j)
27

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de quantum-php/docs

Toutes les issues de quantum-php/docs

Issues similaires

Plus d'issues DevOps

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.