Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed May 14, 2024
1 parent 70cc59f commit 3351006
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/plugins/forc-gen-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ function transformContent(node: any, rootDir: string) {
versionSet = 'beta-5';
}

let swayBuildFilePath = '/builds/sway/master/book/forc';
if (versionSet === 'default') {
// TODO: make this dynamic
swayBuildFilePath = 'docs/builds/sway/v0.58.0/book/forc';
} else {
swayBuildFilePath = `docs/${versionSet}${swayBuildFilePath}`;
// TODO: make this dynamic
let swayBuildFilePath = 'docs/builds/sway/v0.58.0/book/forc';
if (versionSet === 'nightly') {
swayBuildFilePath = 'docs/nightly/builds/sway/v0.58.0/book/forc';
} else if (versionSet === 'beta-5') {
swayBuildFilePath = 'docs/beta-5/builds/sway/master/book/forc';
}

const folders = thisFilePath.split('/forc/')[1].split('/');
Expand Down

0 comments on commit 3351006

Please sign in to comment.