You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: replace invalid stacked supplemental_files example with Antora-correct patterns
Antora accepts one directory path or virtual file entries; a YAML list of multiple directories was never valid. Document merged directory, bundle + virtual files, and virtual partial overrides; update installation guide and changelog.
Copy file name to clipboardExpand all lines: CHANGELOG.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Entries below are in **chronological order** by date: prior release, then the **
10
10
11
11
== Unreleased
12
12
13
+
* Documentation: replace the invalid “stacked directories” `supplemental_files` example with Antora-correct options (single merged directory, pre-built bundle + virtual files, or virtual partial overrides). See https://docs.antora.org/antora/latest/playbook/ui-supplemental-files[Antora supplemental UI].
13
14
* `package.json` `packageManager`: bump pnpm to **10.33.0** (matches `pnpm/action-setup` in CI, including link:https://github.com/antora-supplemental/antora-build-action[antora-build-action], so the action and Corepack no longer disagree).
14
15
* GitHub Pages deploy workflow: use link:https://github.com/antora-supplemental/antora-build-action[antora-build-action] **v2** with `setup_pnpm: false`, `setup_node: false`, and `install_dependencies: false` after the job’s own `pnpm` / `setup-node` steps (no duplicate toolchain setup).
Copy file name to clipboardExpand all lines: README.adoc
+37-5Lines changed: 37 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Your support helps the Antora team prioritize this feature!
42
42
43
43
=== Which installation path should I use?
44
44
45
-
* **If your project already uses Node/npm/pnpm** (common for Antora sites) — Prefer *Method 1* (install from npm) and *Method 2* when you need layered overrides. The theme stays in `package.json` / your lockfile like the rest of your toolchain.
45
+
* **If your project already uses Node/npm/pnpm** (common for Antora sites) — Prefer *Method 1* (install from npm). To add your own supplemental files on top of this theme, follow *Method 2* (valid Antora patterns only).
46
46
* **If you want no JavaScript install step** (minimal CI image, or a repo without Node) — Use *Method 3* (pre-built `ui-bundle.zip`): one URL in the playbook, no `node_modules`.
47
47
48
48
=== Method 1: Use as npm dependency (recommended for Node-based projects)
To override or extend this theme with your own supplemental UI, use an array for `supplemental_files`. Paths listed **later** take precedence.
96
+
Antora’s `ui.supplemental_files` accepts *either* a single filesystem directory *or* an array of https://docs.antora.org/antora/latest/playbook/ui-supplemental-files[virtual files] (`path` + `contents`).
97
+
A YAML list of multiple **directories** is not supported—the array form is only for virtual entries.
98
+
99
+
*Merged directory (recommended when you use npm and need custom partials/CSS):* Copy `node_modules/antora-dark-theme/supplemental-ui` into your repo (for example `supplemental-ui/`), merge your changes on top, then point the playbook at that *one* folder:
*Pre-built theme bundle + virtual files:* Use the release `ui-bundle.zip` (default UI + dark theme already combined) and add only extra assets with a virtual `supplemental_files` array:
*Virtual override of a single UI file:* Each entry must use `path` and `contents` (inline or path to a file on disk).
128
+
If you replace a partial such as `partials/head-meta.hbs`, your file must still load this theme’s CSS and scripts (start from the theme’s partial), or use a merged directory instead.
Copy file name to clipboardExpand all lines: README.md
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Dark mode supplemental UI for [Antora](https://antora.org) documentation sites.
9
9
10
10
### Which installation path should I use?
11
11
12
-
-**If your project already uses Node/npm/pnpm** (common for Antora sites) — use **Method 1** (npm) and **Method 2** when you need layered overrides. The theme stays in `package.json` / your lockfile like the rest of your toolchain.
12
+
-**If your project already uses Node/npm/pnpm** (common for Antora sites) — use **Method 1** (npm). To add your own supplemental files on top of this theme, use **Method 2** (valid Antora patterns only—see below).
13
13
-**If you want no JavaScript install step** (minimal CI, or a repo without Node) — use **Method 3** (pre-built `ui-bundle.zip`): one URL in the playbook, no `node_modules`.
14
14
15
15
### Method 1: npm dependency (recommended for Node-based projects)
Antora’s `ui.supplemental_files` accepts **either** a single directory path **or** an array of [virtual files](https://docs.antora.org/antora/latest/playbook/ui-supplemental-files) (`path` + `contents`). A YAML list of multiple **directories** is not supported—the array form is only for virtual entries.
44
+
45
+
**Merged directory (recommended when you use npm and need custom partials/CSS):** Copy `node_modules/antora-dark-theme/supplemental-ui` into your repo (for example `supplemental-ui/`), merge your changes on top, then point the playbook at that **one** folder:
**Pre-built theme bundle + virtual files:** Use the release `ui-bundle.zip` (default UI + dark theme already combined) and add only extra assets with a virtual `supplemental_files` array:
**Virtual override of a single UI file:** Each entry must use `path` and `contents` (inline or path to a file). If you replace a partial such as `partials/head-meta.hbs`, your file must still load this theme’s CSS and scripts (start from the theme’s partial), or use a merged directory instead.
Copy file name to clipboardExpand all lines: docs/modules/guide/pages/installation.adoc
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ There are several ways to add the dark theme to your Antora project.
6
6
7
7
== Which installation path should I use?
8
8
9
-
* **If your project already uses Node/npm/pnpm** (common for Antora sites) — Prefer *Method 1* (npm registry) or *Method 2* (GitHub as a package dependency). Both keep the theme in your package graph and lockfile.
9
+
* **If your project already uses Node/npm/pnpm** (common for Antora sites) — Prefer *Method 1* (npm registry) or *Method 2* (GitHub as a package dependency). Both keep the theme in your package graph and lockfile. For custom supplemental UI on top of this theme, merge into a single directory or use virtual files (see <<override-theme>>).
10
10
* **If you want no JavaScript install step** (minimal CI, or a repo without Node) — Use *Method 3* (pre-built `ui-bundle.zip`).
To layer your own supplemental UI after this theme, use an array; later paths win:
58
+
[[override-theme]]
59
+
=== Adding your own supplemental UI on top of this theme
60
+
61
+
Antora’s `ui.supplemental_files` accepts *either* a single filesystem directory *or* an array of https://docs.antora.org/antora/latest/playbook/ui-supplemental-files[virtual files] (`path` + `contents`).
62
+
You cannot list multiple directories in the YAML array.
63
+
64
+
*Merged directory (recommended):* Copy `node_modules/antora-dark-theme/supplemental-ui` into your project (for example `supplemental-ui/`), merge your `partials/`, `css/`, and other assets, then set `supplemental_files` to that *one* path:
*Pre-built theme bundle + virtual files:* If you use the release `ui-bundle.zip`, the theme is already in the bundle; add only virtual `supplemental_files` entries for extra assets (see the Antora docs linked above).
76
+
71
77
== Method 2: Install from GitHub as a package dependency
72
78
73
79
Useful for an unreleased commit or when you prefer the `github:` protocol:
0 commit comments