e0a5f57793
Vendor the rebranded BoosAPI Desktop client (Tauri + Vue) into metapi as a monorepo subdirectory under desktop/. Source only — node_modules, dist, Cargo target and the upstream .git history are excluded. desktop/ keeps its own independent Cargo workspace (desktop/src-tauri with crates/*); it is not part of the backend boosapi crate, so a `cargo check` at the metapi root still compiles only the backend. Build the desktop app from desktop/src-tauri per desktop/README.md. Note: app icons are still placeholder assets pending the final BoosAPI logo. The updater signing keys live outside the repo and are not included.
38 lines
935 B
JavaScript
38 lines
935 B
JavaScript
import fs from 'node:fs/promises'
|
|
import path from 'node:path'
|
|
import process from 'node:process'
|
|
|
|
const root = process.cwd()
|
|
const enDir = path.join(root, 'docs', 'guide')
|
|
const zhDir = path.join(root, 'docs', 'zh', 'guide')
|
|
|
|
async function main() {
|
|
const files = await fs.readdir(enDir)
|
|
const mdFiles = files.filter(f => f.endsWith('.md'))
|
|
const missing = []
|
|
for (const f of mdFiles) {
|
|
const zhPath = path.join(zhDir, f)
|
|
try {
|
|
await fs.access(zhPath)
|
|
}
|
|
catch {
|
|
missing.push(f)
|
|
}
|
|
}
|
|
|
|
if (missing.length) {
|
|
console.error('Missing zh translations for the following docs:')
|
|
missing.forEach(m => console.error(' -', m))
|
|
console.error('\nHint: run `pnpm docs:sync-zh` to create placeholders.')
|
|
process.exit(1)
|
|
}
|
|
else {
|
|
console.log('All docs/guide pages have a corresponding docs/zh/guide placeholder.')
|
|
}
|
|
}
|
|
|
|
main().catch((e) => {
|
|
console.error(e)
|
|
process.exit(1)
|
|
})
|