Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]create pages for examples, tutorials and videos, refactor examples #1192

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6e128d6
create pages for examples, tutorials and videos, refactor examples (#…
thisisjofrank Nov 25, 2024
94f1deb
fmt
thisisjofrank Nov 25, 2024
74d68a1
fix test
thisisjofrank Nov 25, 2024
6017f63
fix test
thisisjofrank Nov 25, 2024
10a9b67
Learn landing page (#1194)
philhawksworth Nov 26, 2024
fb2baeb
Merge branch 'main' of https://github.com/denoland/docs into learning…
thisisjofrank Nov 27, 2024
c3e9e22
Merge branch 'learning-center' of https://github.com/denoland/docs in…
thisisjofrank Nov 27, 2024
65e27e4
New tutorials (#1197)
thisisjofrank Nov 27, 2024
7742f55
typo fix
philhawksworth Nov 27, 2024
64202b9
why so sad, fmt? This should fix (#1200)
philhawksworth Nov 27, 2024
04cf228
adding subnav
thisisjofrank Nov 27, 2024
f4d19b3
adding subnav (#1201)
thisisjofrank Nov 27, 2024
53bcba3
merge
thisisjofrank Nov 27, 2024
bbb19d9
broken urls
thisisjofrank Nov 27, 2024
7666363
fix urls
thisisjofrank Nov 27, 2024
56ce72d
fmt
thisisjofrank Nov 27, 2024
030ae9d
more urls fixing
thisisjofrank Nov 27, 2024
4f518a8
more urls fixing
thisisjofrank Nov 27, 2024
30d2262
more urls fixing
thisisjofrank Nov 27, 2024
13c454f
moving all tutorials and examples onto one page (#1203)
thisisjofrank Nov 28, 2024
6d5c114
fix urls
thisisjofrank Nov 28, 2024
8d0ff30
Merge branch 'main' into learning-center
thisisjofrank Nov 28, 2024
d33c9e1
Include videos in learning list (#1206)
philhawksworth Nov 28, 2024
c95cd8b
separate out examples and landingpage generators, make new layout for…
thisisjofrank Nov 29, 2024
5f3ab97
Learning filter (#1210)
thisisjofrank Nov 29, 2024
0c86469
Video page template (#1213)
philhawksworth Nov 29, 2024
fa4086c
fix broken images and fmt
thisisjofrank Nov 29, 2024
275215c
Learn page ordering (#1217)
philhawksworth Nov 29, 2024
5c23195
Learning hub sidebar mobile (#1215)
thisisjofrank Nov 29, 2024
9ebddbf
Update index.tsx
thisisjofrank Nov 29, 2024
d1da36e
add astro, drizzle, trpc, and several videos
lambtron Dec 4, 2024
46acea2
merge with main
thisisjofrank Dec 9, 2024
7285d52
Merge branch 'learning-center' of https://github.com/denoland/docs in…
thisisjofrank Dec 9, 2024
00e7bb3
move all tutorials/examples/videos under the /examples url
thisisjofrank Dec 9, 2024
3efc901
fix broken link
thisisjofrank Dec 9, 2024
2436e1c
fix up examples page
thisisjofrank Dec 9, 2024
c84370a
make filters work with css
thisisjofrank Dec 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Learning hub sidebar mobile (#1215)
  • Loading branch information
thisisjofrank authored Nov 29, 2024
commit 5c2319545dcbe4e05aea40e08be09b7108942802
10 changes: 7 additions & 3 deletions _includes/raw_with_sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ export default function Page(props: Lume.Data, helpers: Lume.Helpers) {
props.toc = toc.concat(...props.toc);
}

let isLearnHub = props.url.includes("learn");
const checkIsHub = /^\/learn\/$/;
const isLearnHub = checkIsHub.test(props.url);
thisisjofrank marked this conversation as resolved.
Show resolved Hide resolved

return (
<>
<aside
class="flex flex-col absolute top-0 xl:top-16 bottom-0 -translate-x-74 xl:left-0 sidebar-open:translate-x-0 w-74 border-r border-foreground-tertiary bg-background-primary z-50 xl:z-0 xl:translate-x-0 transition-transform"
className={`flex flex-col absolute top-0 xl:top-16 bottom-0 -translate-x-74 xl:left-0 sidebar-open:translate-x-0 w-74 border-r border-foreground-tertiary bg-background-primary z-50 xl:z-0 xl:translate-x-0 transition-transform ${
isLearnHub && "xl:hidden"
}`}
id="sidebar"
data-open="false"
>
Expand Down Expand Up @@ -108,7 +111,8 @@ export default function Page(props: Lume.Data, helpers: Lume.Helpers) {
style={{ scrollbarGutter: "stable" }}
>
{props.children}
<div class="xl:col-span-full">
{props.comp.Feedback({ file })}
<div class="xl:col-span-full mt-4">
<props.comp.Footer />
</div>
</div>
Expand Down
26 changes: 26 additions & 0 deletions learn/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
import LandingPage from "./_pages/LandingPage.tsx";

export const layout = "raw.tsx";
export const sidebar = [
{
items: [
{
label: "Runtime",
id: "/runtime/",
},
{
label: "API Reference",
id: "/api/deno/",
},
{
label: "Examples",
id: "/examples/",
},
{
label: "Deploy",
id: "/Deploy/",
},
{
label: "Subhosting",
id: "/Subhosting/",
},
],
},
];

export const toc = [];

Expand Down
Loading