Skip to content

Commit

Permalink
Move to Lume and add reference docs (denoland#519)
Browse files Browse the repository at this point in the history
Co-authored-by: crowlkats <[email protected]>
Co-authored-by: John Donmoyer <[email protected]>
Co-authored-by: Jo Franchetti <[email protected]>
Co-authored-by: John Donmoyer <[email protected]>
  • Loading branch information
5 people authored Jul 2, 2024
1 parent c865264 commit 759341f
Show file tree
Hide file tree
Showing 332 changed files with 7,884 additions and 29,014 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,28 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: canary

- name: Build step
- name: "Reference: generate types"
working-directory: "reference_gen"
run: deno task types

- name: "Reference: generate docs"
working-directory: "reference_gen"
run: deno task doc

- name: Build
env:
DENO_FUTURE: 1
ORAMA_CLOUD_INDEX_ID: ${{ vars.ORAMA_CLOUD_INDEX_ID }}
ORAMA_CLOUD_API_KEY: ${{ secrets.ORAMA_CLOUD_API_KEY }}
run: npm install && deno task build
run: deno task build

- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "deno-docs"
entrypoint: "server.ts"
root: "build"
root: "_site"
25 changes: 8 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
# Dependencies
/node_modules
_site
_cache

# Production
/build
.idea

# Generated files
.docusaurus
.cache-loader
.deno-lock
node_modules

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
reference_gen/gen
reference_gen/node_modules
reference_gen/types

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store
13 changes: 1 addition & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
{
"deno.cacheOnSave": true,
"deno.disablePaths": ["./src"],
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"[markdown]": {
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.defaultFormatter": "denoland.vscode-deno"
}
"deno.enable": true
}
153 changes: 153 additions & 0 deletions _components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
interface FooterCategory {
title: string;
items: FooterItem[];
}

type FooterItem = {
label: string;
to: string;
} | {
label: string;
href: string;
};

const data = [
{
title: "Deno Docs",
items: [
{
label: "Deno Runtime",
to: "/runtime/manual",
},
{
label: "Deno Deploy",
to: "/deploy/manual",
},
{
label: "Deno Subhosting",
to: "/subhosting/manual",
},
{
label: "Examples",
href: "/examples",
},
{
label: "Standard Library",
href: "https://deno.land/std",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/deno",
},
{
label: "GitHub",
href: "https://github.com/denoland",
},
{
label: "Twitter",
href: "https://twitter.com/deno_land",
},
{
label: "YouTube",
href: "https://youtube.com/@deno_land",
},
{
label: "Newsletter",
href: "https://deno.news/",
},
],
},
{
title: "Help & Feedback",
items: [
{
label: "Community Support",
href: "https://discord.gg/deno",
},
{
label: "Deploy System Status",
href: "https://www.denostatus.com",
},
{
label: "Deploy Feedback",
href: "https://github.com/denoland/deploy_feedback",
},
{
label: "Report a Problem",
href: "mailto:[email protected]",
},
],
},
{
title: "Company",
items: [
{
label: "Blog",
href: "https://www.deno.com/blog",
},
{
label: "Careers",
href: "https://deno.com/jobs",
},
{
label: "Merch",
href: "https://merch.deno.com/",
},
{
label: "Privacy Policy",
href: "/deploy/manual/privacy-policy",
},
],
},
] satisfies FooterCategory[];

export default function Footer() {
return (
<footer class="w-full border-t border-gray-200 pt-12">
<div class="max-w-screen-xl mx-auto pb-16 px-4 sm:px-8 md:px-16">
<div class="grid md:grid-cols-2 lg:grid-cols-4 md:-mx-8">
{data.map((category) => (
<div class="md:mx-4 mb-12">
<h3 class="font-bold mb-4">{category.title}</h3>
<ul>
{category.items.map((item) => (
<li>
<a
class="block items-center py-1 text-gray-600 hover:text-primary hover:underline"
href={item.to ?? item.href}
>
{item.label}
{item.href && (
<svg
width="13.5"
height="13.5"
aria-hidden="true"
viewBox="0 0 24 24"
class="inline ml-2"
>
<path
fill="currentColor"
d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"
>
</path>
</svg>
)}
</a>
</li>
))}
</ul>
</div>
))}
</div>
<p class="text-center mt-12 text-sm col-span-4">
Copyright © {new Date().getFullYear()} the Deno authors.
</p>
</div>
</footer>
);
}
Loading

0 comments on commit 759341f

Please sign in to comment.