@lets-ship/site 0.0.0-stage → 1.0.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.
Files changed (337) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +59 -2
  3. package/bin/ship-site.js +5 -0
  4. package/dist/badge/badge.d.ts +14 -0
  5. package/dist/badge/badge.d.ts.map +1 -0
  6. package/dist/badge/badge.js +16 -0
  7. package/dist/badge/badge.js.map +1 -0
  8. package/dist/blog/arrow.d.ts +6 -0
  9. package/dist/blog/arrow.d.ts.map +1 -0
  10. package/dist/blog/arrow.js +6 -0
  11. package/dist/blog/arrow.js.map +1 -0
  12. package/dist/blog/article-view.d.ts +20 -0
  13. package/dist/blog/article-view.d.ts.map +1 -0
  14. package/dist/blog/article-view.js +71 -0
  15. package/dist/blog/article-view.js.map +1 -0
  16. package/dist/blog/article.d.ts +72 -0
  17. package/dist/blog/article.d.ts.map +1 -0
  18. package/dist/blog/article.js +90 -0
  19. package/dist/blog/article.js.map +1 -0
  20. package/dist/blog/featured.d.ts +18 -0
  21. package/dist/blog/featured.d.ts.map +1 -0
  22. package/dist/blog/featured.js +19 -0
  23. package/dist/blog/featured.js.map +1 -0
  24. package/dist/blog/frontmatter.d.ts +155 -0
  25. package/dist/blog/frontmatter.d.ts.map +1 -0
  26. package/dist/blog/frontmatter.js +96 -0
  27. package/dist/blog/frontmatter.js.map +1 -0
  28. package/dist/blog/index-view.d.ts +21 -0
  29. package/dist/blog/index-view.d.ts.map +1 -0
  30. package/dist/blog/index-view.js +70 -0
  31. package/dist/blog/index-view.js.map +1 -0
  32. package/dist/blog/inline-markdown.d.ts +15 -0
  33. package/dist/blog/inline-markdown.d.ts.map +1 -0
  34. package/dist/blog/inline-markdown.js +44 -0
  35. package/dist/blog/inline-markdown.js.map +1 -0
  36. package/dist/blog/post-card.d.ts +37 -0
  37. package/dist/blog/post-card.d.ts.map +1 -0
  38. package/dist/blog/post-card.js +68 -0
  39. package/dist/blog/post-card.js.map +1 -0
  40. package/dist/blog/site.d.ts +57 -0
  41. package/dist/blog/site.d.ts.map +1 -0
  42. package/dist/blog/site.js +76 -0
  43. package/dist/blog/site.js.map +1 -0
  44. package/dist/blog/toc.d.ts +32 -0
  45. package/dist/blog/toc.d.ts.map +1 -0
  46. package/dist/blog/toc.js +46 -0
  47. package/dist/blog/toc.js.map +1 -0
  48. package/dist/config/context.d.ts +16 -0
  49. package/dist/config/context.d.ts.map +1 -0
  50. package/dist/config/context.js +11 -0
  51. package/dist/config/context.js.map +1 -0
  52. package/dist/config/identity.d.ts +41 -0
  53. package/dist/config/identity.d.ts.map +1 -0
  54. package/dist/config/identity.js +28 -0
  55. package/dist/config/identity.js.map +1 -0
  56. package/dist/config/json-schema.d.ts +11 -0
  57. package/dist/config/json-schema.d.ts.map +1 -0
  58. package/dist/config/json-schema.js +14 -0
  59. package/dist/config/json-schema.js.map +1 -0
  60. package/dist/config/site-config.d.ts +145 -0
  61. package/dist/config/site-config.d.ts.map +1 -0
  62. package/dist/config/site-config.js +130 -0
  63. package/dist/config/site-config.js.map +1 -0
  64. package/dist/docs/page-view.d.ts +21 -0
  65. package/dist/docs/page-view.d.ts.map +1 -0
  66. package/dist/docs/page-view.js +27 -0
  67. package/dist/docs/page-view.js.map +1 -0
  68. package/dist/feeds/feeds.d.ts +33 -0
  69. package/dist/feeds/feeds.d.ts.map +1 -0
  70. package/dist/feeds/feeds.js +122 -0
  71. package/dist/feeds/feeds.js.map +1 -0
  72. package/dist/format/dates.d.ts +5 -0
  73. package/dist/format/dates.d.ts.map +1 -0
  74. package/dist/format/dates.js +17 -0
  75. package/dist/format/dates.js.map +1 -0
  76. package/dist/format/node-text.d.ts +7 -0
  77. package/dist/format/node-text.d.ts.map +1 -0
  78. package/dist/format/node-text.js +15 -0
  79. package/dist/format/node-text.js.map +1 -0
  80. package/dist/format/toc-depth.d.ts +11 -0
  81. package/dist/format/toc-depth.d.ts.map +1 -0
  82. package/dist/format/toc-depth.js +14 -0
  83. package/dist/format/toc-depth.js.map +1 -0
  84. package/dist/i18n/fumadocs-keys.d.ts +13 -0
  85. package/dist/i18n/fumadocs-keys.d.ts.map +1 -0
  86. package/dist/i18n/fumadocs-keys.js +136 -0
  87. package/dist/i18n/fumadocs-keys.js.map +1 -0
  88. package/dist/i18n/strings.d.ts +19 -0
  89. package/dist/i18n/strings.d.ts.map +1 -0
  90. package/dist/i18n/strings.js +59 -0
  91. package/dist/i18n/strings.js.map +1 -0
  92. package/dist/i18n/tables/de.d.ts +3 -0
  93. package/dist/i18n/tables/de.d.ts.map +1 -0
  94. package/dist/i18n/tables/de.js +82 -0
  95. package/dist/i18n/tables/de.js.map +1 -0
  96. package/dist/i18n/tables/en.d.ts +3 -0
  97. package/dist/i18n/tables/en.d.ts.map +1 -0
  98. package/dist/i18n/tables/en.js +25 -0
  99. package/dist/i18n/tables/en.js.map +1 -0
  100. package/dist/i18n/tables/es.d.ts +3 -0
  101. package/dist/i18n/tables/es.d.ts.map +1 -0
  102. package/dist/i18n/tables/es.js +82 -0
  103. package/dist/i18n/tables/es.js.map +1 -0
  104. package/dist/i18n/tables/fr.d.ts +3 -0
  105. package/dist/i18n/tables/fr.d.ts.map +1 -0
  106. package/dist/i18n/tables/fr.js +82 -0
  107. package/dist/i18n/tables/fr.js.map +1 -0
  108. package/dist/i18n/tables/nl.d.ts +3 -0
  109. package/dist/i18n/tables/nl.d.ts.map +1 -0
  110. package/dist/i18n/tables/nl.js +82 -0
  111. package/dist/i18n/tables/nl.js.map +1 -0
  112. package/dist/i18n/tables/pt.d.ts +3 -0
  113. package/dist/i18n/tables/pt.d.ts.map +1 -0
  114. package/dist/i18n/tables/pt.js +82 -0
  115. package/dist/i18n/tables/pt.js.map +1 -0
  116. package/dist/i18n/tables/tr.d.ts +3 -0
  117. package/dist/i18n/tables/tr.d.ts.map +1 -0
  118. package/dist/i18n/tables/tr.js +82 -0
  119. package/dist/i18n/tables/tr.js.map +1 -0
  120. package/dist/i18n/types.d.ts +39 -0
  121. package/dist/i18n/types.d.ts.map +1 -0
  122. package/dist/i18n/types.js +2 -0
  123. package/dist/i18n/types.js.map +1 -0
  124. package/dist/layout/analytics.d.ts +9 -0
  125. package/dist/layout/analytics.d.ts.map +1 -0
  126. package/dist/layout/analytics.js +18 -0
  127. package/dist/layout/analytics.js.map +1 -0
  128. package/dist/layout/brand-files.d.ts +15 -0
  129. package/dist/layout/brand-files.d.ts.map +1 -0
  130. package/dist/layout/brand-files.js +15 -0
  131. package/dist/layout/brand-files.js.map +1 -0
  132. package/dist/layout/footer.d.ts +10 -0
  133. package/dist/layout/footer.d.ts.map +1 -0
  134. package/dist/layout/footer.js +21 -0
  135. package/dist/layout/footer.js.map +1 -0
  136. package/dist/layout/not-found.d.ts +7 -0
  137. package/dist/layout/not-found.d.ts.map +1 -0
  138. package/dist/layout/not-found.js +8 -0
  139. package/dist/layout/not-found.js.map +1 -0
  140. package/dist/layout/provider.d.ts +17 -0
  141. package/dist/layout/provider.d.ts.map +1 -0
  142. package/dist/layout/provider.js +14 -0
  143. package/dist/layout/provider.js.map +1 -0
  144. package/dist/layout/root.d.ts +17 -0
  145. package/dist/layout/root.d.ts.map +1 -0
  146. package/dist/layout/root.js +47 -0
  147. package/dist/layout/root.js.map +1 -0
  148. package/dist/lint/source.d.ts +19 -0
  149. package/dist/lint/source.d.ts.map +1 -0
  150. package/dist/lint/source.js +43 -0
  151. package/dist/lint/source.js.map +1 -0
  152. package/dist/llms/llms.d.ts +22 -0
  153. package/dist/llms/llms.d.ts.map +1 -0
  154. package/dist/llms/llms.js +24 -0
  155. package/dist/llms/llms.js.map +1 -0
  156. package/dist/markdown/article.d.ts +44 -0
  157. package/dist/markdown/article.d.ts.map +1 -0
  158. package/dist/markdown/article.js +108 -0
  159. package/dist/markdown/article.js.map +1 -0
  160. package/dist/markdown/inline.d.ts +40 -0
  161. package/dist/markdown/inline.d.ts.map +1 -0
  162. package/dist/markdown/inline.js +74 -0
  163. package/dist/markdown/inline.js.map +1 -0
  164. package/dist/markdown/page.d.ts +13 -0
  165. package/dist/markdown/page.d.ts.map +1 -0
  166. package/dist/markdown/page.js +21 -0
  167. package/dist/markdown/page.js.map +1 -0
  168. package/dist/marker.d.ts +37 -0
  169. package/dist/marker.d.ts.map +1 -0
  170. package/dist/marker.js +36 -0
  171. package/dist/marker.js.map +1 -0
  172. package/dist/mdx/allow-list.d.ts +23 -0
  173. package/dist/mdx/allow-list.d.ts.map +1 -0
  174. package/dist/mdx/allow-list.js +79 -0
  175. package/dist/mdx/allow-list.js.map +1 -0
  176. package/dist/mdx/components.d.ts +8 -0
  177. package/dist/mdx/components.d.ts.map +1 -0
  178. package/dist/mdx/components.js +68 -0
  179. package/dist/mdx/components.js.map +1 -0
  180. package/dist/mdx/remark-alerts.d.ts +4 -0
  181. package/dist/mdx/remark-alerts.d.ts.map +1 -0
  182. package/dist/mdx/remark-alerts.js +39 -0
  183. package/dist/mdx/remark-alerts.js.map +1 -0
  184. package/dist/next.d.ts +24 -0
  185. package/dist/next.d.ts.map +1 -0
  186. package/dist/next.js +55 -0
  187. package/dist/next.js.map +1 -0
  188. package/dist/node/bin.d.ts +3 -0
  189. package/dist/node/bin.d.ts.map +1 -0
  190. package/dist/node/bin.js +13 -0
  191. package/dist/node/bin.js.map +1 -0
  192. package/dist/node/brand.d.ts +13 -0
  193. package/dist/node/brand.d.ts.map +1 -0
  194. package/dist/node/brand.js +48 -0
  195. package/dist/node/brand.js.map +1 -0
  196. package/dist/node/build.d.ts +31 -0
  197. package/dist/node/build.d.ts.map +1 -0
  198. package/dist/node/build.js +151 -0
  199. package/dist/node/build.js.map +1 -0
  200. package/dist/node/cli.d.ts +11 -0
  201. package/dist/node/cli.d.ts.map +1 -0
  202. package/dist/node/cli.js +80 -0
  203. package/dist/node/cli.js.map +1 -0
  204. package/dist/node/config-file.d.ts +5 -0
  205. package/dist/node/config-file.d.ts.map +1 -0
  206. package/dist/node/config-file.js +31 -0
  207. package/dist/node/config-file.js.map +1 -0
  208. package/dist/node/content.d.ts +6 -0
  209. package/dist/node/content.d.ts.map +1 -0
  210. package/dist/node/content.js +36 -0
  211. package/dist/node/content.js.map +1 -0
  212. package/dist/node/errors.d.ts +26 -0
  213. package/dist/node/errors.d.ts.map +1 -0
  214. package/dist/node/errors.js +34 -0
  215. package/dist/node/errors.js.map +1 -0
  216. package/dist/node/files.d.ts +12 -0
  217. package/dist/node/files.d.ts.map +1 -0
  218. package/dist/node/files.js +43 -0
  219. package/dist/node/files.js.map +1 -0
  220. package/dist/node/og.d.ts +17 -0
  221. package/dist/node/og.d.ts.map +1 -0
  222. package/dist/node/og.js +43 -0
  223. package/dist/node/og.js.map +1 -0
  224. package/dist/node/project-root.d.ts +12 -0
  225. package/dist/node/project-root.d.ts.map +1 -0
  226. package/dist/node/project-root.js +27 -0
  227. package/dist/node/project-root.js.map +1 -0
  228. package/dist/node/serve.d.ts +32 -0
  229. package/dist/node/serve.d.ts.map +1 -0
  230. package/dist/node/serve.js +133 -0
  231. package/dist/node/serve.js.map +1 -0
  232. package/dist/node/theme.d.ts +15 -0
  233. package/dist/node/theme.d.ts.map +1 -0
  234. package/dist/node/theme.js +46 -0
  235. package/dist/node/theme.js.map +1 -0
  236. package/dist/search/dialog.d.ts +14 -0
  237. package/dist/search/dialog.d.ts.map +1 -0
  238. package/dist/search/dialog.js +17 -0
  239. package/dist/search/dialog.js.map +1 -0
  240. package/dist/search/language.d.ts +8 -0
  241. package/dist/search/language.d.ts.map +1 -0
  242. package/dist/search/language.js +30 -0
  243. package/dist/search/language.js.map +1 -0
  244. package/dist/search/route.d.ts +9 -0
  245. package/dist/search/route.d.ts.map +1 -0
  246. package/dist/search/route.js +11 -0
  247. package/dist/search/route.js.map +1 -0
  248. package/dist/seo/article.d.ts +84 -0
  249. package/dist/seo/article.d.ts.map +1 -0
  250. package/dist/seo/article.js +117 -0
  251. package/dist/seo/article.js.map +1 -0
  252. package/dist/seo/collection.d.ts +19 -0
  253. package/dist/seo/collection.d.ts.map +1 -0
  254. package/dist/seo/collection.js +30 -0
  255. package/dist/seo/collection.js.map +1 -0
  256. package/dist/seo/dataset.d.ts +31 -0
  257. package/dist/seo/dataset.d.ts.map +1 -0
  258. package/dist/seo/dataset.js +33 -0
  259. package/dist/seo/dataset.js.map +1 -0
  260. package/dist/seo/json-ld.d.ts +6 -0
  261. package/dist/seo/json-ld.d.ts.map +1 -0
  262. package/dist/seo/json-ld.js +8 -0
  263. package/dist/seo/json-ld.js.map +1 -0
  264. package/dist/seo/script-json.d.ts +8 -0
  265. package/dist/seo/script-json.d.ts.map +1 -0
  266. package/dist/seo/script-json.js +12 -0
  267. package/dist/seo/script-json.js.map +1 -0
  268. package/dist/seo/title.d.ts +11 -0
  269. package/dist/seo/title.d.ts.map +1 -0
  270. package/dist/seo/title.js +11 -0
  271. package/dist/seo/title.js.map +1 -0
  272. package/dist/seo/x-handle.d.ts +9 -0
  273. package/dist/seo/x-handle.d.ts.map +1 -0
  274. package/dist/seo/x-handle.js +21 -0
  275. package/dist/seo/x-handle.js.map +1 -0
  276. package/dist/site/app.d.ts +56 -0
  277. package/dist/site/app.d.ts.map +1 -0
  278. package/dist/site/app.js +79 -0
  279. package/dist/site/app.js.map +1 -0
  280. package/dist/site/features.d.ts +26 -0
  281. package/dist/site/features.d.ts.map +1 -0
  282. package/dist/site/features.js +46 -0
  283. package/dist/site/features.js.map +1 -0
  284. package/dist/site/metadata.d.ts +6 -0
  285. package/dist/site/metadata.d.ts.map +1 -0
  286. package/dist/site/metadata.js +78 -0
  287. package/dist/site/metadata.js.map +1 -0
  288. package/dist/site/outputs.d.ts +24 -0
  289. package/dist/site/outputs.d.ts.map +1 -0
  290. package/dist/site/outputs.js +113 -0
  291. package/dist/site/outputs.js.map +1 -0
  292. package/dist/site/posts.d.ts +6 -0
  293. package/dist/site/posts.d.ts.map +1 -0
  294. package/dist/site/posts.js +9 -0
  295. package/dist/site/posts.js.map +1 -0
  296. package/dist/site/routes.d.ts +43 -0
  297. package/dist/site/routes.d.ts.map +1 -0
  298. package/dist/site/routes.js +94 -0
  299. package/dist/site/routes.js.map +1 -0
  300. package/dist/site/site-page.d.ts +11 -0
  301. package/dist/site/site-page.d.ts.map +1 -0
  302. package/dist/site/site-page.js +70 -0
  303. package/dist/site/site-page.js.map +1 -0
  304. package/dist/site/sources.d.ts +58 -0
  305. package/dist/site/sources.d.ts.map +1 -0
  306. package/dist/site/sources.js +2 -0
  307. package/dist/site/sources.js.map +1 -0
  308. package/dist/site/url-style.d.ts +21 -0
  309. package/dist/site/url-style.d.ts.map +1 -0
  310. package/dist/site/url-style.js +18 -0
  311. package/dist/site/url-style.js.map +1 -0
  312. package/dist/website/blocks/commerce.d.ts +41 -0
  313. package/dist/website/blocks/commerce.d.ts.map +1 -0
  314. package/dist/website/blocks/commerce.js +26 -0
  315. package/dist/website/blocks/commerce.js.map +1 -0
  316. package/dist/website/blocks/content.d.ts +41 -0
  317. package/dist/website/blocks/content.d.ts.map +1 -0
  318. package/dist/website/blocks/content.js +25 -0
  319. package/dist/website/blocks/content.js.map +1 -0
  320. package/dist/website/blocks/marketing.d.ts +32 -0
  321. package/dist/website/blocks/marketing.d.ts.map +1 -0
  322. package/dist/website/blocks/marketing.js +23 -0
  323. package/dist/website/blocks/marketing.js.map +1 -0
  324. package/dist/website/blocks/parts.d.ts +26 -0
  325. package/dist/website/blocks/parts.d.ts.map +1 -0
  326. package/dist/website/blocks/parts.js +13 -0
  327. package/dist/website/blocks/parts.js.map +1 -0
  328. package/dist/website/page-view.d.ts +12 -0
  329. package/dist/website/page-view.d.ts.map +1 -0
  330. package/dist/website/page-view.js +10 -0
  331. package/dist/website/page-view.js.map +1 -0
  332. package/dist/zod.d.ts +8 -0
  333. package/dist/zod.d.ts.map +1 -0
  334. package/dist/zod.js +8 -0
  335. package/dist/zod.js.map +1 -0
  336. package/package.json +187 -3
  337. package/styles.css +326 -0
