10 Commits

Author SHA1 Message Date
Wael Nasreddine
fb4d63b049 Add --config, --help, and --version flags to edit-docs
- Implement --config (-c) flag to allow custom configuration file paths.
- Add --help (-h) flag to display tool usage and available options.
- Add --version (-v) flag to display the current Trilium version.
- Update electron-start.mts to correctly pass command-line arguments to Electron.
- Synchronize edit-docs version with the root package.json via update-version.ts.
- Resolve config paths relative to the configuration file's directory.

This makes edit-docs more robust and easier to use from external projects
and immutable environments like Nix.
2026-01-12 22:08:27 -08:00
Wael Nasreddine
015e41e792 fix(edit-docs): Minify meta for format==share 2026-01-12 22:08:27 -08:00
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
Elian Doran
5171675dee
chore(build-docs): fix URL 2025-11-02 20:13:10 +02:00
Elian Doran
beb7c66ff5
feat(build-docs): rewrite URLs for in-app help 2025-11-02 19:45:16 +02:00
Elian Doran
06de06b501
refactor(export/share): share type for format 2025-06-24 19:21:09 +03:00
Elian Doran
9bc966491d
fix(edit-docs): import error 2025-06-23 21:22:45 +03:00
Elian Doran
ad0c73d210
feat(edit-docs): read from input directory instead of the zip 2025-05-27 19:24:04 +03:00
Elian Doran
7cb4cc8469
fix(edit-demo): get it to actually start 2025-05-27 19:24:04 +03:00
Elian Doran
6021d33317
chore(edit-docs): split into two entrypoints 2025-05-27 14:03:54 +03:00