Skip to content

Commit f459b4a

Browse files
committed
catching a few post-flattening config changes
1 parent 1b99898 commit f459b4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docusaurus.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { generateRedirects, createRedirects as createRedirectsBase } from './red
77

88
const scripts = [];
99

10-
// `npm run site:build` and `docusaurus build` sets this to 'production'
11-
// `npm run site:dev` and `docusaurus start` sets it to 'development'
10+
// `npm run build` sets this to 'production'
11+
// `npm start` and `npm run dev` sets it to 'development'
1212
if (process.env.NODE_ENV === 'production') {
1313
scripts.push({ src: '/js/reo.js' });
1414
}
@@ -70,8 +70,8 @@ const config: Config = {
7070
// For versioned docs: versionDocsDirPath is like 'versioned_docs/version-4.6'
7171
// For current docs: versionDocsDirPath is 'docs'
7272
if (versionDocsDirPath.startsWith('versioned_docs')) {
73-
// Versioned docs are in site/versioned_docs/version-X.X/
74-
return `https://github.com/HarperDB/documentation/blob/main/site/${versionDocsDirPath}/${docPath}`;
73+
// Versioned docs are in versioned_docs/version-X.X/
74+
return `https://github.com/HarperDB/documentation/blob/main/${versionDocsDirPath}/${docPath}`;
7575
} else {
7676
// Current docs are in the root docs/ directory
7777
return `https://github.com/HarperDB/documentation/blob/main/docs/${docPath}`;

0 commit comments

Comments
 (0)