Files
up/.gitattributes
FenjuFu bdfad00687 Make content checks portable to Windows (#202)
On Windows, path.resolve/join return backslash-separated paths, so the
`${DOCS}/` prefix filters never match:

- check-content.mjs silently skips frontmatter, bilingual parity,
  heading parity, updated parity and stale-string checks, and still
  reports success;
- sync-navigation.mjs rejects every navigation source as missing.

Use path.sep for filesystem prefixes and posix joins for navigation
source ids. Also pin text files to LF so generated SUMMARY/README
mirrors compare cleanly on Windows checkouts with core.autocrlf=true.
The index is already LF, so no files are renormalised.

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
2026-10-03 22:31:03 +08:00

5 lines
59 B
Plaintext

* text=auto eol=lf
*.epub binary
*.pdf binary
*.ttf binary