From 20ace00321b87de45337bcd9c18fac3eb4aa27ac Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Mon, 16 Feb 2026 10:24:02 +0000 Subject: [PATCH] add llms.txt to the footer --- .github/workflows/lint.yml | 19 +++++++++++++++++++ _components/Footer.tsx | 16 ++++++++++------ _config.ts | 3 +-- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b28bb5495..3182385dc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 & diff --git a/_components/Footer.tsx b/_components/Footer.tsx index 5d48b1e2f..ef3ff470e 100644 --- a/_components/Footer.tsx +++ b/_components/Footer.tsx @@ -1,17 +1,17 @@ export default function Footer_new() { return ( -