Skip to content

Commit d1f9311

Browse files
committed
ignore: share page polish
1 parent 1c58023 commit d1f9311

File tree

8 files changed

+367
-586
lines changed

8 files changed

+367
-586
lines changed

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"sharp": "0.32.5",
2828
"shiki": "3.4.2",
2929
"solid-js": "1.9.7",
30-
"toolbeam-docs-theme": "0.2.4"
30+
"toolbeam-docs-theme": "0.3.0"
3131
},
3232
"devDependencies": {
3333
"@types/node": "catalog:",

packages/web/src/components/CodeBlock.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ function CodeBlock(props: CodeBlockProps) {
1818
const [local, rest] = splitProps(props, ["code", "lang", "onRendered"])
1919
let containerRef!: HTMLDivElement
2020

21-
const [html] = createResource(async () => {
22-
return (await codeToHtml(local.code, {
23-
lang: local.lang || "text",
21+
const [html] = createResource(() => [local.code, local.lang], async ([code, lang]) => {
22+
return (await codeToHtml(code || "", {
23+
lang: lang || "text",
2424
themes: {
2525
light: "github-light",
2626
dark: "github-dark",

packages/web/src/components/Header.astro

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,3 @@ const links = config.social || [];
5454
}
5555
}
5656
</style>
57-
<style is:global>
58-
body > div.page > header {
59-
border-color: var(--sl-color-divider);
60-
}
61-
</style>
62-

0 commit comments

Comments
 (0)