Skip to content

Commit

Permalink
move all tutorials/examples/videos under the /examples url
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjofrank committed Dec 9, 2024
1 parent 7285d52 commit 00e7bb3
Show file tree
Hide file tree
Showing 180 changed files with 295 additions and 976 deletions.
8 changes: 4 additions & 4 deletions _components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ const data = [
items: [
{
label: "Deno Runtime",
to: "/runtime/manual",
to: "/runtime/",
},
{
label: "Deno Deploy",
to: "/deploy/manual",
to: "/deploy/manual/",
},
{
label: "Deno Subhosting",
to: "/subhosting/manual",
to: "/subhosting/manual/",
},
{
label: "Examples",
href: "/learn/examples",
href: "/examples/",
},
{
label: "Standard Library",
Expand Down
6 changes: 3 additions & 3 deletions _components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export default function Header({
/>
<HeaderItem
url={url}
activeOn="/learn"
href="/learn"
name="Learn"
activeOn="/examples"
href="/examples"
name="Examples"
hideOnMobile
/>
<span class="hidden xl:inline-block text-foreground-secondary mx-2">
Expand Down
6 changes: 5 additions & 1 deletion _components/SearchInput.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export default function SearchInput() {
return (
<form action="https://www.google.com/search" method="get" class="search">
<form
action="https://www.google.com/search"
method="get"
class="search m-0"
>
<input type="hidden" name="q" id="q" value="site:https://deno.com" />
<input
type="search"
Expand Down
3 changes: 2 additions & 1 deletion _components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ function SidebarItem(props: {
<a
class={LINK_CLASS}
href={"id" in item ? item.id : "href" in item ? item.href : undefined}
aria-current={("id" in item && item.id === props.url)
aria-current={("id" in item &&
(item.id === props.url || item.id + "/" === props.url))
? "page"
: undefined}
>
Expand Down
6 changes: 2 additions & 4 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ site.copy("runtime/fundamentals/images");
site.copy("runtime/getting_started/images");
site.copy("runtime/reference/images");
site.copy("runtime/contributing/images");
site.copy("learn/tutorials/images");
site.copy("examples/tutorials/images");
site.copy("deploy/manual/images");
site.copy("deno.json");
site.copy("go.json");
site.copy("oldurls.json");
site.copy("server.ts");
site.copy("middleware");
site.copy("examples");
site.copy("examples/examples");
site.copy(".env");

site.use(
Expand Down Expand Up @@ -205,9 +205,7 @@ site.ignore(
(path) => path.match(/\/reference_gen.*.ts/) !== null,
(path) => path.includes("/reference_gen/node_modules"),
(path) => path.includes("/reference_gen/node_descriptions"),
"examples",
// "deploy",
// "examples.page.tsx",
// "runtime",
// "subhosting",
);
Expand Down
2 changes: 1 addition & 1 deletion _includes/doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Page(props: Lume.Data, helpers: Lume.Helpers) {
props.toc = toc.concat(...props.toc);
}

let isLearnHub = props.url.includes("learn");
const isLearnHub = props.url.includes("examples");

return (
<>
Expand Down
122 changes: 0 additions & 122 deletions _includes/raw_with_sidebar.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion deploy/_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const sidebar = [
},
{
label: "More on Deno by Example",
href: "/learn/examples",
href: "/examples/",
},
],
},
Expand Down
Loading

0 comments on commit 00e7bb3

Please sign in to comment.