Skip to content

fix(ci): regenerate the tracked vimdoc in docs-check - #17

Merged
lettertwo merged 2 commits into
mainfrom
fix/docs-check-ci
Sep 3, 2026
Merged

lettertwo merged 2 commits into
mainfrom
fix/docs-check-ci

Conversation

@lettertwo

@lettertwo lettertwo commented Sep 3, 2026 •

Copy link
Copy Markdown
Owner

Background

The docs-check composite action passed vimdoc: occurrence.nvim to panvimdoc, which maps to --project-name, so it wrote an untracked doc/occurrence.nvim.txt. The tracked file is doc/occurrence.txt (the Makefile uses --project-name occurrence). The action then runs git diff doc/, which only sees tracked files, so the untracked wrong-named output was invisible and the check always reported "no changes."

The result: the docs gate was a silent no-op. A README change without a regenerated vimdoc never failed CI, and the auto-update workflow never fired. The version string also mismatched (NVIM >= v0.10.0 vs the Makefile's NVIM >= 0.10.0).

Fix

Align the action with the Makefile: vimdoc: occurrence and version: NVIM >= 0.10.0. The action's remaining flags (toc, dedupsubheadings, treesitter, ignorerawblocks, demojify, docmapping, docmappingprojectname, the heading-shift options, and the date pattern) already equal panvimdoc.sh's defaults, which is what make doc relies on, so CI now regenerates the same doc/occurrence.txt that contributors produce locally. Also corrects the stale doc/occurrence.nvim.txt reference in the docs-update PR body.

Testing

make doc on this branch produces no change to doc/, confirming the tracked vimdoc is already current with the local generator, so the corrected check will pass on a clean tree rather than flag a false diff. The generation flags were compared line by line against vendor/panvimdoc/panvimdoc.sh defaults and match.

The docs-check action passed `vimdoc: occurrence.nvim`, so panvimdoc
wrote an untracked `doc/occurrence.nvim.txt` while the tracked file is
`doc/occurrence.txt` (the Makefile's `--project-name occurrence`). The
`git diff doc/` check only sees tracked files, so it never noticed the
untracked output and always reported "no changes" — the gate was a
silent no-op and README drift never failed CI.

Align the action with the Makefile: `vimdoc: occurrence` and
`version: NVIM >= 0.10.0` (was `v0.10.0`). The action's other flags
already match panvimdoc.sh's defaults, so CI now regenerates the same
`doc/occurrence.txt` that `make doc` produces. Also fix the stale
`doc/occurrence.nvim.txt` path in the docs-update PR body.
Now that the docs-check action regenerates the tracked doc/occurrence.txt,
it reports a diff on every PR: the tracked file was generated with a
vendored panvimdoc from August 2025, while CI runs panvimdoc@main, which
has since changed the title-line format (kdheepak/panvimdoc#72) and how
code fences inside list items are rendered (kdheepak/panvimdoc#74).

Regenerate with the vendored clone moved to upstream main. The result
matches CI's output line for line, so the check passes. No README
content changed.
@lettertwo
lettertwo merged commit f556c43 into main Sep 3, 2026
6 checks passed
@lettertwo
lettertwo deleted the fix/docs-check-ci branch September 3, 2026 22:58
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.

1 participant