@nimtech/nimpress 2.7.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/rules/docs-sync.md +5 -1
- package/.claude/rules/frontmatter.md +2 -0
- package/dist/cli.es.js +1017 -972
- package/dist/{plugin-BZgsCxCz.js → plugin-DOHMact8.js} +1 -0
- package/dist/plugin.es.js +1 -1
- package/dist/src/cli/export.d.ts +1 -1
- package/dist/src/cli/export.d.ts.map +1 -1
- package/dist/src/cli/site.d.ts.map +1 -1
- package/dist/src/types.d.ts +4 -0
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,11 @@ The receiver is thin. The `docs-sync` action owns the mirror, the version bump,
|
|
|
26
26
|
|
|
27
27
|
2. Mints an organization App token before checkout, then checks out the docs with that token and `fetch-depth: 0`, and checks out the source at the dispatched sha with the same token.
|
|
28
28
|
|
|
29
|
-
3. Runs `docs-sync@v2` with `token`, `docs-repo`, `docs-dir`, `source-repo`, `source-path`, `content-root`, and optionally `mapping` and `
|
|
29
|
+
3. Runs `docs-sync@v2` with `token`, `docs-repo`, `docs-dir`, `source-repo`, `source-path`, `content-root`, and optionally `mapping`, `defaults` and `include`. Nothing else.
|
|
30
|
+
|
|
31
|
+
4. When the dispatch mode is `export`, runs `docs-export@v2` against the checked out source first and hands its output to `docs-sync` as `source-path`.
|
|
32
|
+
|
|
33
|
+
5. When the source mapping names a `package`, installs it at the version of the dispatched tag, the `ref` without its leading `v` or the `version` input of a manual run, and passes `include: package.json pnpm-lock.yaml` so the deploy builds against that release. The source then notifies from a workflow that runs after its publish workflow, never in parallel with it.
|
|
30
34
|
|
|
31
35
|
## Configuration
|
|
32
36
|
|
|
@@ -20,6 +20,8 @@ Every markdown page declares YAML frontmatter at the top. Parsed with `gray-matt
|
|
|
20
20
|
|
|
21
21
|
3.1.2. `dropdown` puts the page in sidebar filters: a dropdown id to `value`, the list of choices the page shows under, plus optional `title` and `description` naming the dropdown, which the `dropdowns` config block overrides. A page without a value shows under every choice. A folder of pages each named after its single value, `Button/Vue/` and `Button/Svelte/`, folds into one row when the selection leaves one. The menu sits in the header and moves to the sidebar footer at 1024 pixels and below.
|
|
22
22
|
|
|
23
|
+
3.1.3. `export` publishes the page to another nimpress site through the docs sync pipeline: `export: <target>`, `export: true` for every target, or `export: { target, gate }`. On a folder `index.md` it publishes the whole folder, every page and file beneath it, and a page beneath that sets `export: false` stays home with its subfolders. `gate` is written into the exported copy only, so the page is gated on the receiving site and stays ungated in its own.
|
|
24
|
+
|
|
23
25
|
3.2. `sidebar.icon` accepts literal text or ascii art rendered verbatim in the mono font, inline `<svg>` markup rendered as markup, or a path ending in `.svg` resolved against the declaring file, or against `contentDir` when it starts with `/`, read at build time and inlined. An unreadable path warns and drops the icon. The sidebar renders icons only from `sidebar` blocks and story definitions.
|
|
24
26
|
|
|
25
27
|
4. `description` gets used as a meta description and a search excerpt. Add it for any page expected to land via search.
|