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
8 changes: 3 additions & 5 deletions .github/workflows/beta_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v6.3.0
node-version: 22.22.x
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm ci
run: npm run install
- name: Build website
run: npm run build
- name: Deploy to Cloudflare Workers
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v6.3.0
node-version: 22.22.x
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install dependencies
run: npm run install
- name: Build website
run: npm run build
- name: Deploy to Cloudflare Workers
Expand Down
12 changes: 11 additions & 1 deletion src/pages/reference/[...id].astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import type { GetStaticPathsResult } from "astro";
import ReferenceItemLayout from "@/src/layouts/ReferenceItemLayout.astro";
import {
getCollectionInDefaultLocale,
Expand All @@ -21,7 +22,16 @@ export async function getStaticPaths() {
return relatedEntry.data.submodule === entry.data.submodule;
}),
},
}));
}))
.reduce<GetStaticPathsResult>((acc, entry) => {
acc.push(entry);
acc.push(Object.assign({}, entry, {
params: {
id: entry.params.id.toLowerCase()
}
}));
return acc;
}, []);
}

const { entry, relatedEntries } = Astro.props;
Expand Down
Loading