package/package.json CHANGED
@@ -1,6 +1,190 @@
1
1
  {
2
2
  "name": "@lets-ship/site",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "The white-label site engine of SHIP Sites: a website, blog and docs on Next.js and fumadocs, themed entirely by a brand DNA.",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/letsship/ship-platform.git",
10
+ "directory": "packages/site"
11
+ },
12
+ "homepage": "https://letsship.ai/docs/sites",
13
+ "keywords": [
14
+ "static-site",
15
+ "nextjs",
16
+ "fumadocs",
17
+ "white-label",
18
+ "brand",
19
+ "docs",
20
+ "blog"
21
+ ],
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "sideEffects": [
27
+ "*.css"
28
+ ],
29
+ "exports": {
30
+ "./marker": {
31
+ "types": "./dist/marker.d.ts",
32
+ "import": "./dist/marker.js"
33
+ },
34
+ "./config": {
35
+ "types": "./dist/config/site-config.d.ts",
36
+ "import": "./dist/config/site-config.js"
37
+ },
38
+ "./config/json-schema": {
39
+ "types": "./dist/config/json-schema.d.ts",
40
+ "import": "./dist/config/json-schema.js"
41
+ },
42
+ "./identity": {
43
+ "types": "./dist/config/identity.d.ts",
44
+ "import": "./dist/config/identity.js"
45
+ },
46
+ "./zod": {
47
+ "types": "./dist/zod.d.ts",
48
+ "import": "./dist/zod.js"
49
+ },
50
+ "./blog/*": {
51
+ "types": "./dist/blog/*.d.ts",
52
+ "import": "./dist/blog/*.js"
53
+ },
54
+ "./seo/*": {
55
+ "types": "./dist/seo/*.d.ts",
56
+ "import": "./dist/seo/*.js"
57
+ },
58
+ "./markdown/*": {
59
+ "types": "./dist/markdown/*.d.ts",
60
+ "import": "./dist/markdown/*.js"
61
+ },
62
+ "./format/*": {
63
+ "types": "./dist/format/*.d.ts",
64
+ "import": "./dist/format/*.js"
65
+ },
66
+ "./i18n": {
67
+ "types": "./dist/i18n/strings.d.ts",
68
+ "import": "./dist/i18n/strings.js"
69
+ },
70
+ "./styles.css": "./styles.css",
71
+ "./feeds": {
72
+ "types": "./dist/feeds/feeds.d.ts",
73
+ "import": "./dist/feeds/feeds.js"
74
+ },
75
+ "./badge": {
76
+ "types": "./dist/badge/badge.d.ts",
77
+ "import": "./dist/badge/badge.js"
78
+ },
79
+ "./lint": {
80
+ "types": "./dist/lint/source.d.ts",
81
+ "import": "./dist/lint/source.js"
82
+ },
83
+ "./llms": {
84
+ "types": "./dist/llms/llms.d.ts",
85
+ "import": "./dist/llms/llms.js"
86
+ },
87
+ "./mdx/*": {
88
+ "types": "./dist/mdx/*.d.ts",
89
+ "import": "./dist/mdx/*.js"
90
+ },
91
+ "./context": {
92
+ "types": "./dist/config/context.d.ts",
93
+ "import": "./dist/config/context.js"
94
+ },
95
+ "./layout/*": {
96
+ "types": "./dist/layout/*.d.ts",
97
+ "import": "./dist/layout/*.js"
98
+ },
99
+ "./search/*": {
100
+ "types": "./dist/search/*.d.ts",
101
+ "import": "./dist/search/*.js"
102
+ },
103
+ "./next": {
104
+ "types": "./dist/next.d.ts",
105
+ "import": "./dist/next.js"
106
+ },
107
+ "./og": {
108
+ "types": "./dist/node/og.d.ts",
109
+ "import": "./dist/node/og.js"
110
+ },
111
+ "./layout/brand-files": {
112
+ "types": "./dist/layout/brand-files.d.ts",
113
+ "import": "./dist/layout/brand-files.js"
114
+ },
115
+ "./package.json": "./package.json",
116
+ "./site/*": {
117
+ "types": "./dist/site/*.d.ts",
118
+ "import": "./dist/site/*.js"
119
+ },
120
+ "./website/*": {
121
+ "types": "./dist/website/*.d.ts",
122
+ "import": "./dist/website/*.js"
123
+ },
124
+ "./website/blocks/*": {
125
+ "types": "./dist/website/blocks/*.d.ts",
126
+ "import": "./dist/website/blocks/*.js"
127
+ },
128
+ "./docs/*": {
129
+ "types": "./dist/docs/*.d.ts",
130
+ "import": "./dist/docs/*.js"
131
+ }
132
+ },
133
+ "files": [
134
+ "bin",
135
+ "dist",
136
+ "styles.css",
137
+ "README.md",
138
+ "LICENSE"
139
+ ],
140
+ "engines": {
141
+ "node": ">=20.12"
142
+ },
143
+ "dependencies": {
144
+ "jiti": "^2.7.0",
145
+ "remark": "^15.0.1",
146
+ "remark-mdx": "^3.1.1",
147
+ "unist-util-visit": "^5.1.0",
148
+ "zbsearch": "^4.0.1",
149
+ "zod": "^4.4.3",
150
+ "@lets-ship/brand-dna": "^1.0.0"
151
+ },
152
+ "peerDependencies": {
153
+ "fumadocs-core": "16.17.5",
154
+ "fumadocs-ui": "npm:@fumadocs/base-ui@16.17.5",
155
+ "next": "^16.2.0",
156
+ "react": "^19.2.0",
157
+ "react-dom": "^19.2.0"
158
+ },
159
+ "devDependencies": {
160
+ "@playwright/test": "^1.49.1",
161
+ "@types/mdast": "^4.0.4",
162
+ "@types/mdx": "^2.0.14",
163
+ "@types/node": "^22.10.0",
164
+ "@types/react": "^19.0.0",
165
+ "@types/react-dom": "^19.0.0",
166
+ "ajv": "^8.18.0",
167
+ "ajv-formats": "^3.0.1",
168
+ "fast-xml-parser": "^5.7.3",
169
+ "fumadocs-core": "16.17.5",
170
+ "fumadocs-ui": "npm:@fumadocs/base-ui@16.17.5",
171
+ "next": "^16.2.12",
172
+ "react": "^19.2.6",
173
+ "react-dom": "^19.2.6",
174
+ "typescript": "^5.7.3",
175
+ "vitest": "^3.0.4",
176
+ "@ship-platform/test-fixtures": "0.0.1"
177
+ },
178
+ "bin": {
179
+ "ship-site": "./bin/ship-site.js"
180
+ },
181
+ "scripts": {
182
+ "build": "tsc",
183
+ "test": "vitest run",
184
+ "test:watch": "vitest",
185
+ "fixtures": "node scripts/fixture-sites.mjs",
186
+ "e2e": "playwright test",
187
+ "typecheck": "tsc --noEmit",
188
+ "clean": "rm -rf dist .turbo"
189
+ }
6
190
  }
