Skip to content

Commit

Permalink
Fix docfx build breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dobromirts committed Mar 11, 2024
1 parent ec24e44 commit ce22fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.buildDocfx = (options = {
}

const globalPreconfigs = preconfigs;
let docfxJsonPath = path.normalize(path.join(getPath(options.projectDir), 'docfx.json'));
let docfxPath = path.normalize(path.join(getPath(options.projectDir), '/'));
let docfxPreconfigPath = path.normalize(path.join(getPath(options.projectDir), 'environment.json'));
let docfxGlobalConfigPath = path.normalize(path.join(getPath(options.projectDir), 'global.json'));
let globalConfigs = getEnvironmentVariables(docfxGlobalConfigPath);
Expand All @@ -52,7 +52,7 @@ exports.buildDocfx = (options = {
applyWarnAsErr = `--warningsAsErrors`;
}

return spawn("dotnet", ["docfx", "build", applyWarnAsErr, `${path.normalize(getPath(docfxJsonPath))}`], { stdio: 'inherit' }).on('exit', (err) => {
return spawn("dotnet", ["docfx", "build", applyWarnAsErr], { stdio: 'inherit', cwd: docfxPath }).on('exit', (err) => {
if (err === 4294967295) {
console.log(`\x1b[31m`, `------------------------------------------------------------------------------------`);
console.log(`--------------------------- Bookmark/Hyperlink Errors -----------------------------`);
Expand Down

0 comments on commit ce22fe0

Please sign in to comment.