@janga/norna 0.7.22 → 0.7.23
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/astro.config.mjs +3 -0
- package/bin/norna-cli.mjs +2 -2
- package/package.json +17 -3
- package/schemas/category.schema.json +2 -2
- package/schemas/config.schema.json +22 -24
- package/schemas/content-frontmatter.schema.json +25 -5
- package/schemas/page-theme.schema.json +53 -25
- package/schemas/sitewide-content.schema.json +19 -18
- package/schemas/theme.schema.json +383 -250
- package/scripts/check-config.mjs +24 -4
- package/scripts/deploy-site.mjs +0 -1
- package/scripts/dev-local.mjs +175 -112
- package/scripts/lib/content-sync-apply.mjs +34 -0
- package/scripts/lib/content-sync-plan.mjs +179 -0
- package/scripts/lib/editor-language-service.mjs +128 -0
- package/scripts/lib/heading-ids.mjs +1 -1
- package/scripts/lib/image-presentation.mjs +2 -0
- package/scripts/lib/markdown-links.mjs +182 -0
- package/scripts/lib/navigation-model.mjs +25 -14
- package/scripts/lib/norna-markdown-blocks.mjs +1 -0
- package/scripts/lib/page-aliases.mjs +164 -0
- package/scripts/lib/page-markdown.mjs +56 -6
- package/scripts/lib/presentation.mjs +19 -37
- package/scripts/lib/project-config.mjs +50 -29
- package/scripts/lib/schema-definitions.mjs +24 -13
- package/scripts/lib/schema-editor-metadata.mjs +43 -30
- package/scripts/lib/schema-value-definitions.mjs +6 -2
- package/scripts/lib/site-content.mjs +26 -4
- package/scripts/lib/site-link-graph.mjs +326 -0
- package/scripts/lib/site-page-urls.mjs +10 -0
- package/scripts/lib/sitemap.mjs +34 -0
- package/scripts/lib/theme-presets.mjs +51 -23
- package/scripts/lib/theme-profiles.mjs +7 -5
- package/scripts/lib/yaml-config.mjs +6 -2
- package/scripts/sync-content-sections.mjs +116 -213
- package/scripts/sync-site-public.mjs +23 -2
- package/src/components/CodeBlockCopyScript.astro +92 -0
- package/src/components/DisplaySettings.astro +4 -4
- package/src/components/ImageCarousel.astro +7 -3
- package/src/components/NavigationPageTree.astro +44 -60
- package/src/components/PageAliasRedirect.astro +49 -0
- package/src/components/PageContentsNavigation.astro +21 -0
- package/src/components/SectionNavigationScript.astro +62 -6
- package/src/components/SiteNavigation.astro +15 -3
- package/src/components/SitePage.astro +42 -2
- package/src/components/SiteSection.astro +5 -0
- package/src/components/SiteTreeNavigation.astro +0 -1
- package/src/content.config.ts +5 -2
- package/src/layouts/BaseLayout.astro +14 -8
- package/src/lib/readerPreferencesScript.mjs +2 -2
- package/src/lib/sitePages.ts +3 -2
- package/src/pages/[...slug].astro +35 -8
- package/src/styles/content.css +494 -0
- package/src/styles/foundations.css +284 -0
- package/src/styles/global.css +6 -2510
- package/src/styles/media.css +523 -0
- package/src/styles/navigation.css +495 -0
- package/src/styles/page-layout.css +437 -0
- package/src/styles/responsive.css +525 -0
- package/starters/basic/README.md +1 -1
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"examples": [
|
|
13
13
|
"2rem"
|
|
14
14
|
],
|
|
15
|
-
"markdownDescription": "```yaml\nlogo:\n height: 2rem\n```\n\nDisplayed logo height on wider screens. Omit it to use 2.6rem; narrow screens cap the height at 2.15rem. Width follows the intrinsic aspect ratio.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
15
|
+
"markdownDescription": "```yaml\nlogo:\n height: 2rem\n```\n\nDisplayed logo height on wider screens. Omit it to use 2.6rem; narrow screens cap the height at 2.15rem. Width follows the intrinsic aspect ratio.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/public-files.md#navigation-logo)"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"additionalProperties": false,
|
|
19
19
|
"description": "Optional display settings for a convention-based navigation logo.",
|
|
20
|
-
"markdownDescription": "```yaml\nlogo:\n height: 2rem\n```\n\n`logo` optionally overrides the displayed height of the convention-based logo file. Without an override, Norna uses 2.6rem on wider screens and caps the logo at 2.15rem on narrow screens. The logo links home, and its alternative text comes from the homepage Markdown H1. This setting does not enable or select the file.\n\n[Navigation logo filenames and placement](https://github.com/janga/norna/blob/v0.7.
|
|
20
|
+
"markdownDescription": "```yaml\nlogo:\n height: 2rem\n```\n\n`logo` optionally overrides the displayed height of the convention-based logo file. Without an override, Norna uses 2.6rem on wider screens and caps the logo at 2.15rem on narrow screens. The logo links home, and its alternative text comes from the homepage Markdown H1. This setting does not enable or select the file.\n\n[Navigation logo filenames and placement](https://github.com/janga/norna/blob/v0.7.23/docs/public-files.md#navigation-logo)"
|
|
21
21
|
},
|
|
22
22
|
"banners": {
|
|
23
23
|
"default": [],
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "string",
|
|
31
31
|
"pattern": "^[a-z0-9-]+$",
|
|
32
32
|
"description": "Stable banner identifier used for dismissal state.",
|
|
33
|
-
"markdownDescription": "```yaml\nbanners:\n - id: project-status\n```\n\nStable banner identifier used for dismissal state.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
33
|
+
"markdownDescription": "```yaml\nbanners:\n - id: project-status\n```\n\nStable banner identifier used for dismissal state.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
34
34
|
},
|
|
35
35
|
"tone": {
|
|
36
36
|
"default": "warning",
|
|
@@ -40,10 +40,11 @@
|
|
|
40
40
|
{
|
|
41
41
|
"const": "warning",
|
|
42
42
|
"title": "Warning",
|
|
43
|
-
"description": "Present the banner as an important warning notice."
|
|
43
|
+
"description": "Present the banner as an important warning notice.",
|
|
44
|
+
"markdownDescription": "Present the banner as an important warning notice.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
44
45
|
}
|
|
45
46
|
],
|
|
46
|
-
"markdownDescription": "```yaml\nbanners:\n - tone: warning\n```\n\nSemantic banner tone.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
47
|
+
"markdownDescription": "```yaml\nbanners:\n - tone: warning\n```\n\nSemantic banner tone.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
47
48
|
},
|
|
48
49
|
"visible": {
|
|
49
50
|
"description": "Optional date window for the banner.",
|
|
@@ -53,21 +54,21 @@
|
|
|
53
54
|
"description": "First date on which the content is visible.",
|
|
54
55
|
"type": "string",
|
|
55
56
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
56
|
-
"markdownDescription": "```yaml\nbanners:\n - visible:\n from: \"2026-01-01\"\n```\n\nFirst date on which the content is visible.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
57
|
+
"markdownDescription": "```yaml\nbanners:\n - visible:\n from: \"2026-01-01\"\n```\n\nFirst date on which the content is visible.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
57
58
|
},
|
|
58
59
|
"until": {
|
|
59
60
|
"description": "First date on which the content is no longer visible.",
|
|
60
61
|
"type": "string",
|
|
61
62
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
62
|
-
"markdownDescription": "```yaml\nbanners:\n - visible:\n until: \"2026-02-01\"\n```\n\nFirst date on which the content is no longer visible.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
63
|
+
"markdownDescription": "```yaml\nbanners:\n - visible:\n until: \"2026-02-01\"\n```\n\nFirst date on which the content is no longer visible.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
66
|
"additionalProperties": false,
|
|
66
|
-
"markdownDescription": "```yaml\nbanners:\n - visible:\n from: \"2026-01-01\"\n until: \"2026-02-01\"\n```\n\nOptional date window for the banner.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
67
|
+
"markdownDescription": "```yaml\nbanners:\n - visible:\n from: \"2026-01-01\"\n until: \"2026-02-01\"\n```\n\nOptional date window for the banner.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)",
|
|
67
68
|
"defaultSnippets": [
|
|
68
69
|
{
|
|
69
70
|
"label": "Visibility window",
|
|
70
|
-
"markdownDescription": "Show the banner from the first date up to, but not including, the second date.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
71
|
+
"markdownDescription": "Show the banner from the first date up to, but not including, the second date.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)",
|
|
71
72
|
"body": {
|
|
72
73
|
"from": "${1:2026-01-01}",
|
|
73
74
|
"until": "${2:2026-02-01}"
|
|
@@ -79,13 +80,13 @@
|
|
|
79
80
|
"type": "string",
|
|
80
81
|
"minLength": 1,
|
|
81
82
|
"description": "Short banner heading.",
|
|
82
|
-
"markdownDescription": "```yaml\nbanners:\n - title: Important notice\n```\n\nShort banner heading.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
83
|
+
"markdownDescription": "```yaml\nbanners:\n - title: Important notice\n```\n\nShort banner heading.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
83
84
|
},
|
|
84
85
|
"text": {
|
|
85
86
|
"type": "string",
|
|
86
87
|
"minLength": 1,
|
|
87
88
|
"description": "Concise banner message.",
|
|
88
|
-
"markdownDescription": "```yaml\nbanners:\n - text: Brief explanation.\n```\n\nConcise banner message.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
89
|
+
"markdownDescription": "```yaml\nbanners:\n - text: Brief explanation.\n```\n\nConcise banner message.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
89
90
|
}
|
|
90
91
|
},
|
|
91
92
|
"required": [
|
|
@@ -96,11 +97,11 @@
|
|
|
96
97
|
"additionalProperties": false,
|
|
97
98
|
"description": "Dismissible site-wide warning shown above page content for important temporary information.",
|
|
98
99
|
"title": "Warning banner",
|
|
99
|
-
"markdownDescription": "A `warning` is a dismissible site-wide notice shown above page content. Use it for important temporary information visitors should notice, rather than ordinary page content.\n\n[Banner reference](https://github.com/janga/norna/blob/v0.7.
|
|
100
|
+
"markdownDescription": "A `warning` is a dismissible site-wide notice shown above page content. Use it for important temporary information visitors should notice, rather than ordinary page content.\n\n[Banner reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)",
|
|
100
101
|
"defaultSnippets": [
|
|
101
102
|
{
|
|
102
103
|
"label": "Warning banner",
|
|
103
|
-
"markdownDescription": "A `warning` is a dismissible site-wide notice shown above page content. Use it for important temporary information visitors should notice, rather than ordinary page content.\n\n[Banner reference](https://github.com/janga/norna/blob/v0.7.
|
|
104
|
+
"markdownDescription": "A `warning` is a dismissible site-wide notice shown above page content. Use it for important temporary information visitors should notice, rather than ordinary page content.\n\n[Banner reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)",
|
|
104
105
|
"body": {
|
|
105
106
|
"id": "${1:project-status}",
|
|
106
107
|
"tone": "warning",
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
}
|
|
111
112
|
]
|
|
112
113
|
},
|
|
113
|
-
"markdownDescription": "```yaml\nbanners:\n - id: project-status\n tone: warning\n title: Experimental code\n text: Not for production use.\n```\n\nAdds dismissible notices above page content. List order controls their presentation order; each `id` must be unique.\n\n[Banner reference](https://github.com/janga/norna/blob/v0.7.
|
|
114
|
+
"markdownDescription": "```yaml\nbanners:\n - id: project-status\n tone: warning\n title: Experimental code\n text: Not for production use.\n```\n\nAdds dismissible notices above page content. List order controls their presentation order; each `id` must be unique.\n\n[Banner reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#banners)"
|
|
114
115
|
},
|
|
115
116
|
"footer": {
|
|
116
117
|
"description": "Site-wide footer content.",
|
|
@@ -120,22 +121,22 @@
|
|
|
120
121
|
"description": "Copyright or ownership text shown in the site footer.",
|
|
121
122
|
"type": "string",
|
|
122
123
|
"minLength": 1,
|
|
123
|
-
"markdownDescription": "```yaml\nfooter:\n copyrightMessage: Copyright Example Owner.\n```\n\nCopyright or ownership text shown in the site footer.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
124
|
+
"markdownDescription": "```yaml\nfooter:\n copyrightMessage: Copyright Example Owner.\n```\n\nCopyright or ownership text shown in the site footer.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#footer)"
|
|
124
125
|
},
|
|
125
126
|
"buildInfo": {
|
|
126
127
|
"default": false,
|
|
127
128
|
"description": "Show a localized generated build timestamp in the footer.",
|
|
128
129
|
"type": "boolean",
|
|
129
|
-
"markdownDescription": "```yaml\nfooter:\n buildInfo: true\n```\n\nShow a localized generated build timestamp in the footer.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.
|
|
130
|
+
"markdownDescription": "```yaml\nfooter:\n buildInfo: true\n```\n\nShow a localized generated build timestamp in the footer.\n\n[Read the relevant reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#footer)"
|
|
130
131
|
}
|
|
131
132
|
},
|
|
132
133
|
"additionalProperties": false,
|
|
133
|
-
"markdownDescription": "```yaml\nfooter:\n copyrightMessage: Copyright Example Owner.\n```\n\nAdds shared footer content. Generated build information is optional.\n\n[Footer reference](https://github.com/janga/norna/blob/v0.7.
|
|
134
|
+
"markdownDescription": "```yaml\nfooter:\n copyrightMessage: Copyright Example Owner.\n```\n\nAdds shared footer content. Generated build information is optional.\n\n[Footer reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md#footer)"
|
|
134
135
|
}
|
|
135
136
|
},
|
|
136
137
|
"additionalProperties": false,
|
|
137
138
|
"description": "Editorial content and optional navigation logo display settings shared by every page.",
|
|
138
139
|
"$id": "https://janga.github.io/norna/schemas/sitewide-content.schema.json",
|
|
139
140
|
"title": "Norna site-wide content",
|
|
140
|
-
"markdownDescription": "```yaml\nfooter:\n copyrightMessage: Copyright Example Owner.\n```\n\n`sitewide-content.yaml` optionally defines banners, footer content, and logo display settings shared by every page.\n\n[Site-wide content reference](https://github.com/janga/norna/blob/v0.7.
|
|
141
|
+
"markdownDescription": "```yaml\nfooter:\n copyrightMessage: Copyright Example Owner.\n```\n\n`sitewide-content.yaml` optionally defines banners, footer content, and logo display settings shared by every page.\n\n[Site-wide content reference](https://github.com/janga/norna/blob/v0.7.23/docs/sitewide-content.md)"
|
|
141
142
|
}
|