Skip to content

v0.9.1

Latest

Choose a tag to compare

@PerfectPan PerfectPan released this 18 Nov 03:44
· 1 commit to main since this release
b007df9

What changed

@perfectpan/lint-config/doc-translations now handles documentation-site pages (#14):

  • A code block's language and body must still match, but the rest of the info string, such as a title="…" caption, may be translated. The mismatch message says language where it said info string.
  • YAML frontmatter that opens a document is not compared on either side, and a translation's header is the first line after it.
  • With stamp: true, a translation that has frontmatter keeps the stamp there as a source-blob: <hash> key, which --write adds before the closing --- or replaces; a key written by hand in another form (quoted, other spacing, a malformed or multi-line value, a repeat) is reported and replaced, never kept beside a second key. Before, --write put the <!-- source-blob: … --> comment above the frontmatter of a page without a header, and MDX does not compile HTML comments. A site whose page schema rejects unknown keys declares source-blob; fumadocs' default schema strips it.

Translations without frontmatter are checked and recorded exactly as before.

What newly fails

Nothing: both changes accept more. Read-only runs: PerfectPan/estela 0 findings before and after (15 pairs); PerfectPan/rivus-agent the same 6 findings as v0.9.0; PerfectPan/agent-kit, not yet a consumer, goes from 5 findings (translated code titles) to 1 (a translated comment inside a code block, which the check was hiding behind the title report).

Upgrade

Change github:PerfectPan/lint-config#v0.9.0 to #v0.9.1 and reinstall.