attempt to use separate folder for docs and meetings

This commit is contained in:
Mariano Gabriel
2026-07-06 01:18:17 -03:00
parent bb84558526
commit 31ad8e5928
10 changed files with 261 additions and 62 deletions

View File

@@ -10,16 +10,23 @@ const outputDirs = (outputEnv
? outputEnv.split(',').map((s) => s.trim()).filter(Boolean)
: [fileURLToPath(new URL('../../docs-output', import.meta.url))])
// Managed collections root (gitignored): UI-scanned sources land here, one
// subfolder per source, discovered automatically. Override with DOOCUS_DATA.
const outputsRoot = process.env.DOOCUS_DATA
?? fileURLToPath(new URL('../../doocus-data', import.meta.url))
// Managed collection roots (gitignored), discovered automatically:
// doocus-data/<source>/ → document collections (UI "Scan" writes here)
// meetus-data/<source>/ → meeting collections (from the meetus batch)
// Collections that share the same index.json `root` are the same source and are
// grouped together in the UI. Override with DOOCUS_DATA (comma-separated).
const outputsRoots = process.env.DOOCUS_DATA
? process.env.DOOCUS_DATA.split(',').map((s) => s.trim()).filter(Boolean)
: [
fileURLToPath(new URL('../../doocus-data', import.meta.url)),
fileURLToPath(new URL('../../meetus-data', import.meta.url)),
]
// Repo root — where process_tree.py lives (run via `uv run` for the scan).
const repoRoot = fileURLToPath(new URL('../../', import.meta.url))
export default defineConfig({
plugins: [vue(), doocusApi({ outputDirs, outputsRoot, repoRoot })],
plugins: [vue(), doocusApi({ outputDirs, outputsRoots, repoRoot })],
resolve: {
alias: {
'@framework': fileURLToPath(new URL('../framework/src', import.meta.url)),
@@ -36,6 +43,7 @@ export default defineConfig({
fileURLToPath(new URL('../framework', import.meta.url)),
fileURLToPath(new URL('../meetus-app', import.meta.url)),
...outputDirs,
...outputsRoots,
],
},
},