diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
new file mode 100644
index 0000000..18a9b22
--- /dev/null
+++ b/.github/workflows/pages.yml
@@ -0,0 +1,18 @@
+# The gui site at https://d-modem.github.io/gui/, built with brand's shared
+# theme and workflow (brand's docs/sites.md).
+name: Pages
+on:
+ push:
+ branches: [main]
+ pull_request:
+ workflow_dispatch:
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+concurrency:
+ group: pages-${{ github.ref }}
+ cancel-in-progress: true
+jobs:
+ site:
+ uses: D-Modem/brand/.github/workflows/site.yml@main
diff --git a/.gitignore b/.gitignore
index b821bea..88d9bc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,7 @@ obj/
*.xcodeproj/xcuserdata/
DerivedData/
.flatpak-builder/
+
+# the site (brand's tools/site.sh): the theme it copies in, and the built site
+.site/
+site/
diff --git a/README.md b/README.md
index 8142102..7323f1c 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,8 @@
# D-Modem desktop apps
-Native apps for D-Modem on Windows, macOS and Linux.
+Native apps for D-Modem on Windows, macOS and Linux. The site of the apps is
+.
The apps have the modem built in, so they need no dmodemd (refer to
[The built-in modem](docs/embedded-modem.md)). Each app
@@ -60,6 +61,7 @@ macOS, refer to [Building](docs/building.md).
## Documentation
+- [The site](https://d-modem.github.io/gui/): the home page, the downloads and all the pages below
- [Features](docs/features.md): each page and menu of the apps, with the details of the Windows app
- [Building](docs/building.md): Linux, Windows with clang-retro, macOS, and the Windows app on Linux and macOS
- [The built-in modem](docs/embedded-modem.md): the modem inside the Linux and Windows apps, with no dmodemd
diff --git a/docs/download.md b/docs/download.md
new file mode 100644
index 0000000..3a75fe2
--- /dev/null
+++ b/docs/download.md
@@ -0,0 +1,64 @@
+# Download
+
+The [nightly release](https://github.com/D-Modem/gui/releases/tag/nightly)
+has the apps from the newest build of `main`. A workflow
+(`.github/workflows/nightly.yml`) replaces the release one time each day.
+When `main` has no new commits, the release does not change.
+
+!!! warning "These builds are not stable releases"
+ The files are not signed. Thus Windows SmartScreen and macOS Gatekeeper
+ can show a warning before the app starts.
+
+## Select a file
+
+| System | File | What it is |
+| --- | --- | --- |
+| Windows 95, 98, ME, NT 4.0 and later | [`dmodem-win9x.exe`](https://github.com/D-Modem/gui/releases/download/nightly/dmodem-win9x.exe) | The Windows app with the built-in modem. It needs no C runtime DLL. Windows 95 needs Winsock 2. |
+| Windows 98 SE, ME, 2000 and later | [`dmodem-win98.exe`](https://github.com/D-Modem/gui/releases/download/nightly/dmodem-win98.exe) | The Windows app with the built-in modem, on `msvcrt.dll`. |
+| Windows 7 and later | [`dmodem-win7.exe`](https://github.com/D-Modem/gui/releases/download/nightly/dmodem-win7.exe) | The Windows app with the built-in modem. |
+| macOS 13 and later | [`D-Modem-macos.zip`](https://github.com/D-Modem/gui/releases/download/nightly/D-Modem-macos.zip) | The macOS app (SwiftUI), for arm64 and x86_64. |
+| Linux, x86_64 | [`dmodem-gui-linux-x86_64.tar.gz`](https://github.com/D-Modem/gui/releases/download/nightly/dmodem-gui-linux-x86_64.tar.gz) | The Linux app (GTK 4). |
+| Linux, x86_64 (X11) | [`dmodem-win32-linux-x86_64.tar.gz`](https://github.com/D-Modem/gui/releases/download/nightly/dmodem-win32-linux-x86_64.tar.gz) | The Windows app on Linux. |
+| macOS, arm64 | [`dmodem-win32-macos-arm64.tar.gz`](https://github.com/D-Modem/gui/releases/download/nightly/dmodem-win32-macos-arm64.tar.gz) | The Windows app on macOS. |
+| All | [`SHA256SUMS`](https://github.com/D-Modem/gui/releases/download/nightly/SHA256SUMS) | The SHA-256 of each file. |
+
+If a file is not in the release, the newest build did not make it. The
+notes of the release list the files that are not there.
+
+## Check a file
+
+1. Download the file and `SHA256SUMS` into the same directory.
+2. Open a terminal in this directory.
+3. Type `sha256sum --check --ignore-missing SHA256SUMS`.
+
+The result for the file must be `OK`.
+
+## Install on Windows
+
+1. Download the `.exe` file for your version of Windows.
+2. Double-click the file. The app does not need an installer.
+3. If Windows SmartScreen shows a warning, click **More info**, then
+ click **Run anyway**.
+
+## Install on macOS
+
+1. Download `D-Modem-macos.zip`.
+2. Double-click the file to extract the app.
+3. Move the app to the **Applications** folder.
+4. Right-click the app, then select **Open**. The app is not notarized.
+ Thus macOS shows a warning the first time.
+
+## Install on Linux
+
+The Linux app needs GTK 4, libadwaita, PulseAudio and libsndfile.
+
+1. Install the libraries. On Ubuntu 24.04, type
+ `sudo apt install libgtk-4-1 libadwaita-1-0 libpulse0 libsndfile1`.
+2. Download `dmodem-gui-linux-x86_64.tar.gz`.
+3. Extract the file into `/`. Type
+ `sudo tar -xzf dmodem-gui-linux-x86_64.tar.gz -C /`.
+4. Start the app from the menu of applications, or type `dmodem-gui`.
+
+## Build the app
+
+To build the app from the source code, refer to [Building](building.md).
diff --git a/docs/images/dmodem.svg b/docs/images/dmodem.svg
new file mode 100644
index 0000000..aa9616c
--- /dev/null
+++ b/docs/images/dmodem.svg
@@ -0,0 +1,15 @@
+
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 0000000..ea60ddd
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,125 @@
+---
+title: D-Modem desktop apps
+hide:
+ - navigation
+ - toc
+---
+
+
+
+
+
+# D-Modem desktop apps
+
+**D-Modem on the desktop: a V.92 modem in a window, from Windows 95 to
+Windows 11, on macOS and on Linux.**
+
+The apps have the modem built in. You do not need modem hardware or a
+separate `dmodemd`. Dial a BBS, a fax machine or an ISP from a SIP call,
+a USB modem or a hardware modem.
+
+[Download the nightly build](download.md){ .md-button .md-button--primary }
+[Source on GitHub](https://github.com/D-Modem/gui){ .md-button }
+
+
+
+
+
+
+## What the apps do
+
+
+
+- **Modem**
+
+ ---
+
+ The state of the call. Dial, answer and hang up. Select the line that
+ the modem uses: a SIP account, a USB modem, or a modem that already
+ runs.
+
+- **Phone**
+
+ ---
+
+ Voice calls through the sound card, with a keypad. An answering machine
+ can take messages on this computer. It is disabled by default.
+
+- **Terminal**
+
+ ---
+
+ The AT console and the setup screens of the modem (`AT!CF`, `AT!CT`).
+ The emulator has xterm, DEC VT52 to VT525, ANSI-BBS, PETSCII, ATASCII,
+ Viewdata, Minitel and Tektronix 4014.
+
+- **Remote**
+
+ ---
+
+ Log in to a server by SSH, Telnet or rlogin. SSH is built in. It uses
+ the keys and the agent of OpenSSH and PuTTY.
+
+- **Settings**
+
+ ---
+
+ Each setting of the modem as a native control, from `AT!M`. You do not
+ have to type AT commands.
+
+- **Call Stats**
+
+ ---
+
+ The rate, the modulation, the error control and the line figures of
+ the last call (`AT#UD`, `ATI11`).
+
+
+
+[All the features](features.md){ .md-button }
+
+
+
+## Three native apps, one library
+
+Each app uses the native toolkit of its system. All three apps are thin
+shells over one small C library, libdmodemctl. Thus they operate in the
+same way.
+
+| | Windows | macOS | Linux |
+| --- | --- | --- | --- |
+| Toolkit | Win32, C++ | SwiftUI | GTK 4, libadwaita |
+| Runs on | Windows 95 and later | macOS 13 and later | GTK 4.10 and libadwaita 1.5 or later (Ubuntu 24.04, Fedora 40) |
+| Built-in modem | Yes | Yes | Yes |
+
+The Windows app is plain Win32, built with
+[clang-retro](https://clang-retro.github.io/). The same Win32 code also
+runs on Linux and macOS, over the portable Win32 layer of
+[clang-retro MFC](https://github.com/clang-retro/mfc). Refer to
+[Design](design.md).
+
+## Start here
+
+- **Use the app:** [download the nightly build](download.md) for your
+ system.
+- **Build the app:** refer to [Building](building.md).
+- **Use the modem without dmodemd:** refer to
+ [The built-in modem](embedded-modem.md).
+- **Learn how the apps are built:** refer to [Design](design.md) and to
+ the API of [libdmodemctl](https://github.com/D-Modem/gui/blob/main/core/include/dmodemctl.h).
+
+## Part of the D-Modem suite
+
+The desktop apps are one part of the [D-Modem suite](https://d-modem.github.io/).
+The suite has the softmodem ([D-Modem](https://d-modem.github.io/D-Modem/)),
+the [app for Android and iOS](https://d-modem.github.io/app/), the
+[pico-serial boards](https://d-modem.github.io/hardware/), and the
+servers that answer callers ([login](https://d-modem.github.io/login/) and
+[bbs](https://d-modem.github.io/bbs/)).
+
+## Licence
+
+AGPL-3.0-only ([LICENSE](../LICENSE)), or a commercial licence from the
+D-Modem Authors ([COMMERCIAL-LICENSE.md](../COMMERCIAL-LICENSE.md)).
+Contributions come with a contributor agreement
+([CONTRIBUTING.md](../CONTRIBUTING.md)).
diff --git a/mkdocs.yml b/mkdocs.yml
new file mode 100644
index 0000000..4324a3b
--- /dev/null
+++ b/mkdocs.yml
@@ -0,0 +1,22 @@
+INHERIT: .site/mkdocs-base.yml
+# The gui site, https://d-modem.github.io/gui/: docs/ with brand's shared
+# theme and workflow (brand's docs/sites.md). The site is built from a copy
+# of docs/ (.site/docs). docs/index.md is the home page of the site, and the
+# README stays the summary on GitHub.
+site_name: D-Modem desktop apps
+site_description: D-Modem on the desktop, for Windows 95 to Windows 11, macOS and Linux
+site_url: https://d-modem.github.io/gui/
+repo_url: https://github.com/D-Modem/gui
+repo_name: D-Modem/gui
+docs_dir: .site/docs
+extra:
+ repo: gui
+nav:
+ - Home: index.md
+ - Download: download.md
+ - Features: features.md
+ - The built-in modem: embedded-modem.md
+ - Building: building.md
+ - Design: design.md
+ - "libdmodemctl API": https://github.com/D-Modem/gui/blob/main/core/include/dmodemctl.h
+ - Documentation style: STYLE.md