package/styles.css ADDED
@@ -0,0 +1,326 @@
1
+ /*
2
+ * @lets-ship/site: the engine's own classes and variables.
3
+ *
4
+ * Every value here comes from the theme contract (site-theme.css, compiled from the brand DNA):
5
+ * the --color-fd-* roles, the --dna-* tokens and the --font-* stacks. Import it after
6
+ * site-theme.css. The engine's components read only the --site-* variables and the .site-*
7
+ * classes below, so a site that wants another look sets those, and never reaches into a
8
+ * component.
9
+ */
10
+
11
+ /* The components use Tailwind utilities; this makes the consumer's Tailwind see them. */
12
+ @source "./dist";
13
+
14
+ :root {
15
+ --site-fg: var(--color-fd-foreground);
16
+ --site-fg-muted: var(--color-fd-muted-foreground);
17
+ --site-border: var(--color-fd-border);
18
+ --site-surface: var(--color-fd-card);
19
+ /* A fill or a border in the brand colour: a card's hover edge, the active chip. */
20
+ --site-brand: var(--color-fd-primary);
21
+ /* The brand colour on a run of text, such as an emphasised word in a title. */
22
+ --site-brand-text: var(--color-fd-primary);
23
+ /* A call to action in text form, and the colour it turns on hover. */
24
+ --site-cta: var(--color-fd-primary);
25
+ --site-link: var(--color-fd-primary);
26
+ /* The height of a sticky site header, which the contents rail and anchors clear. No engine
27
+ header is sticky yet, so nothing needs clearing. */
28
+ --site-header-height: 0px;
29
+ --site-container-width: var(--fd-layout-width);
30
+ }
31
+
32
+ /* Inline padding only: this rule is unlayered, so a block padding here would beat a py-* utility
33
+ on the same element. */
34
+ .site-container {
35
+ max-width: var(--site-container-width);
36
+ margin: 0 auto;
37
+ padding-inline: 32px;
38
+ }
39
+
40
+ .site-page-top {
41
+ padding-top: 56px;
42
+ }
43
+
44
+ @media (max-width: 900px) {
45
+ .site-page-top {
46
+ padding-top: 44px;
47
+ }
48
+ }
49
+
50
+ @media (max-width: 760px) {
51
+ .site-container {
52
+ padding-inline: 20px;
53
+ }
54
+ }
55
+
56
+ @media (max-width: 560px) {
57
+ .site-page-top {
58
+ padding-top: 36px;
59
+ }
60
+ }
61
+
62
+ /* A section label: small capitals with a bar in the brand colour before it. */
63
+ .site-eyebrow {
64
+ display: inline-flex;
65
+ align-items: center;
66
+ gap: 8px;
67
+ margin-bottom: 20px;
68
+ font-family: var(--font-sans);
69
+ font-weight: 600;
70
+ font-size: 11px;
71
+ letter-spacing: 0.16em;
72
+ text-transform: uppercase;
73
+ color: var(--site-fg-muted);
74
+ scroll-margin-top: calc(var(--site-header-height) + 1.5rem);
75
+ }
76
+
77
+ .site-eyebrow-dot {
78
+ flex: none;
79
+ width: 2px;
80
+ height: 1em;
81
+ background: var(--site-brand);
82
+ }
83
+
84
+ /* Category tabs: outlined by default, filled in the brand colour when selected. */
85
+ .site-chip {
86
+ padding: 10px 16px;
87
+ border: var(--dna-border-width-thin) solid var(--site-border);
88
+ border-radius: var(--dna-radius-md);
89
+ font-family: var(--font-sans);
90
+ font-size: var(--dna-type-body-sm-size);
91
+ line-height: 1;
92
+ color: var(--site-fg-muted);
93
+ text-decoration: none;
94
+ transition:
95
+ background 150ms ease,
96
+ border-color 150ms ease,
97
+ color 150ms ease;
98
+ }
99
+
100
+ .site-chip:hover {
101
+ color: var(--site-fg);
102
+ }
103
+
104
+ .site-chip-active,
105
+ .site-chip-active:hover {
106
+ background: var(--color-fd-primary);
107
+ border-color: var(--color-fd-primary);
108
+ color: var(--color-fd-primary-foreground);
109
+ }
110
+
111
+ .site-arrow {
112
+ flex-shrink: 0;
113
+ }
114
+
115
+ .site-footer {
116
+ border-top: var(--dna-border-width-thin) solid var(--site-border);
117
+ font-family: var(--font-sans);
118
+ font-size: var(--dna-type-body-sm-size);
119
+ }
120
+
121
+ .site-footer-title {
122
+ font-weight: 600;
123
+ color: var(--site-fg);
124
+ }
125
+
126
+ .site-footer-link {
127
+ color: var(--site-fg-muted);
128
+ text-decoration: none;
129
+ }
130
+
131
+ .site-footer-link:hover {
132
+ color: var(--site-fg);
133
+ }
134
+
135
+ /* The "Built with" badge: footer-sized text in the site's own muted colour (D42). */
136
+ .site-badge {
137
+ font-family: var(--font-sans);
138
+ font-size: var(--dna-type-caption-size);
139
+ color: var(--site-fg-muted);
140
+ text-decoration: none;
141
+ }
142
+
143
+ .site-badge:hover {
144
+ color: var(--site-fg);
145
+ text-decoration: underline;
146
+ }
147
+
148
+ /* Website blocks (D21): bands of content, each from the DNA's type scale and component tokens. */
149
+ .site-block {
150
+ padding-block: 64px;
151
+ }
152
+
153
+ .site-block-title {
154
+ margin-bottom: 12px;
155
+ font-family: var(--dna-type-h2-family);
156
+ font-size: var(--dna-type-h2-size);
157
+ font-weight: var(--dna-type-h2-weight);
158
+ line-height: var(--dna-type-h2-line-height);
159
+ color: var(--site-fg);
160
+ }
161
+
162
+ .site-block-intro {
163
+ max-width: 42rem;
164
+ margin-bottom: 32px;
165
+ font-size: var(--dna-type-body-size);
166
+ line-height: var(--dna-type-body-line-height);
167
+ color: var(--site-fg-muted);
168
+ }
169
+
170
+ .site-hero {
171
+ padding-block: 96px;
172
+ }
173
+
174
+ .site-hero-title {
175
+ font-family: var(--dna-type-display-family);
176
+ font-size: clamp(2.25rem, 5vw, var(--dna-type-display-size));
177
+ font-weight: var(--dna-type-display-weight);
178
+ line-height: var(--dna-type-display-line-height);
179
+ letter-spacing: var(--dna-type-display-tracking);
180
+ color: var(--site-fg);
181
+ }
182
+
183
+ .site-hero-subtitle {
184
+ margin-top: 16px;
185
+ font-size: var(--dna-type-h4-size);
186
+ line-height: var(--dna-type-body-line-height);
187
+ color: var(--site-fg-muted);
188
+ }
189
+
190
+ .site-button {
191
+ display: inline-flex;
192
+ align-items: center;
193
+ padding: var(--dna-component-button-primary-padding-y) var(--dna-component-button-primary-padding-x);
194
+ border: var(--dna-border-width-thin) solid var(--dna-component-button-primary-border);
195
+ border-radius: var(--dna-component-button-primary-radius);
196
+ background: var(--dna-component-button-primary-bg);
197
+ color: var(--dna-component-button-primary-fg);
198
+ font-family: var(--font-sans);
199
+ font-weight: 600;
200
+ text-decoration: none;
201
+ }
202
+
203
+ .site-button-secondary {
204
+ background: transparent;
205
+ color: var(--site-fg);
206
+ border-color: var(--site-border);
207
+ }
208
+
209
+ .site-card {
210
+ padding: var(--dna-component-card-padding-y) var(--dna-component-card-padding-x);
211
+ border: var(--dna-border-width-thin) solid var(--dna-component-card-border);
212
+ border-radius: var(--dna-component-card-radius);
213
+ background: var(--dna-component-card-bg);
214
+ color: var(--dna-component-card-fg);
215
+ }
216
+
217
+ .site-card-highlight {
218
+ border-color: var(--site-brand);
219
+ border-width: var(--dna-border-width-thick);
220
+ }
221
+
222
+ .site-card-title {
223
+ margin-bottom: 8px;
224
+ font-family: var(--dna-type-h4-family);
225
+ font-size: var(--dna-type-h4-size);
226
+ font-weight: var(--dna-type-h4-weight);
227
+ line-height: var(--dna-type-h4-line-height);
228
+ }
229
+
230
+ .site-card-text {
231
+ font-size: var(--dna-type-body-sm-size);
232
+ line-height: var(--dna-type-body-sm-line-height);
233
+ color: var(--site-fg-muted);
234
+ }
235
+
236
+ .site-cta {
237
+ border-color: var(--site-brand);
238
+ }
239
+
240
+ .site-logo {
241
+ height: 32px;
242
+ width: auto;
243
+ }
244
+
245
+ .site-avatar {
246
+ width: 64px;
247
+ height: 64px;
248
+ margin-bottom: 12px;
249
+ border-radius: var(--dna-radius-full);
250
+ object-fit: cover;
251
+ }
252
+
253
+ .site-stat-value {
254
+ font-family: var(--dna-type-h2-family);
255
+ font-size: var(--dna-type-h2-size);
256
+ font-weight: var(--dna-type-h2-weight);
257
+ color: var(--site-fg);
258
+ }
259
+
260
+ .site-stat-label,
261
+ .site-step-number {
262
+ font-family: var(--font-mono);
263
+ font-size: var(--dna-type-caption-size);
264
+ color: var(--site-fg-muted);
265
+ }
266
+
267
+ .site-step-number {
268
+ display: block;
269
+ margin-bottom: 8px;
270
+ color: var(--site-brand-text);
271
+ }
272
+
273
+ .site-price {
274
+ margin-block: 8px;
275
+ font-family: var(--dna-type-h3-family);
276
+ font-size: var(--dna-type-h3-size);
277
+ font-weight: var(--dna-type-h3-weight);
278
+ color: var(--site-fg);
279
+ }
280
+
281
+ .site-quote {
282
+ margin-bottom: 12px;
283
+ font-size: var(--dna-type-body-size);
284
+ line-height: var(--dna-type-body-line-height);
285
+ color: var(--site-fg);
286
+ }
287
+
288
+ .site-text-link {
289
+ color: var(--site-link);
290
+ }
291
+
292
+ /* Markdown between the blocks of a website page sits in the container, like the blocks' content. */
293
+ .site-website > :not(.site-block) {
294
+ max-width: var(--site-container-width);
295
+ margin-inline: auto;
296
+ padding-inline: 32px;
297
+ color: var(--site-fg);
298
+ line-height: var(--dna-type-body-line-height);
299
+ }
300
+
301
+ @media (max-width: 760px) {
302
+ .site-website > :not(.site-block) {
303
+ padding-inline: 20px;
304
+ }
305
+ }
306
+
307
+ /* Article prose: the DNA's body face and leading, display headings, links in the brand colour. */
308
+ .site-blog .prose {
309
+ font-family: var(--dna-type-body-family);
310
+ line-height: var(--dna-type-body-line-height);
311
+ }
312
+
313
+ .site-blog .prose :is(h1, h2, h3, h4) {
314
+ font-family: var(--font-display);
315
+ scroll-margin-top: calc(var(--site-header-height) + 1.5rem);
316
+ }
317
+
318
+ .site-blog .prose :is(p, li, blockquote, td, th) a {
319
+ color: var(--site-link);
320
+ }
321
+
322
+ /* Table cells hold labels and figures, not prose, so they keep to one line and the scroller
323
+ fumadocs puts around each table carries the overflow. */
324
+ .site-blog .prose :is(th, td) {
325
+ white-space: nowrap;
326
+ }