Skip to content

Commit 85da1a2

Browse files
authored
Merge branch 'main' into feat/example-sveltekit
2 parents 15119f9 + 35d3d9c commit 85da1a2

File tree

7 files changed

+32
-19
lines changed

7 files changed

+32
-19
lines changed

_includes/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function Layout(data: Lume.Data) {
6262
<link rel="stylesheet" href="/gfm.css" />
6363
<link rel="stylesheet" href="/styles.css" />
6464
<link rel="stylesheet" href="/overrides.css" />
65-
<script src="/darkmode.client.js"></script>
65+
<script src="/js/darkmode.client.js"></script>
6666
<link rel="stylesheet" href="/style.css" />
6767
<link rel="stylesheet" href="/components.css" />
6868
<script type="module" src="/sidebar.client.js"></script>

examples/_components/SnippetComponent.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ExampleSnippet } from "../types.ts";
21
import Prism from "prismjs";
2+
import { ExampleSnippet } from "../types.ts";
33

44
export default function SnippetComponent(props: {
55
filename: string;
@@ -13,9 +13,11 @@ export default function SnippetComponent(props: {
1313
return (
1414
<div class="grid grid-cols-1 sm:grid-cols-10 gap-x-8">
1515
<div
16-
class={`italic text-right select-none text-sm ${
16+
class={`italic select-none text-sm text-balance ${
1717
props.snippet.text ? "pb-4 mt-4 md:pb-0 " : " "
18-
} ${props.snippet.code ? "col-span-3" : "mt-4 col-span-full"}`}
18+
} ${
19+
props.snippet.code ? "col-span-5 sm:col-span-3" : "mt-4 col-span-full"
20+
}`}
1921
>
2022
{props.snippet.text}
2123
</div>

examples/_pages/ExamplePage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function ExamplePage({ example }: Props) {
1717
}`;
1818

1919
return (
20-
<>
20+
<div data-content="example">
2121
<div class="flex flex-col gap-4 md:flex-row justify-between items-start md:items-center relative">
2222
<div class="flex flex-col gap-2">
2323
{example.parsed.description && (
@@ -37,7 +37,7 @@ export default function ExamplePage({ example }: Props) {
3737
Edit on Github
3838
</a>
3939
</div>
40-
<div class="relative block">
40+
<div class="relative block mt-8">
4141
<CopyButton text={contentNoCommentary} />
4242
</div>
4343
{example.parsed.files.map((file) => (
@@ -122,6 +122,6 @@ export default function ExamplePage({ example }: Props) {
122122
</div>
123123
)}
124124
</div>
125-
</>
125+
</div>
126126
);
127127
}

overrides.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ that are generated by deno_doc, the tool that powers the API reference documenta
3434
@apply -mx-4 !important;
3535
}
3636

37+
[data-content="example"] .markdown-body .highlight {
38+
@apply m-0 !important;
39+
}
40+
3741
.ddoc .markdown-body pre > code:first-child {
3842
@apply px-4 !important;
3943
}

runtime/_data.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,22 @@ export const sidebar = [
5858
label: "deno bench",
5959
id: "/runtime/reference/cli/bench/",
6060
},
61-
{
62-
label: "deno completions",
63-
id: "/runtime/reference/cli/completions/",
64-
},
6561
{
6662
label: "deno check",
6763
id: "/runtime/reference/cli/check/",
6864
},
65+
{
66+
label: "deno clean",
67+
id: "/runtime/reference/cli/clean/",
68+
},
6969
{
7070
label: "deno compile",
7171
id: "/runtime/reference/cli/compile/",
7272
},
73+
{
74+
label: "deno completions",
75+
id: "/runtime/reference/cli/completions/",
76+
},
7377
{
7478
label: "deno coverage",
7579
id: "/runtime/reference/cli/coverage/",

runtime/getting_started/command_line_interface.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,16 @@ below.
9191

9292
### Watch mode
9393

94-
You can supply the `--watch` flag to `deno run`, `deno test`, `deno compile`,
95-
and `deno fmt` to enable the built-in file watcher. The watcher enables
96-
automatic reloading of your application whenever changes are detected in the
97-
source files. This is particularly useful during development, as it allows you
98-
to see the effects of your changes immediately without manually restarting the
99-
application.
94+
You can supply the `--watch` flag to `deno run`, `deno test`, and `deno fmt` to
95+
enable the built-in file watcher. The watcher enables automatic reloading of
96+
your application whenever changes are detected in the source files. This is
97+
particularly useful during development, as it allows you to see the effects of
98+
your changes immediately without manually restarting the application.
10099

101100
The files that are watched will depend on the subcommand used:
102101

103-
- for `deno run`, `deno test`, and `deno compile` the entrypoint, and all local
104-
files that the entrypoint statically imports will be watched.
102+
- for `deno run` and `deno test` the entrypoint, and all local files that the
103+
entrypoint statically imports will be watched.
105104
- for `deno fmt` all local files and directories specified as command line
106105
arguments (or the working directory if no specific files/directories is
107106
passed) are watched.

runtime/reference/cli/clean.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: "deno clean"
3+
command: clean
4+
---

0 commit comments

Comments
 (0)