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.
22 lines
1.0 KiB
JSON
22 lines
1.0 KiB
JSON
{
|
|
"name": "@triliumnext/edit-docs",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "Desktop version of Trilium which imports the demo database (presented to new users at start-up) or the user guide and other documentation and saves the modifications for committing.",
|
|
"dependencies": {
|
|
"archiver": "7.0.1",
|
|
"better-sqlite3": "12.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@triliumnext/client": "workspace:*",
|
|
"@triliumnext/desktop": "workspace:*",
|
|
"@types/fs-extra": "11.0.4",
|
|
"copy-webpack-plugin": "13.0.1",
|
|
"electron": "39.2.7",
|
|
"fs-extra": "11.3.3"
|
|
},
|
|
"scripts": {
|
|
"edit-docs": "cross-env TRILIUM_PORT=37741 TRILIUM_DATA_DIR=data TRILIUM_INTEGRATION_TEST=memory-no-store tsx ../../scripts/electron-start.mts src/edit-docs.ts",
|
|
"edit-demo": "cross-env TRILIUM_PORT=37744 TRILIUM_DATA_DIR=data TRILIUM_INTEGRATION_TEST=memory-no-store DOCS_ROOT=../../../docs USER_GUIDE_ROOT=\"../../server/src/assets/doc_notes/en/User Guide\" tsx ../../scripts/electron-start.mts src/edit-demo.ts"
|
|
}
|
|
} |