mirror of
https://github.com/zadam/trilium.git
synced 2026-01-18 04:24:23 +01:00
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.
25 lines
560 B
YAML
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"
|