Skip to content

docs(issues): add lychee issue specification (#2150) - #2154

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:2150-add-lychee-link-checker-spec
Sep 7, 2026
Merged

josecelano merged 1 commit into
torrust:developfrom
josecelano:2150-add-lychee-link-checker-spec

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

  • Add the reviewed folder-style specification for lychee local Markdown link checking.
  • Define deterministic offline local file and heading-fragment validation as the normal enforcement mode.
  • Plan two follow-up issues: shared torrust-linting integration, then tracker-side offline enforcement plus advisory weekly external-link monitoring.
  • Add lycheeignore to the project spell-check dictionary because the specification explicitly rejects a separate .lycheeignore file.

Files changed

  • docs/issues/open/2150-add-lychee-link-checker/ISSUE.md
  • project-words.txt

Validation

  • TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh
  • Pre-push checks: nightly format/check/docs and full stable test suite

Related to #2150

Copilot AI lite review requested due to automatic review settings September 7, 2026 10:47
@josecelano josecelano self-assigned this Sep 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new issue specification repeatedly documents include_fragments = "full", which does not match lychee’s actual boolean include_fragments setting and should be corrected to avoid misleading future implementation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds a new folder-style issue specification for adopting the lychee link checker (offline, deterministic local file + fragment validation) and updates the spell-check dictionary to include lycheeignore.

Changes:

  • Add issue spec #2150 describing scope, plan, verification, and follow-up issues for lychee adoption.
  • Add lycheeignore to project-words.txt to prevent cspell false-positives per the spec’s guidance.
File summaries
File Description
docs/issues/open/2150-add-lychee-link-checker/ISSUE.md Adds the issue specification describing offline lychee enforcement, reporting, and follow-ups.
project-words.txt Adds lycheeignore to the project dictionary.
Review details

Suppressed comments (5)

docs/issues/open/2150-add-lychee-link-checker/ISSUE.md:96

  • include_fragments should be documented as a boolean (true/false); "full" is not a valid lychee.toml value and may cause confusion when writing the actual config.
- Enable and document `include_fragments = "full"` in `lychee.toml`. This checks the target of
  local fragment links such as `[Verification](docs/testing.md#verification-plan)`, ensuring that
  a linked Markdown heading exists as well as its file.

docs/issues/open/2150-add-lychee-link-checker/ISSUE.md:113

  • The spec refers to include_fragments = "full" as the convention to request upstream; lychee uses a boolean for this setting, so the convention should be include_fragments = true.
- Open a GitHub issue in `torrust/torrust-linting` requesting lychee support, including: the
  proposed CLI subcommand (`linter lychee`, or `linter links`), the offline
  `include_fragments = "full"` `lychee.toml` convention this issue establishes, and a link back
  to this issue for context.

docs/issues/open/2150-add-lychee-link-checker/ISSUE.md:263

  • The risk section references include_fragments = "full", but lychee uses a boolean setting; update this to include_fragments = true to avoid encoding an invalid config value in the spec.
- **Fragment checking may add work**: `include_fragments = "full"` will flag anchors that
  markdownlint does not validate. Mitigation: it is intentional: heading-anchor correctness is
  part of the goal, and broken anchors should be fixed or explicitly excluded with rationale.

docs/issues/open/2150-add-lychee-link-checker/ISSUE.md:200

  • AC2 should describe the real lychee.toml settings; include_fragments is boolean, so the acceptance criteria should say include_fragments = true rather than "full".
- [ ] AC2: A `lychee.toml` config file exists at the repository root; every exclusion has an
      inline rationale comment and it enables `offline = true` and `include_fragments = "full"`.

docs/issues/open/2150-add-lychee-link-checker/ISSUE.md:230

  • The manual verification description should match the intended lychee.toml syntax; include_fragments is boolean, so use include_fragments = true.
The checked Markdown set (`INPUTS`) is: `README.md SECURITY.md 'docs/**/*.md' '**/AGENTS.md' 'packages/*/README.md' 'console/**/*.md' 'contrib/**/*.md' 'share/**/*.md' '.github/**/*.md'`. `lychee.toml` supplies `offline = true` and `include_fragments = "full"`.
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano
josecelano force-pushed the 2150-add-lychee-link-checker-spec branch from 54f570f to c24f9cf Compare September 7, 2026 11:15
@josecelano
josecelano force-pushed the 2150-add-lychee-link-checker-spec branch from c24f9cf to 568e04a Compare September 7, 2026 11:33
@josecelano

Copy link
Copy Markdown
Member Author

ACK 568e04a

@josecelano
josecelano merged commit 0e7fa6d into torrust:develop Sep 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants