File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
generators/llms-txt/utils Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ export const DOC_NODE_VERSION = process.version;
77export const DOC_NODE_CHANGELOG_URL =
88 'https://raw.githubusercontent.com/nodejs/node/HEAD/CHANGELOG.md' ;
99
10- // The base URL for the latest Node.js documentation
11- export const LATEST_DOC_API_BASE_URL = 'https://nodejs.org/docs/latest /' ;
10+ // The base URL for the Node.js website
11+ export const BASE_URL = 'https://nodejs.org/' ;
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ const getEntryDescription = entry => {
3838export const buildApiDocLink = entry => {
3939 const title = entry . heading . data . name ;
4040
41- // Remove the leading doc/ from the path
42- const path = entry . api_doc_source . replace ( / ^ d o c \/ / , '' ) ;
41+ const path = entry . api_doc_source . replace ( / ^ d o c \/ / , '/docs/latest/' ) ;
4342 const url = new URL ( path , LATEST_DOC_API_BASE_URL ) ;
4443
4544 const link = `[${ title } ](${ url } )` ;
You can’t perform that action at this time.
0 commit comments