From c63311599f983dde74710f393ae1e074bd0a193c Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Fri, 18 Oct 2024 11:37:54 -0700 Subject: [PATCH 1/2] wrong base url --- astro.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index dd304cf..4c5882f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -12,7 +12,7 @@ let config = JSON.parse(fs.readFileSync("generated/config.json")); // https://astro.build/config export default defineConfig({ - site: 'https://beta.aep.dev', + site: 'https://aep.dev', redirects: redirects, markdown: { rehypePlugins: [[rehypeGraphviz, { graphviz: await Graphviz.load() }]], From edefe0fcaf1648ef3cc12dd06224f126145ed2ef Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Fri, 18 Oct 2024 11:42:23 -0700 Subject: [PATCH 2/2] lets not send to redirect link --- scripts/src/sidebar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/sidebar.ts b/scripts/src/sidebar.ts index 99ad353..836822b 100644 --- a/scripts/src/sidebar.ts +++ b/scripts/src/sidebar.ts @@ -27,7 +27,7 @@ function buildSidebar(aeps: AEP[], groups: any, sidebar: Sidebar): Sidebar { for (var group of groups.categories) { response.push({ 'label': group.title, - 'items': aeps.filter((aep) => aep.category == group.code).sort((a1, a2) => a1.id > a2.id ? 1 : -1).map((aep) => ({label: `${aep.id}. ${aep.title}`, link: aep.slug})) + 'items': aeps.filter((aep) => aep.category == group.code).sort((a1, a2) => a1.id > a2.id ? 1 : -1).map((aep) => ({label: `${aep.id}. ${aep.title}`, link: aep.id.toString()})) }) }