Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,32 @@ jobs:
working-directory: "reference_gen"
run: deno task doc

- name: Restore OG image cache
uses: actions/cache@v4
id: og-cache
with:
path: .og-cache
key: og-images-${{ hashFiles('open_graph/**') }}
restore-keys: og-images-

- name: Build
env:
ORAMA_PROJECT_ID: ${{ vars.ORAMA_PROJECT_ID }}
ORAMA_DATASOURCE_ID: ${{ vars.ORAMA_DATASOURCE_ID }}
ORAMA_PRIVATE_API_KEY: ${{ secrets.ORAMA_PRIVATE_API_KEY }}
SKIP_OG: ${{ steps.og-cache.outputs.cache-hit == 'true' && '1' || '' }}
run: deno task build

- name: Restore cached OG images
if: steps.og-cache.outputs.cache-hit == 'true'
run: cp -r .og-cache/_site/* _site/ 2>/dev/null || true

- name: Save OG images to cache
if: steps.og-cache.outputs.cache-hit != 'true'
run: |
mkdir -p .og-cache/_site
cd _site && find . -name "index.png" -exec cp --parents {} ../.og-cache/_site/ \;

- name: Run server
run: deno run --allow-read=. --allow-net --allow-env --lock=deno.lock server.ts &

Expand Down
16 changes: 10 additions & 6 deletions _components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export default function Footer_new() {
return (
<footer class="text-smaller bg-gray-50 dark:bg-gray-950 p-4 pt-12 sm:px-8 border-t border-t-foreground-tertiary">
<footer className="text-smaller bg-gray-50 dark:bg-gray-950 p-4 pt-12 sm:px-8 border-t border-t-foreground-tertiary">
<nav className="flex flex-col gap-x-4 gap-y-12 max-w-7xl md:flex-row md:flex-wrap md:justify-between md:w-full md:gap-y-8 md:mx-auto">
{data.map((category) => (
<section class="flex-auto">
<h3 class="mb-2 uppercase font-bold text-foreground-primary whitespace-pre">
<section className="flex-auto">
<h3 className="mb-2 uppercase font-bold text-foreground-primary whitespace-pre">
{category.title}
</h3>
<ul class="m-0 p-0 pl-3 border-l border-l-background-tertiary list-none">
<ul className="m-0 p-0 pl-3 border-l border-l-background-tertiary list-none">
{category.items.map((item) => (
<li>
<a
class="block mb-2 hover:text-primary hover:underline"
className="block mb-2 hover:text-primary hover:underline"
href={item.to ?? item.href}
dangerouslySetInnerHTML={{ __html: item.label }}
/>
Expand All @@ -21,7 +21,7 @@ export default function Footer_new() {
</section>
))}
</nav>
<p class="m-0 mt-16 mx-auto text-center text-xs text-foreground-secondary">
<p className="m-0 mt-16 mx-auto text-center text-xs text-foreground-secondary">
Copyright © {new Date().getFullYear()} the Deno authors.
</p>
</footer>
Expand Down Expand Up @@ -153,6 +153,10 @@ const data = [
label: "Privacy Policy",
href: "/deploy/privacy_policy",
},
{
label: "LLMs",
href: "/llms.txt",
},
],
},
] satisfies FooterCategory[];
3 changes: 1 addition & 2 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ site.copy("runtime/reference/images");
site.copy("runtime/contributing/images");
site.copy("examples/tutorials/images");
site.copy("deploy/manual/images");
site.copy("deploy/images");
site.copy("examples/scripts");

site.use(
Expand Down Expand Up @@ -308,7 +307,7 @@ site.data("apiCategories", {
});

// Do more expensive operations if we're building the full site
if (Deno.env.get("BUILD_TYPE") == "FULL") {
if (Deno.env.get("BUILD_TYPE") == "FULL" && !Deno.env.has("SKIP_OG")) {
// Use Lume's built in date function to get the last modified date of the file
// site.data("date", "Git Last Modified");;

Expand Down