Skip to content

Build your personal knowledge base with Trilium Notes

docs(dev): mention NixOS for web clipper dev

Elian Doran5d7355612799
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.html
index 77eb7dea73..5aa0d98b96 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.html
@@ -69,38 +69,23 @@
for testing purposes. These are not available in the Google or Firefox
web stores, but can be downloaded from either:</p>
<ul>
- <li>
- <p><a href="https://github.com/TriliumNext/Trilium/releases">GitHub Releases</a> by
- looking for releases starting with <em>Web Clipper.</em>
- </p>
- </li>
- <li>
- <p>Artifacts in GitHub Actions, by looking for the <a href="https://github.com/TriliumNext/Trilium/actions/workflows/web-clipper.yml"><em>Deploy web clipper extension </em>workflow</a>.
- Once a workflow run is selected, the ZIP files are available in the <em>Artifacts</em> section,
- under the name <code spellcheck="false">web-clipper-extension</code>.</p>
+ <li><a href="https://github.com/TriliumNext/Trilium/releases">GitHub Releases</a> by
+ looking for releases starting with <em>Web Clipper.</em>
</li>
+ <li>Artifacts in GitHub Actions, by looking for the <a href="https://github.com/TriliumNext/Trilium/actions/workflows/web-clipper.yml"><em>Deploy web clipper extension </em>workflow</a>.
+ Once a workflow run is selected, the ZIP files are available in the <em>Artifacts</em> section,
+ under the name <code spellcheck="false">web-clipper-extension</code>.</li>
</ul>
<h3>For Chrome</h3>
<ol>
- <li>
- <p>Download <code spellcheck="false">trilium-web-clipper-[x.y.z]-chrome.zip</code>.</p>
- </li>
- <li>
- <p>Extract the archive.</p>
- </li>
- <li>
- <p>In Chrome, navigate to <code spellcheck="false">chrome://extensions/</code>
- </p>
- </li>
- <li>
- <p>Toggle <em>Developer Mode</em> in top-right of the page.</p>
- </li>
- <li>
- <p>Press the <em>Load unpacked</em> button near the header.</p>
- </li>
- <li>
- <p>Point to the extracted directory from step (2).</p>
- </li>
+ <li>Download <code spellcheck="false">trilium-web-clipper-[x.y.z]-chrome.zip</code>.</li>
+ <li
+ >Extract the archive.</li>
+ <li>In Chrome, navigate to <code spellcheck="false">chrome://extensions/</code>
+ </li>
+ <li>Toggle <em>Developer Mode</em> in top-right of the page.</li>
+ <li>Press the <em>Load unpacked</em> button near the header.</li>
+ <li>Point to the extracted directory from step (2).</li>
</ol>
<h3>For Firefox</h3>
<aside class="admonition warning">
@@ -112,25 +97,15 @@
spellcheck="false">xpinstall.signatures.required</code>to <code spellcheck="false">false</code>.</p>
</aside>
<ol>
- <li>
- <p>Navigate to <code spellcheck="false">about:addons</code>.</p>
- </li>
- <li>
- <p>Select <em>Extensions</em> in the left-side navigation.</p>
- </li>
- <li>
- <p>Press the <em>Gear</em> icon on the right of the <em>Manage Your Extensions</em> title.</p>
- </li>
- <li>
- <p>Select <em>Install Add-on From File…</em>
- </p>
- </li>
- <li>
- <p>Point it to <code spellcheck="false">trilium-web-clipper-[x.y.z]-firefox.zip</code>.</p>
- </li>
- <li>
- <p>Press the <em>Add</em> button to confirm.</p>
- </li>
+ <li>Navigate to <code spellcheck="false">about:addons</code>.</li>
+ <li>Select <em>Extensions</em> in the left-side navigation.</li>
+ <li>Press the <em>Gear</em> icon on the right of the <em>Manage Your Extensions</em> title.</li>
+ <li
+ >Select <em>Install Add-on From File…</em>
+ </li>
+ <li>Point it to <code spellcheck="false">trilium-web-clipper-[x.y.z]-firefox.zip</code>.</li>
+ <li
+ >Press the <em>Add</em> button to confirm.</li>
</ol>
<h2>Credits</h2>
<p>Some parts of the code are based on the <a href="https://github.com/laurent22/joplin/tree/master/Clipper">Joplin Notes browser extension</a>.</p>
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Concepts/Web Clipper.md b/docs/Developer Guide/Developer Guide/Concepts/Web Clipper.md
index b36bfd1303..dc504658ea 100644
--- a/docs/Developer Guide/Developer Guide/Concepts/Web Clipper.md
+++ b/docs/Developer Guide/Developer Guide/Concepts/Web Clipper.md
@@ -7,7 +7,7 @@ Originally the Web Clipper supported only Manifest v2, which made the extension
Although Firefox does support Manifest v3, we are still using Manifest v2 for it because WXT dev mode doesn't work for the Firefox / Manifest v3 combination and there were some mentions about Manifest v3 not being well supported on Firefox Mobile (and we plan to have support for it).
-## Dev mode
+## Development
WXT allows easy development of the plugin, with full TypeScript support and live reload. To enter dev mode:
@@ -16,7 +16,14 @@ WXT allows easy development of the plugin, with full TypeScript support and live
This will open a separate browser instance in which the extension is automatically injected.
-## Port
+> [!NOTE]
+> On NixOS, the same development commands work just fine. Just make sure the browser is available in the system path:
+>
+> ```sh
+> nix-shell -p chromium
+> ```
+
+## Default port
The default port is: