Skip to content

Commit c287963

Browse files
authored
Merge branch 'main' into feat/example-sveltekit
2 parents 7162ce7 + 8d5fffe commit c287963

File tree

166 files changed

+6413
-2426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+6413
-2426
lines changed

404/index.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "Page not found"
3+
description: "404, can't find the page you're looking for."
4+
layout: "raw.tsx"
5+
---
6+
7+
<comp.FourOhFour />

_components/Admonition.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
type AdmonitionType =
2+
| "note"
3+
| "caution"
4+
| "tip";
5+
6+
export default function Admonition(
7+
props: { type: AdmonitionType; children: any },
8+
) {
9+
return (
10+
<div class={`admonition ${props.type}`}>
11+
<div class="title">{props.type}</div>
12+
<p></p>
13+
{/* This is how lume seems to add a space between the title and the content (sorry for the hacky solution)*/}
14+
{props.children}
15+
</div>
16+
);
17+
}

_components/Banner.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.banner {
2+
@apply flex flex-col gap-4 p-4 border-l-4 text-runtime-foreground
3+
bg-runtime-background dark:bg-background-secondary border-runtime-500;
4+
width: 100%;
5+
margin: 4rem 0;
6+
}
7+
8+
.banner-deploy {
9+
@apply border-deploy-500 bg-deploy-50 dark:bg-background-secondary;
10+
}

_components/Banner.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default function Banner(props: { children: any; type: string }) {
2+
return (
3+
<div
4+
className={`banner banner-${props.type}`}
5+
>
6+
{props.children}
7+
</div>
8+
);
9+
}
10+
11+
export const css = "@import './_components/Banner.css';";

_components/Breadcrumbs.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function (props: {
3737
url: string;
3838
sectionTitle: string;
3939
sectionHref: string;
40-
}) {
40+
}, helpers: Lume.Helpers) {
4141
const crumbs: SidebarItem[] = [];
4242

4343
for (const section of props.sidebar) {
@@ -99,9 +99,13 @@ export default function (props: {
9999
</a>
100100
)
101101
: (
102-
<span itemprop="name" class="block px-3 py-1.5 text-sm">
103-
{crumb.title}
104-
</span>
102+
<span
103+
itemprop="name"
104+
class="block px-3 py-1.5 text-sm"
105+
dangerouslySetInnerHTML={{
106+
__html: helpers.md(crumb.title, true),
107+
}}
108+
/>
105109
)}
106110
<meta itemprop="position" content={String(i + 2)} />
107111
</li>

_components/CTA.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.docs-cta {
2-
@apply border text-balance text-black font-bold inline-block py-3.5 px-6
2+
@apply border text-balance text-black font-bold inline-block py-3.5 px-6 mr-4
33
rounded-full w-max hover:no-underline transition-colors duration-200 mb-6;
44
}
55

_components/Columns.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.columns {
2+
margin: 2rem 0;
3+
div {
4+
margin-bottom: 2rem;
5+
}
6+
}
7+
8+
@media (min-width: 750px) {
9+
.columns {
10+
display: flex;
11+
justify-content: space-between;
12+
gap: 2rem;
13+
14+
div {
15+
flex: 1;
16+
text-wrap: balance;
17+
margin-bottom: 1rem;
18+
}
19+
}
20+
}

_components/Columns.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default function Columns(props: { children: any }) {
2+
return <section className="columns">{props.children}</section>;
3+
}
4+
5+
export const css = `@import './_components/Columns.css';`;

_components/Hamburger.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ export default function () {
22
return (
33
<>
44
<label htmlFor="hamburger" className="hamburger-label">
5-
<span class="hamburger-bar hamburger-bar--top"></span>
6-
<span class="hamburger-bar hamburger-bar--middle"></span>
7-
<span class="hamburger-bar hamburger-bar--bottom"></span>
5+
<span className="hamburger-bar hamburger-bar--top"></span>
6+
<span className="hamburger-bar hamburger-bar--middle"></span>
7+
<span className="hamburger-bar hamburger-bar--bottom"></span>
88
</label>
99
<input type="checkbox" id="hamburger" className="hamburger-checkbox" />
1010
</>

_components/Heading.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
h2.heading {
2+
@apply text-3xl md:text-4xl font-semibold underline underline-offset-8 mb-6;
3+
}
4+
5+
h3.heading {
6+
@apply text-xl md:text-2xl font-semibold underline underline-offset-8 mb-4;
7+
}
8+
9+
.heading-runtime {
10+
@apply decoration-runtime-500;
11+
}
12+
13+
.heading-deploy {
14+
@apply decoration-deploy-500;
15+
}
16+
17+
.heading-purple {
18+
@apply decoration-purple-500;
19+
}

0 commit comments

Comments
 (0)