Skip to content

Commit

Permalink
fix(docs): fix issue with documentation being published at incorrect …
Browse files Browse the repository at this point in the history
…path

No actual change to package code. Categorized as bugfix in order to trigger a patch-release, and
publish documentation.
  • Loading branch information
adrianschmidt committed Sep 10, 2019
1 parent d1b6ca7 commit 20b7862
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions publish-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,9 @@ function build() {
shell.exit(1);
}

// This would be better, since it's cross-platform, but it doesn't
// place the output in the correct folder. It creates a dist-folder inside
// the target folder :(
// /Ads
// if (shell.cp('-R', '.docz/dist/', `docsDist/versions/${version}`).code !== 0) {
// shell.echo('copying output failed!');
// teardown();
// shell.exit(1);
// }

// So instead of the above, we do a *nix copy command instead. Sorry Windows!
// /Ads
if (
shell.exec(`cp -R .docz/dist/ docsDist/versions/${version}`).code !== 0
shell.cp('-R', '.docz/dist/*', `docsDist/versions/${version}/`).code !==
0
) {
shell.echo('copying output failed!');
teardown();
Expand Down

0 comments on commit 20b7862

Please sign in to comment.