From 5334f9bbe3512b67a9ae9d048857ee4d96c31865 Mon Sep 17 00:00:00 2001 From: Matt Auer Date: Mon, 23 Sep 2024 21:44:57 -0500 Subject: [PATCH] fix: links --- contentlayer.config.ts | 4 ++-- docs/integration-docs | 2 +- docs/nightly/fuel-specs | 2 +- docs/nightly/fuels-ts | 2 +- docs/nightly/fuels-wallet | 2 +- docs/nightly/integration-docs | 2 +- scripts/generate-links/index.mjs | 1 + src/components/Sidebar.tsx | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/contentlayer.config.ts b/contentlayer.config.ts index d4c4ad78f..e9a621279 100644 --- a/contentlayer.config.ts +++ b/contentlayer.config.ts @@ -65,7 +65,7 @@ const includeDirs = [ 'docs/sway-standards/docs/src', 'docs/sway-by-example-lib/docs/src', 'docs/migrations-and-disclosures/docs/src', - 'docs/integration-docs/docs', + 'docs/integration-docs/docs/src', // NIGHTLY DOCS 'docs/nightly/sway/docs/book/src', 'docs/nightly/fuels-rs/docs/src', @@ -77,7 +77,7 @@ const includeDirs = [ 'docs/nightly/sway-standards/docs/src', 'docs/nightly/sway-by-example-lib/docs/src', 'docs/nightly/migrations-and-disclosures/docs/src', - 'docs/nightly/integration-docs/docs', + 'docs/nightly/integration-docs/docs/src', ]; const excludeDirs = [ diff --git a/docs/integration-docs b/docs/integration-docs index 8c265d2ef..009ff28e4 160000 --- a/docs/integration-docs +++ b/docs/integration-docs @@ -1 +1 @@ -Subproject commit 8c265d2ef52735f62d6f1876f1999bdc38affc3c +Subproject commit 009ff28e4d9b1583fadd38d26379e4e1bbbceb81 diff --git a/docs/nightly/fuel-specs b/docs/nightly/fuel-specs index 799d6aec5..aece3d369 160000 --- a/docs/nightly/fuel-specs +++ b/docs/nightly/fuel-specs @@ -1 +1 @@ -Subproject commit 799d6aec5eb4725e268d841264f9d8ebc45b7469 +Subproject commit aece3d369e93210aa318e3d9a0366792d28e3ec1 diff --git a/docs/nightly/fuels-ts b/docs/nightly/fuels-ts index 3fccbbe7e..66eabac58 160000 --- a/docs/nightly/fuels-ts +++ b/docs/nightly/fuels-ts @@ -1 +1 @@ -Subproject commit 3fccbbe7e476f3c42ff9b95c486ff238554eae43 +Subproject commit 66eabac58dd7f11cd1ba79b5d12e5a62c7cc824e diff --git a/docs/nightly/fuels-wallet b/docs/nightly/fuels-wallet index 9506c6eef..f60f6c298 160000 --- a/docs/nightly/fuels-wallet +++ b/docs/nightly/fuels-wallet @@ -1 +1 @@ -Subproject commit 9506c6eef66b5762c8978752d11ce134e03d2655 +Subproject commit f60f6c298c8cfe363326d87bac1464d3343fe07e diff --git a/docs/nightly/integration-docs b/docs/nightly/integration-docs index 8c265d2ef..009ff28e4 160000 --- a/docs/nightly/integration-docs +++ b/docs/nightly/integration-docs @@ -1 +1 @@ -Subproject commit 8c265d2ef52735f62d6f1876f1999bdc38affc3c +Subproject commit 009ff28e4d9b1583fadd38d26379e4e1bbbceb81 diff --git a/scripts/generate-links/index.mjs b/scripts/generate-links/index.mjs index 58048ca53..7564d7168 100644 --- a/scripts/generate-links/index.mjs +++ b/scripts/generate-links/index.mjs @@ -129,6 +129,7 @@ function handleAllOrders(allOrders, folderPath, filename) { 'graphql', 'forc', 'specs', + 'integration-docs', ]; const finalAllOrders = allOrders.sort((a, b) => { diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 2a100536d..05bc5870e 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -62,7 +62,7 @@ export function Sidebar({ {allNavs.map((navOrder) => { const catIndex = versionSet === 'default' ? 1 : 2; - let key = navOrder.links[0].slug?.split('/')[catIndex]; + let key = navOrder.links[0].slug.split('/')[catIndex]; if (key === 'sway') { key = 'forc'; }