Skip to content

Commit 60dd90e

Browse files
authored
Updating depends (#344)
1 parent 0490379 commit 60dd90e

File tree

17 files changed

+3041
-4495
lines changed

17 files changed

+3041
-4495
lines changed

content/blog/browserpod-beta-announcement.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ At Leaning Technologies, we’ve been at the forefront of WebAssembly-based solu
3333

3434
BrowserPod represents for us an opportunity to package everything we’ve learned in our 10+ years of experience to solve the problem of sandboxed computing. We can take advantage of the capabilities of modern browsers to reduce boot latency, pressure on data centers and the operational costs of provisioning virtual machines for untrusted user payloads.
3535

36-
import BrowserPodDemo_Beta from "@/components/BrowserPodDemo_Beta.svelte";
36+
import BrowserPodDemo_Beta from "@leaningtech/astro-theme/components/blog/BrowserPodDemo_Beta.svelte";
3737

3838
<figure class="w-full">
3939
<div class="w-full relative">

packages/astro-theme/components/DirectoryListing.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import type { NavDirectory, NavEntry } from "../lib/nav";
3-
import { Markdown } from "@astropub/md";
43
54
interface Props {
65
dir: NavDirectory;
@@ -26,10 +25,10 @@ function getEntryDescription(entry: NavEntry): string | undefined {
2625
class="block group rounded-md border bg-stone-950 px-4 py-3 shadow border-stone-800 hover:border-stone-700 transition-colors"
2726
>
2827
<div class="text-lg font-semibold text-stone-300 group-hover:text-stone-50 transition-colors">
29-
<Markdown.Inline of={entry.title} />
28+
{entry.title}
3029
</div>
3130
<div class="text-ellipsis whitespace-nowrap overflow-hidden text-stone-400 text-sm">
32-
<Markdown.Inline of={getEntryDescription(entry) ?? ""} />
31+
{getEntryDescription(entry) ?? ""}
3332
</div>
3433
</a>
3534
</li>

sites/cheerpj/src/components/BrowserPodDemo_Beta.svelte renamed to packages/astro-theme/components/blog/BrowserPodDemo_Beta.svelte

File renamed without changes.

packages/astro-theme/content.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ export function defineCommonCollections() {
6363
title: z.string(),
6464
description: z.string().optional(),
6565
url: z.string(),
66-
heroImage: image().refine((img) => img.width / img.height == 1.5, {
67-
message: "Image must have 3:2 aspect ratio",
68-
}),
66+
heroImage: image(),
6967
tags: productTags.optional(),
7068
}),
7169
}),

packages/astro-theme/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import rehypeSlug from "rehype-slug";
1313
import rehypeExternalLinks from "rehype-external-links";
1414
import { type AstroIntegration } from "astro";
1515
import { addIntegration } from "astro-integration-kit";
16-
import { squooshImageService } from "astro/config";
1716
import { cpSync } from "fs";
1817
import { join as joinPath } from "path";
1918

