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
Wael Nasreddine
5b37140ffa
Fix race condition in edit-docs Electron ready event
...
The edit-docs tool would hang on startup when the Electron 'ready' event
fired before the event listener was registered. This race condition occurred
because:
1. startElectron() creates a deferred promise and registers a 'ready' listener
2. The 'ready' event fires asynchronously at some point during app initialization
3. If async work (like config loading) delays the listener registration,
Electron may already be ready when app.on('ready', ...) is called
4. Once fired, the 'ready' event doesn't fire again, leaving the listener
waiting forever
The fix checks electron.app.isReady() before registering the listener:
- If already ready: execute the handler immediately
- If not ready: register the listener as before
This ensures the initialization sequence completes regardless of timing.
The issue became apparent while working on making edit-docs reusable from
other projects (see #8343 ), where config loading added enough async delay
to consistently trigger the race condition.
Related: https://github.com/TriliumNext/Trilium/issues/8343
2026-01-12 22:08:27 -08:00
Elian Doran
abda0f9111
chore(deps): update dependency happy-dom to v20.1.0 ( #8307 )
2026-01-13 07:35:35 +02:00
Elian Doran
c2a9d21198
fix(deps): update dependency i18next to v25.7.4 ( #8305 )
2026-01-13 07:34:54 +02:00
renovate[bot]
028334407c
fix(deps): update dependency diff to v8.0.3
2026-01-13 01:15:54 +00:00
Elian Doran
7c2340d60e
Apply suggestion from @gemini-code-assist[bot]
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-12 07:55:25 +02:00
Elian Doran
24013ef020
Apply suggestion from @gemini-code-assist[bot]
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-12 07:55:16 +02:00
renovate[bot]
72d9e846b7
fix(deps): update dependency i18next to v25.7.4
Checks / main (push) Has been cancelled
2026-01-12 05:55:15 +00:00
Francis C.
060257fa06
Translated using Weblate (Chinese (Traditional Han script))
...
Currently translated at 100.0% (1759 of 1759 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/zh_Hant/
2026-01-12 06:51:44 +01:00
Yatrik Patel
1c6bb0a20e
Translated using Weblate (Hindi)
...
Currently translated at 6.9% (27 of 388 strings)
Translation: Trilium Notes/Server
Translate-URL: https://hosted.weblate.org/projects/trilium/server/hi/
2026-01-12 06:51:43 +01:00
Hosted Weblate
1479109582
Update translation files
...
Updated by "Cleanup translation files" add-on in Weblate.
Translation: Trilium Notes/Server
Translate-URL: https://hosted.weblate.org/projects/trilium/server/
2026-01-12 06:51:42 +01:00
Yatrik Patel
13f4e38f48
Translated using Weblate (Hindi)
...
Currently translated at 6.6% (26 of 389 strings)
Translation: Trilium Notes/Server
Translate-URL: https://hosted.weblate.org/projects/trilium/server/hi/
2026-01-12 06:51:41 +01:00
Yatrik Patel
5cbde8d32a
Translated using Weblate (Hindi)
...
Currently translated at 1.1% (20 of 1759 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/hi/
2026-01-12 06:51:40 +01:00
Yatrik Patel
f3e3ef2f7d
Translated using Weblate (Hindi)
...
Currently translated at 37.5% (57 of 152 strings)
Translation: Trilium Notes/Website
Translate-URL: https://hosted.weblate.org/projects/trilium/website/hi/
2026-01-12 06:51:39 +01:00
green
768213438a
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (1759 of 1759 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/ja/
2026-01-12 06:51:38 +01:00
Kim Nøglegaard
00e0eb6f8a
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 2.8% (11 of 389 strings)
Translation: Trilium Notes/Server
Translate-URL: https://hosted.weblate.org/projects/trilium/server/nb_NO/
2026-01-12 06:51:37 +01:00
Kim Nøglegaard
3abea13d79
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 1.8% (33 of 1759 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/nb_NO/
2026-01-12 06:51:36 +01:00
noobhjy
67ab7f0c1e
Translated using Weblate (Chinese (Simplified Han script))
...
Currently translated at 99.8% (1757 of 1759 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/zh_Hans/
2026-01-12 06:51:35 +01:00
Kim Nøglegaard
b38e8e27b2
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 2.5% (10 of 389 strings)
Translation: Trilium Notes/Server
Translate-URL: https://hosted.weblate.org/projects/trilium/server/nb_NO/
2026-01-12 06:51:34 +01:00
Kim Nøglegaard
a70c103b93
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 1.4% (26 of 1759 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/nb_NO/
2026-01-12 06:51:34 +01:00
Yatrik Patel
b83c3090f7
Translated using Weblate (Hindi)
...
Currently translated at 1.0% (19 of 1759 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/hi/
2026-01-12 06:51:33 +01:00
Bart Louwers
59ee38e7a6
Translated using Weblate (Dutch)
...
Currently translated at 23.0% (35 of 152 strings)
Translation: Trilium Notes/Website
Translate-URL: https://hosted.weblate.org/projects/trilium/website/nl/
2026-01-12 06:51:32 +01:00
Bart Louwers
890fe5929b
Translated using Weblate (Dutch)
...
Currently translated at 4.2% (75 of 1751 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/nl/
2026-01-12 06:51:31 +01:00
nvno
56cc312565
Translated using Weblate (Portuguese)
...
Currently translated at 91.5% (1603 of 1751 strings)
Translation: Trilium Notes/Client
Translate-URL: https://hosted.weblate.org/projects/trilium/client/pt/
2026-01-12 06:51:30 +01:00
Elian Doran
9dfd015a27
fix(deps): update dependency preact to v10.28.2 [security] ( #8301 )
2026-01-12 07:51:22 +02:00
Elian Doran
04618dcdab
fix(deps): update dependency react-window to v2.2.5 ( #8353 )
2026-01-12 07:50:09 +02:00
renovate[bot]
00e60c147c
fix(deps): update dependency react-window to v2.2.5
2026-01-12 00:58:16 +00:00
renovate[bot]
ad6fd64226
chore(deps): update dependency typedoc to v0.28.16
2026-01-12 00:57:28 +00:00
renovate[bot]
6595fd9c10
chore(deps): update dependency happy-dom to v20.1.0
Checks / main (push) Has been cancelled
2026-01-11 14:43:06 +00:00
renovate[bot]
9e847f67f2
chore(deps): update dependency ws to v8.19.0
2026-01-11 14:27:35 +00:00
renovate[bot]
df4992122b
fix(deps): update dependency preact to v10.28.2 [security]
Checks / main (push) Has been cancelled
2026-01-11 14:26:08 +00:00
Elian Doran
26e64ae7d0
Lightweight: Bootstrap index EJS ( #8283 )
2026-01-11 15:45:25 +02:00
Elian Doran
c5f2b5c177
fix(deps): update dependency react-window to v2.2.4 ( #8275 )
2026-01-11 15:31:53 +02:00
Elian Doran
b2f782f2a3
fix(deps): update dependency node-html-parser to v7.0.2 ( #8306 )
2026-01-11 15:31:24 +02:00
Elian Doran
b65b31ca4d
chore(deps): update dependency vite to v7.3.1 ( #8304 )
2026-01-11 15:29:23 +02:00
Elian Doran
64827dcdcf
fix(deps): update dependency mind-elixir to v5.5.0 ( #8278 )
2026-01-11 15:28:42 +02:00
Elian Doran
96d5d07087
chore(deps): update dependency @redocly/cli to v2.14.4 ( #8316 )
2026-01-11 15:27:44 +02:00
Elian Doran
e33cd86d30
chore(deps): update dependency supertest to v7.2.2 ( #8291 )
2026-01-11 15:25:53 +02:00
Elian Doran
a55c8fb210
chore(deps): update dependency sax to v1.4.4 ( #8317 )
2026-01-11 15:24:44 +02:00
Elian Doran
19b865a5b4
chore(deps): update dependency express-openid-connect to v2.19.4 ( #8327 )
2026-01-11 15:24:10 +02:00
Elian Doran
49704ea928
chore(deps): update dependency openai to v6.16.0 ( #8328 )
2026-01-11 14:13:32 +02:00
renovate[bot]
f42010e22a
fix(deps): update dependency mind-elixir to v5.5.0
2026-01-11 10:28:35 +00:00
renovate[bot]
0b85e0fe2d
fix(deps): update dependency better-sqlite3 to v12.6.0
2026-01-11 10:27:40 +00:00
renovate[bot]
cc3031eaad
chore(deps): update dependency supertest to v7.2.2
2026-01-11 10:25:13 +00:00
renovate[bot]
2850c7808c
chore(deps): update dependency openai to v6.16.0
2026-01-11 10:24:24 +00:00
renovate[bot]
30bbcd866f
fix(deps): update dependency react-window to v2.2.4
2026-01-11 10:22:53 +00:00
renovate[bot]
55b6f322ac
fix(deps): update dependency node-html-parser to v7.0.2
2026-01-11 10:21:22 +00:00
Elian Doran
4518c9bb99
Merge remote-tracking branch 'origin/main' into lightweight/bootstrap_ejs
2026-01-11 12:20:17 +02:00