Add toggles, embeds, link cards, block links, archive, version diff, space export and desktop 1.0
Editor:
- Toggles (Tiptap Details). Open state is per reader, not saved.
- Embeds for YouTube, Vimeo, Loom, Figma, CodePen, Spotify, Google Docs
and Maps, in sandboxed frames. Other addresses become link cards.
- Link cards with title, description and picture read by docwell-server
(GET /link-preview). The fetcher refuses private, loopback, link-local
and CGNAT addresses after DNS resolution, redirects included.
- Block links: a margin button gives a block a short id and copies
/p/<id>#b-<block>. Opening one jumps to the block and flashes it.
- Markdown, HTML and PDF exports handle the new blocks; HTML import reads
<details> as a toggle.
Pages and spaces:
- History gets a Changes view: block and word diff against the previous
version or the page as it is now.
- Archive: archived pages leave the tree and become read-only but stay
readable; a space's Archive lists them with Unarchive. New migration
(pages.archived_at) and page.archived / page.unarchived webhook events.
- Full space export (GET /spaces/{id}/export): a zip of Markdown or HTML
files with subpages in folders, an index, and attachments under _files/.
Links between exported pages and to attachments become relative paths.
Desktop 1.0:
- Several servers, each with its own sign-in; old settings files carry over.
- Session tokens in the system keychain (go-keyring), moved out of
localStorage on first start.
- Native menu bar (File, Edit, View, Window, Help) with a Server submenu.
- docwell:// links may point at a block.
- Release workflow builds Windows NSIS, macOS DMG and Linux deb, rpm and
AppImage installers and attaches them to the release;
build/set-version.mjs stamps the version into their metadata.
Not yet run: the release workflow, the desktop menus by eye, and macOS or
Linux builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
135b4640b2
commit
40d515d15b
74 files changed
+4249
-119
No files matched your search
@@ -1,6 +1,8 @@
|
||||
# Publishes the Docker images for a release: push a tag like v0.1.0.
|
||||
# Publishes a release: push a tag like v0.1.0.
|
||||
# Images go to ghcr.io/<repository owner>/<name>, for linux/amd64 and
|
||||
# linux/arm64, tagged with the version (0.1.0, 0.1) and latest.
|
||||
# Desktop installers (Windows NSIS, macOS DMG, Linux deb, rpm and AppImage)
|
||||
# are attached to the GitHub release for the tag.
|
||||
|
||||
name: Release
|
||||
|
||||
@@ -77,3 +79,80 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha,scope=${{ matrix.name }}
|
||||
cache-to: type=gha,mode=max,scope=${{ matrix.name }}
|
||||
|
||||
desktop:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: windows-latest
|
||||
task: windows:package
|
||||
files: Desktop-App/bin/*-installer.exe
|
||||
- os: macos-latest
|
||||
task: darwin:package:dmg
|
||||
files: Desktop-App/bin/*.dmg
|
||||
- os: ubuntu-latest
|
||||
task: linux:create:deb linux:create:rpm linux:create:appimage
|
||||
files: |
|
||||
Desktop-App/bin/*.deb
|
||||
Desktop-App/bin/*.rpm
|
||||
Desktop-App/bin/*.AppImage
|
||||
runs-on: ${{ matrix.os }}
|
||||
permissions:
|
||||
contents: write
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
GOWORK: "off"
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: "1.26"
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: 24
|
||||
cache: npm
|
||||
|
||||
- name: Version
|
||||
id: version
|
||||
run: |
|
||||
v="${{ inputs.version || github.ref_name }}"
|
||||
echo "value=${v#v}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Linux packaging dependencies
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libfuse2 rpm
|
||||
- name: NSIS
|
||||
if: runner.os == 'Windows'
|
||||
run: choco install nsis -y --no-progress && echo "C:/Program Files (x86)/NSIS" >> "$GITHUB_PATH"
|
||||
- name: Wails CLI
|
||||
run: go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
|
||||
|
||||
- run: npm ci
|
||||
- name: Stamp the version
|
||||
working-directory: Desktop-App
|
||||
run: node build/set-version.mjs "${{ steps.version.outputs.value }}"
|
||||
|
||||
# The update feed and its ed25519 public key are repository variables;
|
||||
# without them the build never updates itself (see updates.go).
|
||||
- name: Package
|
||||
working-directory: Desktop-App
|
||||
run: |
|
||||
flags="-X main.version=${{ steps.version.outputs.value }}"
|
||||
flags="$flags -X main.docsURL=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/"
|
||||
if [ -n "${{ vars.DESKTOP_UPDATE_MANIFEST_URL }}" ]; then
|
||||
flags="$flags -X main.updateManifestURL=${{ vars.DESKTOP_UPDATE_MANIFEST_URL }} -X main.updatePublicKey=${{ vars.DESKTOP_UPDATE_PUBLIC_KEY }}"
|
||||
fi
|
||||
wails3 task ${{ matrix.task }} EXTRA_LDFLAGS="$flags"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: desktop-${{ runner.os }}
|
||||
path: ${{ matrix.files }}
|
||||
- name: Attach to the release
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: ${{ matrix.files }}
|
||||
Reference in new issue
Block a user