diff --git a/docs/nightly/fuels-ts b/docs/nightly/fuels-ts index f2953bf35..165c49cc3 160000 --- a/docs/nightly/fuels-ts +++ b/docs/nightly/fuels-ts @@ -1 +1 @@ -Subproject commit f2953bf359bc022766351ae57419b59dc5bddddc +Subproject commit 165c49cc30be91957067e243286b65c3dd73fb04 diff --git a/scripts/generate-links/processVPConfig.mjs b/scripts/generate-links/processVPConfig.mjs index eadcd2958..c80851b05 100644 --- a/scripts/generate-links/processVPConfig.mjs +++ b/scripts/generate-links/processVPConfig.mjs @@ -1,20 +1,4 @@ -import { EOL } from 'os'; - -import { getFile } from './getFile.mjs'; - -const tsAPIOrderFile = getFile( - './fuels-ts/apps/docs/.typedoc/api-links.json', - 'default', - true -); -const nightlyTsAPIOrderFile = getFile( - './fuels-ts/apps/docs/.typedoc/api-links.json', - 'nightly', - true -); - function extractData(inputString) { - // used for api.json order const regex = /"([^"]+)":\s*"([^"]+)"/g; const match = regex.exec(inputString); if (match !== null) { @@ -79,29 +63,6 @@ function handleVPLine( newVPOrder.menu.push(linkName); } } - } else if (trimmedLine.startsWith('apiLinks')) { - // handle API order - newVPOrder.menu.push('API'); - let apiJSON; - if (isNightly) { - apiJSON = nightlyTsAPIOrderFile; - } else { - apiJSON = tsAPIOrderFile; - } - const apiLines = JSON.stringify(apiJSON, null, 2).split(EOL); - apiLines.forEach((apiLine, apiIndex) => { - const trimmedAPILine = apiLine.trimStart(); - const results = handleVPLine( - trimmedAPILine, - apiLines, - apiIndex, - newVPOrder, - category, - isNightly - ); - category = results.category; - newVPOrder = results.newVPOrder; - }); } return { newVPOrder, category };