@nimtech/nimpress 2.3.6 → 2.3.7
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/frontmatter.md +2 -0
- package/dist/cli.es.js +1 -1
- package/dist/nimpress.es.js +3977 -3966
- package/dist/{plugin-BLpql0xC.js → plugin-BeM5N1us.js} +1148 -1143
- package/dist/plugin.es.js +1 -1
- package/dist/src/types.d.ts +2 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@ Every markdown page declares YAML frontmatter at the top. Parsed with `gray-matt
|
|
|
16
16
|
|
|
17
17
|
3.1. `sidebar` inserts the page under a named sidebar group without changing its URL: required `name` as the verbatim label, optional `icon` and `style` decorating the group row, optional `path` overriding the group route. On a folder `index.md` the block changes and styles the folder's own sidebar entry instead of nesting a group; this works on every page type. On the root `index.md` the block inserts the page into the sidebar as the entry for the directory named by `path`, making the root page a clickable top level item. A `.story.ts` file carries the same block on its definition, `sidebar: { name, icon, style }`, to decorate its own story row; see the component modules rule.
|
|
18
18
|
|
|
19
|
+
3.1.1. `link: <absolute url>` turns the file into a sidebar entry that opens that url in a new tab instead of routing to a page. The file carries frontmatter and no body, produces no route, no search entry, and nothing in the build, and takes its sidebar position from where the file sits. `title` or `slug` is the label, `order` places it, `sidebar.icon` and `sidebar.style` decorate it. A relative value, or a body, is a lint error. `redirect` remains the internal counterpart.
|
|
20
|
+
|
|
19
21
|
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.
|
|
20
22
|
|
|
21
23
|
4. `description` gets used as a meta description and a search excerpt. Add it for any page expected to land via search.
|
package/dist/cli.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as R, c as he, r as ge, s as Ue, p as Ve, a as Fe, b as Q, e as qe, f as Ke, g as le, h as De, i as Qe, j as Ce, k as Xe, l as Ye, m as et, n as Se, w as X, o as Oe, q as tt, t as st, u as nt, v as ot, x as rt } from "./plugin-
|
|
1
|
+
import { d as R, c as he, r as ge, s as Ue, p as Ve, a as Fe, b as Q, e as qe, f as Ke, g as le, h as De, i as Qe, j as Ce, k as Xe, l as Ye, m as et, n as Se, w as X, o as Oe, q as tt, t as st, u as nt, v as ot, x as rt } from "./plugin-BeM5N1us.js";
|
|
2
2
|
import { join as h, dirname as z, relative as D, sep as U, extname as Y, resolve as T, basename as F } from "node:path";
|
|
3
3
|
import { readdirSync as q, existsSync as b, writeFileSync as L, mkdirSync as ye, rmSync as ne, readFileSync as J, statSync as Ee } from "node:fs";
|
|
4
4
|
import it from "gray-matter";
|