Skip to content

Commit c60e46a

Browse files
authored
Merge pull request #248 from HarperDB/fix-versioned-edit-url
catching a few post-flattening config changes
2 parents a99f617 + f459b4a commit c60e46a

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
}
@@ -72,8 +72,8 @@ const config: Config = {
7272
// For versioned docs: versionDocsDirPath is like 'versioned_docs/version-4.6'
7373
// For current docs: versionDocsDirPath is 'docs'
7474
if (versionDocsDirPath.startsWith('versioned_docs')) {
75-
// Versioned docs are in site/versioned_docs/version-X.X/
76-
return `https://github.com/HarperDB/documentation/blob/main/site/${versionDocsDirPath}/${docPath}`;
75+
// Versioned docs are in versioned_docs/version-X.X/
76+
return `https://github.com/HarperDB/documentation/blob/main/${versionDocsDirPath}/${docPath}`;
7777
} else {
7878
// Current docs are in the root docs/ directory
7979
return `https://github.com/HarperDB/documentation/blob/main/docs/${docPath}`;

0 commit comments

Comments
 (0)