Skip to content

Commit cd10bc2

Browse files
authored
Merge branch 'main' into feat/example-sveltekit
2 parents 465874f + d060f13 commit cd10bc2

Some content is hidden

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

45 files changed

+3063
-196
lines changed

_includes/reference/allSymbols.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { AllSymbolsCtx } from "@deno/doc";
2+
3+
export const layout = "reference/base.tsx";
4+
5+
export default function AllSymbols(
6+
{ comp, data }: { data: AllSymbolsCtx } & Lume.Data,
7+
_helpers: Lume.Helpers,
8+
) {
9+
return (
10+
<main>
11+
<comp.SymbolContent symbolContent={data.content} />
12+
</main>
13+
);
14+
}

_includes/reference/base.tsx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import type { PageBase, ToCCtx } from "@deno/doc";
2+
3+
export const layout = "raw.tsx";
4+
5+
export default function Base(
6+
{ data, comp, children }: Lume.Data & { data: PageBase },
7+
_helpers: Lume.Helpers,
8+
) {
9+
return (
10+
<div className="ddoc">
11+
<link rel="stylesheet" href="/reference_styles.css" />
12+
13+
<comp.CategoryPanel categoryPanel={data.categories_panel} />
14+
15+
<div>
16+
<nav className="top-0 sticky bg-white z-50 py-3 h-14" id="topnav">
17+
<div className="h-full">
18+
<div>
19+
<comp.Breadcrumbs parts={data.breadcrumbs_ctx.parts} />
20+
</div>
21+
</div>
22+
</nav>
23+
24+
<div id="content">
25+
{children}
26+
27+
<div>
28+
{"toc_ctx" in data && (
29+
<comp.Toc
30+
documentNavigation={(data.toc_ctx as ToCCtx)
31+
.document_navigation}
32+
documentNavigationStr={(data.toc_ctx as ToCCtx)
33+
.document_navigation_str}
34+
/>
35+
)}
36+
</div>
37+
</div>
38+
</div>
39+
</div>
40+
);
41+
}

_includes/reference/index.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { IndexCtx } from "@deno/doc";
2+
3+
export const layout = "reference/base.tsx";
4+
5+
export default function Index(
6+
{ data, comp }: { data: IndexCtx } & Lume.Data,
7+
_helpers: Lume.Helpers,
8+
) {
9+
return (
10+
<main>
11+
<comp.UsageLarge usages={data.usage} />
12+
{data.module_doc && <comp.ModuleDoc moduleDoc={data.module_doc} />}
13+
{data.overview &&
14+
<comp.SymbolContent symbolContent={data.overview} />}
15+
</main>
16+
);
17+
}

_includes/reference/symbol.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { SymbolPageCtx } from "@deno/doc";
2+
3+
export const layout = "reference/base.tsx";
4+
5+
export default function Symbol(
6+
{ data, comp }: { data: SymbolPageCtx } & Lume.Data,
7+
_helpers: Lume.Helpers,
8+
) {
9+
return <comp.SymbolGroup symbolGroup={data.symbol_group_ctx} />;
10+
}

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@std/html": "jsr:@std/html@^1.0.3",
88
"@std/media-types": "jsr:@std/media-types@^1.0.3",
99
"@std/path": "jsr:@std/path@^1.0.8",
10+
"@deno/doc": "jsr:@deno/doc@0.167.0",
1011
"ga4": "https://raw.githubusercontent.com/denoland/ga4/04a1ce209116f158b5ef1658b957bdb109db68ed/mod.ts",
1112
"lume/": "https://deno.land/x/lume@v2.4.1/",
1213
"googleapis": "npm:googleapis@^144.0.0",

deno.lock

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

examples/_data.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ export const sidebar = [
269269
externalURL: "https://www.youtube.com/watch?v=MDPauM8fZDE",
270270
type: "video",
271271
},
272+
{
273+
label: "Build a SolidJS app",
274+
id: "/examples/solidjs_tutorial",
275+
type: "tutorial",
276+
},
272277
{
273278
label: "Build a React app",
274279
id: "/examples/react_app_video",

examples/scripts/subprocesses_spawn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const process = command.spawn();
3030
// We can now pipe the input into stdin. To do this we must first get
3131
// a writer from the stream and write to it
3232
const writer = process.stdin.getWriter();
33-
writer.write(new TextEncoder().encode("console.log('hello')"));
33+
await writer.write(new TextEncoder().encode("console.log('hello')"));
3434
writer.releaseLock();
3535

3636
// We must then close stdin
Binary file not shown.

0 commit comments

Comments
 (0)