@@ -144,9 +143,6 @@ export default function ThemeIntegration(
144143
inlineStylesheets: "always",
145144
},
146145
trailingSlash: "never",
147-
image: {
148-
service: squooshImageService(),
149-
},
150146
vite: {
151147
ssr: {
152148
noExternal: ["@leaningtech/global-navbar"],

packages/astro-theme/layouts/DocsArticle.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import ProductNav from "../components/nav/product/Nav.astro";
1414
import WasThisHelpful from "../components/WasThisHelpful.astro";
1515
import Callout from "../components/Callout.astro";
1616
import BentoGrid from "../components/patterns/BentoGrid.astro";
17-
import { Markdown } from "@astropub/md";
1817
import type { LanguageContent } from "../content";
1918
2019
interface Props {
@@ -108,17 +107,17 @@ function getEditHref(id: string): string {
108107
/>
109108
</h1>
110109
<p class="text-xl font-medium text-stone-500">
111-
{description && <Markdown.Inline of={description} />}
110+
{description && <span>{description}</span>}
112111
</p>
113112
</div>
114113
) : (
115114
<>
116115
<h1 class="mb-2 font-bold">
117-
<Markdown.Inline of={title} />
116+
<span>{title}</span>
118117
</h1>
119118
{description && (
120119
<p class="mt-0 mb-8 text-stone-500 text-xl">
121-
<Markdown.Inline of={description} />
120+
<span>{description}</span>
122121
</p>
123122
)}
124123
</>

packages/astro-theme/package.json

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"private": true,
44
"version": "0.1.0",
55
"description": "Astro theme",
6+
"type": "module",
67
"exports": {
78
".": "./index.ts",
89
"./consts": "./consts.ts",
@@ -25,35 +26,47 @@
2526
"./components/Callout.astro": "./components/Callout.astro",
2627
"./components/JNLPRunnerButton.astro": "./components/JNLPRunnerButton.astro",
2728
"./components/AppletRunnerButton.astro": "./components/AppletRunnerButton.astro",
29+
"./components/blog/BrowserPodDemo_Beta.svelte": "./components/blog/BrowserPodDemo_Beta.svelte",
2830
"./components/nav/global/GlobalNavbar.astro": "./components/nav/global/GlobalNavbar.astro"
2931
},
3032
"scripts": {},
3133
"peerDependencies": {
32-
"@astrojs/svelte": "^5.3.0",
34+
"@astrojs/svelte": "^7.2.5",
3335
"@astrojs/tailwind": "^5.1.0",
3436
"astro": "*",
35-
"svelte": "^5.38.6",
37+
"sharp": "^0.34.5",
38+
"svelte": "^4.0.0 || ^5.0.0",
3639
"tailwindcss": "^3.4.0"
3740
},
3841
"dependencies": {
39-
"@astrojs/mdx": "^2.2.4",
40-
"@astrojs/prefetch": "^0.4.1",
42+
"@astrojs/markdown-remark": "^6.3.10",
43+
"@astrojs/mdx": "^4.3.13",
4144
"@astrojs/rss": "^4.0.5",
4245
"@astrojs/sitemap": "^3.1.2",
43-
"@astropub/md": "^0.4.0",
46+
"@codemirror/lang-css": "^6.3.1",
47+
"@codemirror/lang-html": "^6.4.11",
48+
"@codemirror/lang-javascript": "^6.2.4",
49+
"@codemirror/lang-json": "^6.0.2",
50+
"@codemirror/view": "^6.39.2",
51+
"@iconify/svelte": "^5.1.0",
4452
"@leaningtech/global-navbar": "workspace:^",
53+
"@replit/codemirror-lang-svelte": "^6.0.0",
54+
"@sveltejs/vite-plugin-svelte": "^5.1.1",
4555
"@tailwindcss/typography": "^0.5.10",
46-
"astro-expressive-code": "^0.23.0",
56+
"astro-expressive-code": "^0.41.5",
4757
"astro-icon": "^1.1.5",
48-
"astro-integration-kit": "^0.14.0",
49-
"astro-public": "^0.1.0",
58+
"astro-integration-kit": "^0.19.1",
59+
"astro-public": "^0.1.1",
5060
"astro-robots-txt": "^1.0.0",
5161
"astro-social-share": "^1.2.0",
5262
"pagefind": "^1.0.4",
63+
"qrcode": "^1.5.4",
5364
"rehype-autolink-headings": "^7.0.0",
5465
"rehype-external-links": "^3.0.0",
5566
"rehype-slug": "^6.0.0",
5667
"remark-obsidian-callout": "^1.1.3",
68+
"sharp": "^0.34.5",
69+
"svelte-codemirror-editor": "^2.1.0",
5770
"unist-util-visit": "^5.0.0"
5871
},
5972
"devDependencies": {

packages/global-navbar/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"dist"
1515
],
1616
"peerDependencies": {
17-
"svelte": "^4.0.0"
17+
"svelte": "^4.0.0 || ^5.0.0"
1818
},
1919
"devDependencies": {
20-
"@sveltejs/vite-plugin-svelte": "^3.1.1",
20+
"@sveltejs/vite-plugin-svelte": "^3.1.2",
2121
"svelte": "^4.2.7",
2222
"vite": "^5.3.5"
2323
},

0 commit comments

Comments
 (0)