Skip to content

Commit

Permalink
[FIX] Add branch to docfx to let it generate proper source URLs (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
haroldiedema authored Apr 17, 2024
1 parent a50ebcd commit 0137433
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ci-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@ for (const branch of Object.keys(versions)) {
}

// generate metadata
exec('docfx metadata', { cwd: branchDir, ...execOptions });
exec('docfx metadata', {
cwd: branchDir,
env: {
'DOCFX_SOURCE_BRANCH_NAME': branch,
...process.env,
},
...execOptions
});

// execute dfmg
exec('dfmg', {
Expand Down

0 comments on commit 0137433

Please sign in to comment.