Editor blocks: - Math with KaTeX, inline ($...$) and as blocks ($$...$$). Clicking a formula opens its LaTeX source. - Mermaid diagrams. The text is stored and each client draws it, with a live preview while editing. Mermaid uses strict security. - Draw.io and Excalidraw drawings, stored as SVG attachments that carry the editable scene. Draw.io opens diagrams.net in a frame (address set by DOCWELL_DRAWIO_URL). Excalidraw loads React only when opened. - A table of contents block that follows the page's headings. - "[[" page links, and following a page link inside the app (Ctrl/Cmd click while editing). Mermaid and Excalidraw are handed in by the host, so the single-file mobile bridge leaves them out. There diagrams show as their text and drawings as pictures. Pages now record which pages they link to, kept current on every save and backfilled at startup. A page lists the pages linking to it that the reader can open. Any editor can mark a page as a template, and an empty page offers the workspace's templates. Applying one copies its content as a history version, and an untitled page also takes the template's title. Markdown and HTML export keep Mermaid, math, drawings and mentions, and Markdown import turns mermaid fences back into diagrams. Attachments named .svg are typed image/svg+xml and served inline under the existing sandbox CSP, so drawings display. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Which released images to run (docker compose pull). Ignored with --build.
|
|
DOCWELL_REGISTRY=ghcr.io/docwell
|
|
DOCWELL_VERSION=latest
|
|
|
|
# PocketBase superuser, used by docwell-db and docwell-server. Change these.
|
|
PB_ADMIN_EMAIL=admin@docwell.test
|
|
PB_ADMIN_PASSWORD=change-me-please
|
|
|
|
# Public addresses of the services.
|
|
DOCWELL_PUBLIC_URL=http://localhost:8080
|
|
DOCWELL_WEB_URL=http://localhost:3000
|
|
DOCWELL_COLLAB_URL=ws://localhost:8080/collab
|
|
|
|
# The Draw.io editor to embed for diagrams. Empty uses the public
|
|
# https://embed.diagrams.net; point it at a self-hosted jgraph/drawio to keep
|
|
# drawings on your network.
|
|
DOCWELL_DRAWIO_URL=
|
|
|
|
# Largest attachment in MB (1-100).
|
|
DOCWELL_MAX_UPLOAD_MB=50
|
|
|
|
# Sign-up defaults; the admin panel can change them later.
|
|
# The first account always can sign up and becomes the instance admin.
|
|
DOCWELL_SIGNUP_ENABLED=true
|
|
# Comma-separated email domains allowed to sign up (empty = any).
|
|
DOCWELL_SIGNUP_DOMAINS=
|
|
|
|
# Email (verification, password reset, sign-in codes), sent by PocketBase.
|
|
# Empty host = email off. For local testing run `docker compose --profile dev up`
|
|
# with DOCWELL_SMTP_HOST=mailpit and DOCWELL_SMTP_PORT=1025, then open
|
|
# http://localhost:8025 to read the emails.
|
|
DOCWELL_SMTP_HOST=
|
|
DOCWELL_SMTP_PORT=587
|
|
DOCWELL_SMTP_USERNAME=
|
|
DOCWELL_SMTP_PASSWORD=
|
|
DOCWELL_SMTP_TLS=false
|
|
DOCWELL_MAIL_FROM=no-reply@docwell.localhost
|