@janga/norna 0.7.26 → 0.7.27
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/README.md +16 -9
- package/bin/norna-cli.mjs +2 -2
- package/package.json +1 -1
- package/schemas/category.schema.json +4 -4
- package/schemas/config.schema.json +65 -65
- package/schemas/content-frontmatter.schema.json +8 -8
- package/schemas/page-theme.schema.json +26 -26
- package/schemas/sitewide-content.schema.json +18 -18
- package/schemas/theme.schema.json +237 -237
- package/scripts/add-site-node.mjs +1 -1
- package/scripts/lib/documentation-links.mjs +33 -2
- package/scripts/lib/documentation-routes.json +222 -0
- package/scripts/lib/page-model.mjs +22 -0
- package/scripts/lib/schema-definitions.mjs +3 -3
- package/scripts/lib/schema-editor-metadata.mjs +1 -1
- package/src/components/PageAliasRedirect.astro +44 -3
- package/src/content.config.ts +5 -8
- package/src/lib/sitePages.ts +4 -18
- package/src/styles/content.css +3 -2
- package/starters/basic/README.md +1 -1
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ site/
|
|
|
73
73
|
presentation settings and nested entries under its own `pages/` directory.
|
|
74
74
|
- Category ids remain in child URLs. Opening a category URL leads to its first
|
|
75
75
|
listed direct page or a generated child list; see
|
|
76
|
-
[Category destinations](
|
|
76
|
+
[Category destinations](https://janga.github.io/norna/reference/site/pages/#opening-a-category-url).
|
|
77
77
|
- `theme.yaml` normally selects one complete visual preset.
|
|
78
78
|
- `sitewide-content.yaml` holds shared logo display settings, banners, and
|
|
79
79
|
footer content.
|
|
@@ -134,24 +134,31 @@ components, and rendering logic.
|
|
|
134
134
|
|
|
135
135
|
GitHub CLI and Playwright are needed only for specific deploy helpers and
|
|
136
136
|
engine diagnostics, not for ordinary editing and local preview. See
|
|
137
|
-
[Requirements and limitations](
|
|
137
|
+
[Requirements and limitations](https://janga.github.io/norna/reference/site/requirements/) for the exact boundaries.
|
|
138
138
|
|
|
139
139
|
## Documentation
|
|
140
140
|
|
|
141
141
|
- [Getting Started](https://janga.github.io/norna/getting-started/install-norna/)
|
|
142
|
-
- [Site files](
|
|
143
|
-
- [Upgrading an existing site](
|
|
144
|
-
- [
|
|
145
|
-
- [
|
|
146
|
-
- [
|
|
147
|
-
- [
|
|
148
|
-
- [Troubleshooting](
|
|
142
|
+
- [Site files](https://janga.github.io/norna/reference/site/files/)
|
|
143
|
+
- [Upgrading an existing site](https://janga.github.io/norna/reference/workflows/upgrading/)
|
|
144
|
+
- [Complete reference](https://janga.github.io/norna/reference/)
|
|
145
|
+
- [Working on a site](https://janga.github.io/norna/reference/workflows/)
|
|
146
|
+
- [JavaScript and accessibility](https://janga.github.io/norna/reference/reader/accessibility/)
|
|
147
|
+
- [Commands](https://janga.github.io/norna/reference/commands/invocation/)
|
|
148
|
+
- [Troubleshooting](https://janga.github.io/norna/faq/installation/)
|
|
149
149
|
- [AI-readable documentation index](https://janga.github.io/norna/llms.txt)
|
|
150
150
|
|
|
151
151
|
Engine contributors should start with
|
|
152
152
|
[Engine Development](docs/engine-development.md). Planning and future work are
|
|
153
153
|
tracked in [BACKLOG.md](BACKLOG.md).
|
|
154
154
|
|
|
155
|
+
The user reference is authored once under `site/pages/032-reference/` and
|
|
156
|
+
rendered on the documentation site. It describes current development; use the
|
|
157
|
+
installed release's Git tag when checking older behavior. Tags through 0.7.26
|
|
158
|
+
keep their reference under `docs/`; later tags use the documentation page tree.
|
|
159
|
+
The [contributor documentation](docs/README.md) explains maintenance and version
|
|
160
|
+
selection.
|
|
161
|
+
|
|
155
162
|
## Support And License
|
|
156
163
|
|
|
157
164
|
Use the [issue tracker](https://github.com/janga/norna/issues) for reproducible
|
package/bin/norna-cli.mjs
CHANGED
|
@@ -23,14 +23,14 @@ Commands:
|
|
|
23
23
|
theme:export Export a commented theme preset reference
|
|
24
24
|
typography profiles Show built-in typography profile values
|
|
25
25
|
typography show Show resolved typography for the selected site
|
|
26
|
-
site:public Sync
|
|
26
|
+
site:public Sync static files to the selected site's .norna/public/
|
|
27
27
|
images Generate optimized image variants
|
|
28
28
|
engine:update Update @janga/norna in a site repository
|
|
29
29
|
engine:version Show installed engine and Astro versions
|
|
30
30
|
init Create a new site project from the starter
|
|
31
31
|
page:add Add a page to the site page tree
|
|
32
32
|
page:move Move a page subtree and update internal links
|
|
33
|
-
category:add Add a
|
|
33
|
+
category:add Add a navigation group without an authored page body
|
|
34
34
|
migrate:check Audit a Docusaurus project without modifying it
|
|
35
35
|
build Build the selected site
|
|
36
36
|
build:local Build and restart local dev server
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@janga/norna",
|
|
3
3
|
"description": "An opinionated CLI for building responsive websites from Markdown, images, and theme presets.",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.27",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
"label": {
|
|
6
6
|
"type": "string",
|
|
7
7
|
"minLength": 1,
|
|
8
|
-
"description": "Navigation label for
|
|
9
|
-
"markdownDescription": "```yaml\nlabel: Guides\n```\n\nThe category label shown in global navigation, tree navigation, mobile navigation, and breadcrumbs.\n\n[Navigation category reference](https://github.com/janga/norna/blob/v0.7.
|
|
8
|
+
"description": "Navigation label for a group of child pages without an authored page body.",
|
|
9
|
+
"markdownDescription": "```yaml\nlabel: Guides\n```\n\nThe category label shown in global navigation, tree navigation, mobile navigation, and breadcrumbs.\n\n[Navigation category reference (current)](https://janga.github.io/norna/reference/site/pages/#page-or-category)\n\n[Norna 0.7.27 source reference](https://github.com/janga/norna/blob/v0.7.27/site/pages/032-reference/pages/010-site/pages/020-pages/content.md#page-or-category)"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"required": [
|
|
13
13
|
"label"
|
|
14
14
|
],
|
|
15
15
|
"additionalProperties": false,
|
|
16
|
-
"description": "A
|
|
16
|
+
"description": "A navigation group without an authored page body. Opening its URL redirects when its first listed direct child is a page; otherwise it shows a generated child list.",
|
|
17
17
|
"$id": "https://janga.github.io/norna/schemas/category.schema.json",
|
|
18
18
|
"title": "Norna page category",
|
|
19
|
-
"markdownDescription": "```yaml\nlabel: Guides\n```\n\n`category.yaml` groups child pages without editorial content. Its URL opens the first listed direct page, or a generated child list when the first child is a category.\n\n[Navigation category reference](https://github.com/janga/norna/blob/v0.7.
|
|
19
|
+
"markdownDescription": "```yaml\nlabel: Guides\n```\n\n`category.yaml` groups child pages without editorial content. Its URL opens the first listed direct page, or a generated child list when the first child is a category.\n\n[Navigation category reference (current)](https://janga.github.io/norna/reference/site/pages/#page-or-category)\n\n[Norna 0.7.27 source reference](https://github.com/janga/norna/blob/v0.7.27/site/pages/032-reference/pages/010-site/pages/020-pages/content.md#page-or-category)"
|
|
20
20
|
}
|