create-riebeckite 0.0.19 → 0.0.20

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.
Files changed (45) hide show
  1. package/README.md +3 -3
  2. package/README_ja.md +1 -1
  3. package/dist/src/index.js +24 -24
  4. package/dist/src/scaffold/index.js +24 -24
  5. package/dist/src/scaffold/version.d.ts +1 -1
  6. package/dist/src/scaffold/wrangler-defaults.d.ts +1 -1
  7. package/package.json +2 -2
  8. package/templates/scaffold/base/app/global.d.ts +9 -3
  9. package/templates/scaffold/base/app/server.ts +2 -2
  10. package/templates/scaffold/base/vite.config.ts +3 -25
  11. package/templates/scaffold/presets/empty/app/routes/_404.tsx +18 -0
  12. package/templates/scaffold/presets/empty/app/routes/_renderer.tsx +1 -1
  13. package/templates/scaffold/presets/empty/app/routes/index.tsx +1 -1
  14. package/templates/scaffold/presets/empty/app/style.css +11 -0
  15. package/templates/scaffold/presets/minimal/app/routes/[slug{.+}].tsx +13 -32
  16. package/templates/scaffold/presets/minimal/app/routes/_404.tsx +18 -0
  17. package/templates/scaffold/presets/minimal/app/routes/_renderer.tsx +17 -53
  18. package/templates/scaffold/presets/minimal/app/routes/index.tsx +9 -19
  19. package/templates/scaffold/presets/minimal/app/style.css +13 -17
  20. package/templates/scaffold/presets/minimal/content/index.en.md +16 -6
  21. package/templates/scaffold/presets/showcase/app/components/site-header.tsx +10 -64
  22. package/templates/scaffold/presets/showcase/app/routes/[slug{.+}].tsx +15 -34
  23. package/templates/scaffold/presets/showcase/app/routes/_404.tsx +18 -0
  24. package/templates/scaffold/presets/showcase/app/routes/_renderer.tsx +31 -49
  25. package/templates/scaffold/presets/showcase/app/routes/index.tsx +19 -25
  26. package/templates/scaffold/presets/showcase/app/style.css +25 -37
  27. package/templates/scaffold/presets/showcase/content/Daily/2026-09-28.md +8 -0
  28. package/templates/scaffold/presets/showcase/content/Daily/2026-09-30.md +8 -0
  29. package/templates/scaffold/presets/showcase/content/Daily/2026-10-02.md +11 -0
  30. package/templates/scaffold/presets/showcase/content/index.de.md +16 -5
  31. package/templates/scaffold/presets/showcase/content/index.en.md +16 -5
  32. package/templates/scaffold/presets/showcase/content/index.es.md +16 -5
  33. package/templates/scaffold/presets/showcase/content/index.fr.md +16 -5
  34. package/templates/scaffold/presets/showcase/content/index.ja.md +16 -5
  35. package/templates/scaffold/presets/showcase/content/index.ko.md +16 -5
  36. package/templates/scaffold/presets/showcase/content/index.zh-CN.md +16 -5
  37. package/templates/scaffold/presets/starter/app/components/site-header.tsx +10 -64
  38. package/templates/scaffold/presets/starter/app/routes/[slug{.+}].tsx +15 -34
  39. package/templates/scaffold/presets/starter/app/routes/_404.tsx +18 -0
  40. package/templates/scaffold/presets/starter/app/routes/_renderer.tsx +31 -49
  41. package/templates/scaffold/presets/starter/app/routes/index.tsx +17 -25
  42. package/templates/scaffold/presets/starter/app/style.css +25 -37
  43. package/templates/scaffold/base/app/config.ts +0 -18
  44. package/templates/scaffold/base/app/constants/paths.ts +0 -10
  45. package/templates/scaffold/base/app/content.ts +0 -12
@@ -1,3 +1,4 @@
1
+ @import "./.riebeckite/framework-styles.css";
1
2
  @import "./.riebeckite/plugin-styles.css";
2
3
  @import "./.riebeckite/theme-styles.css";
3
4
 
@@ -21,6 +22,17 @@ body {
21
22
  padding-block: var(--rb-space-8, 4rem);
22
23
  }
23
24
 
