Docs: rename SETUP, INSTALL, CHANGES and GITEA-DESIGN to Chinese filenames

This commit is contained in:
2026-11-03 22:24:19 +08:00
parent 32347886f6
commit e96f84fe00
11 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { describe, expect, it } from 'vitest'
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..')
const NUMBERED = /^(\d{3})-[\p{L}0-9-]+\.md$/u
const numbered = readdirSync(join(ROOT, 'docs')).filter(name => NUMBERED.test(name)).sort()
const entries = ['README.md', 'SETUP.md']
const entries = ['README.md', '设置.md']
const documents = [...entries, ...readdirSync(join(ROOT, 'docs')).filter(name => name.endsWith('.md')).map(name => `docs/${name}`)]
const read = (path: string): string => readFileSync(join(ROOT, path), 'utf8')
function links(file: string): string[] {