trilium/edit-docs-config.yaml
Wael Nasreddine 8e47f33329 Refactor edit-docs to use edit-docs-config.yaml
This removes hardcoded configuration from edit-docs.ts and replaces
it with dynamic loading from edit-docs-config.yaml.

Changes:
- Removed BASE_URL and NOTE_MAPPINGS constants
- Removed DOCS_ROOT and USER_GUIDE_ROOT environment variable dependencies
- Added js-yaml for YAML parsing
- Config paths are resolved relative to repository root

The tool now reads configuration from edit-docs-config.yaml, making it
easier to customize without code changes. The pnpm script is simplified
since it no longer needs to pass complex environment variables.
2026-01-12 22:08:27 -08:00

25 lines
560 B
YAML

baseUrl: "https://docs.triliumnotes.org"
noteMappings:
- rootNoteId: "pOsGYCXsbNQG"
path: "docs/User Guide"
format: "markdown"
- rootNoteId: "pOsGYCXsbNQG"
path: "apps/server/src/assets/doc_notes/en/User Guide"
format: "html"
ignoredFiles:
- "index.html"
- "navigation.html"
- "style.css"
- "User Guide.html"
exportOnly: true
- rootNoteId: "jdjRLhLV3TtI"
path: "docs/Developer Guide"
format: "markdown"
- rootNoteId: "hD3V4hiu2VW4"
path: "docs/Release Notes"
format: "markdown"