From ed15bb689579032e88b0599de650ae44bcf57392 Mon Sep 17 00:00:00 2001 From: Phil Hawksworth Date: Fri, 14 Feb 2025 15:36:14 +0000 Subject: [PATCH 1/4] add deno clean command to site and sidebar (#1428) --- runtime/_data.ts | 12 ++++++++---- runtime/reference/cli/clean.md | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 runtime/reference/cli/clean.md diff --git a/runtime/_data.ts b/runtime/_data.ts index 85d4edecc..b69539951 100644 --- a/runtime/_data.ts +++ b/runtime/_data.ts @@ -58,18 +58,22 @@ export const sidebar = [ label: "deno bench", id: "/runtime/reference/cli/bench/", }, - { - label: "deno completions", - id: "/runtime/reference/cli/completions/", - }, { label: "deno check", id: "/runtime/reference/cli/check/", }, + { + label: "deno clean", + id: "/runtime/reference/cli/clean/", + }, { label: "deno compile", id: "/runtime/reference/cli/compile/", }, + { + label: "deno completions", + id: "/runtime/reference/cli/completions/", + }, { label: "deno coverage", id: "/runtime/reference/cli/coverage/", diff --git a/runtime/reference/cli/clean.md b/runtime/reference/cli/clean.md new file mode 100644 index 000000000..f8fcdf3c4 --- /dev/null +++ b/runtime/reference/cli/clean.md @@ -0,0 +1,4 @@ +--- +title: "deno clean" +command: clean +--- From cbd5071eec5d280a2c315bd8d8dd3283dcd7e05b Mon Sep 17 00:00:00 2001 From: Josh Collinsworth Date: Fri, 14 Feb 2025 16:04:55 -0600 Subject: [PATCH 2/4] Fix mobile styling for example text (#1429) --- examples/_components/SnippetComponent.tsx | 8 +++++--- examples/_pages/ExamplePage.tsx | 6 +++--- overrides.css | 4 ++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/_components/SnippetComponent.tsx b/examples/_components/SnippetComponent.tsx index 86a45e688..85d8121d9 100644 --- a/examples/_components/SnippetComponent.tsx +++ b/examples/_components/SnippetComponent.tsx @@ -1,5 +1,5 @@ -import { ExampleSnippet } from "../types.ts"; import Prism from "prismjs"; +import { ExampleSnippet } from "../types.ts"; export default function SnippetComponent(props: { filename: string; @@ -13,9 +13,11 @@ export default function SnippetComponent(props: { return (
{props.snippet.text}
diff --git a/examples/_pages/ExamplePage.tsx b/examples/_pages/ExamplePage.tsx index f3cfbdb83..c2575ea64 100644 --- a/examples/_pages/ExamplePage.tsx +++ b/examples/_pages/ExamplePage.tsx @@ -17,7 +17,7 @@ export default function ExamplePage({ example }: Props) { }`; return ( - <> +
{example.parsed.description && ( @@ -37,7 +37,7 @@ export default function ExamplePage({ example }: Props) { Edit on Github
-
+
{example.parsed.files.map((file) => ( @@ -122,6 +122,6 @@ export default function ExamplePage({ example }: Props) {
)}
- +
); } diff --git a/overrides.css b/overrides.css index 9ffb99cf6..ba548dd3d 100644 --- a/overrides.css +++ b/overrides.css @@ -34,6 +34,10 @@ that are generated by deno_doc, the tool that powers the API reference documenta @apply -mx-4 !important; } + [data-content="example"] .markdown-body .highlight { + @apply m-0 !important; + } + .ddoc .markdown-body pre > code:first-child { @apply px-4 !important; } From 79ce70b2b0560cbdaa02d1cee5ee65c60aa020a9 Mon Sep 17 00:00:00 2001 From: Josh Collinsworth Date: Fri, 14 Feb 2025 16:30:26 -0600 Subject: [PATCH 3/4] Fix broken js/darkmode link (#1431) --- _includes/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/layout.tsx b/_includes/layout.tsx index 4b5f00374..c1ae52226 100644 --- a/_includes/layout.tsx +++ b/_includes/layout.tsx @@ -62,7 +62,7 @@ export default function Layout(data: Lume.Data) { - + From 35d3d9c06d29f6dde853679988447003645f0103 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 17 Feb 2025 09:04:40 -0500 Subject: [PATCH 4/4] Watch should not mention deno compile (#1432) --- runtime/getting_started/command_line_interface.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/runtime/getting_started/command_line_interface.md b/runtime/getting_started/command_line_interface.md index 0030e03df..7f13807b9 100644 --- a/runtime/getting_started/command_line_interface.md +++ b/runtime/getting_started/command_line_interface.md @@ -91,17 +91,16 @@ below. ### Watch mode -You can supply the `--watch` flag to `deno run`, `deno test`, `deno compile`, -and `deno fmt` to enable the built-in file watcher. The watcher enables -automatic reloading of your application whenever changes are detected in the -source files. This is particularly useful during development, as it allows you -to see the effects of your changes immediately without manually restarting the -application. +You can supply the `--watch` flag to `deno run`, `deno test`, and `deno fmt` to +enable the built-in file watcher. The watcher enables automatic reloading of +your application whenever changes are detected in the source files. This is +particularly useful during development, as it allows you to see the effects of +your changes immediately without manually restarting the application. The files that are watched will depend on the subcommand used: -- for `deno run`, `deno test`, and `deno compile` the entrypoint, and all local - files that the entrypoint statically imports will be watched. +- for `deno run` and `deno test` the entrypoint, and all local files that the + entrypoint statically imports will be watched. - for `deno fmt` all local files and directories specified as command line arguments (or the working directory if no specific files/directories is passed) are watched.