25
+ .riebeckite-main {
26
+ display: flex;
27
+ width: 100%;
28
+ flex-direction: column;
29
+ align-items: center;
30
+ }
31
+
32
+ .riebeckite-main:has(> .not-found) {
33
+ flex: 1 1 auto;
34
+ }
35
+
24
36
  .site-header {
25
37
  display: flex;
26
38
  align-items: center;
@@ -48,17 +60,10 @@ body {
48
60
  color: var(--rb-color-ink);
49
61
  }
50
62
 
51
- .rb-nav__list {
63
+ .rb-nav > .rb-nav__list {
52
64
  display: flex;
53
65
  align-items: center;
54
66
  gap: var(--rb-space-3, 1.5rem);
55
- margin: 0;
56
- padding: 0;
57
- list-style: none;
58
- }
59
-
60
- .rb-nav__item {
61
- position: relative;
62
67
  }
63
68
 
64
69
  .rb-nav__link {
@@ -79,23 +84,11 @@ body {
79
84
  }
80
85
 
81
86
  .rb-nav__children {
82
- display: none;
83
- position: absolute;
84
- top: 100%;
85
- left: 0;
86
- min-width: max-content;
87
87
  padding: var(--rb-space-2, 1rem);
88
88
  background: var(--rb-color-surface);
89
89
  border: 1px solid var(--rb-color-border);
90
90
  }
91
91
 
92
- .rb-nav__item:hover > .rb-nav__children,
93
- .rb-nav__item:focus-within > .rb-nav__children {
94
- display: flex;
95
- flex-direction: column;
96
- align-items: stretch;
97
- }
98
-
99
92
  .rb-nav__mobile {
100
93
  display: none;
101
94
  }
@@ -171,13 +164,6 @@ body {
171
164
  margin: 0 auto;
172
165
  }
173
166
 
174
- .rb-article-layout {
175
- display: grid;
176
- grid-template-columns: minmax(0, var(--rb-layout-article-max, 48rem));
177
- justify-content: center;
178
- column-gap: var(--rb-layout-gap, 2rem);
179
- }
180
-
181
167
  .rb-article-body,
182
168
  .site-article__footer {
183
169
  min-width: 0;
@@ -189,16 +175,6 @@ body {
189
175
  }
190
176
 
191
177
  @media (min-width: 88rem) {
192
- :is(:root, .rb-theme-root)[data-article-layout="article"] .rb-article-layout {
193
- grid-template-columns: minmax(0, var(--rb-layout-article-max, 48rem));
194
- position: relative;
195
- }
196
-
197
- :is(:root, .rb-theme-root)[data-article-layout="article"] .rb-article-body {
198
- grid-column: 1;
199
- grid-row: 1;
200
- }
201
-
202
178
  :is(:root, .rb-theme-root)[data-article-layout="article"] .site-article__footer {
203
179
  grid-column: 1;
204
180
  }
@@ -222,3 +198,15 @@ body {
222
198
  color-mix(in oklab, currentColor 18%, transparent);
223
199
  }
224
200
  }
201
+
202
+ .not-found {
203
+ width: min(100% - 2rem, var(--rb-layout-article-max, 48rem));
204
+ margin-block: auto;
205
+ padding-block: 2rem;
206
+ }
207
+
208
+ .not-found__status {
209
+ margin: 0;
210
+ color: var(--rb-color-accent);
211
+ font-weight: 700;
212
+ }
@@ -1,18 +0,0 @@
1
- import path from "node:path";
2
- import { fileURLToPath } from "node:url";
3
- import { resolveConfigModule } from "@riebeckite/core";
4
- import * as rawConfigModule from "../riebeckite.config";
5
-
6
- const appRoot =
7
- process.env.RIEBECKITE_APP_ROOT ??
8
- fileURLToPath(new URL("../", import.meta.url));
9
- const resolvedConfig = resolveConfigModule(rawConfigModule);
10
-
11
- export const config = {
12
- ...resolvedConfig,
13
- buildDirectory: path.join(appRoot, ".riebeckite"),
14
- content: {
15
- ...resolvedConfig.content,
16
- directory: path.resolve(appRoot, resolvedConfig.content.directory),
17
- },
18
- };
@@ -1,10 +0,0 @@
1
- import path from "node:path";
2
- import { fileURLToPath } from "node:url";
3
- import { config } from "../config";
4
-
5
- const appRoot =
6
- process.env.RIEBECKITE_APP_ROOT ??
7
- fileURLToPath(new URL("../../", import.meta.url));
8
-
9
- export const CONTENT_DIR = path.resolve(appRoot, config.content.directory);
10
- export const ASSETS_ROOT = "public/";
@@ -1,12 +0,0 @@
1
- import { ContentManager } from "@riebeckite/core";
2
- import { config } from "./config";
3
- import { CONTENT_DIR } from "./constants/paths";
4
-
5
- export const content = new ContentManager(
6
- CONTENT_DIR,
7
- config.content.exclude,
8
- {
9
- config,
10
- plugins: config.plugins,
11
- },
12
- );