-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(documentation-site): fix docs:deploy script, build and deploy do…
…cs after publish
- Loading branch information
1 parent
5a6b047
commit 141ea9b
Showing
2 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
const ghpages = require('gh-pages'); | ||
const ghpages = require("gh-pages"); | ||
|
||
ghpages.publish('docs/build', { | ||
branch: 'gh-pages', | ||
repo: 'https://github.com/Esri/arcgis-rest-js.git' | ||
}, function (err) { | ||
if (err) | ||
console.log('uh oh', err); | ||
}); | ||
ghpages.publish( | ||
"docs/build", | ||
{ | ||
branch: "gh-pages", | ||
repo: "https://github.com/Esri/arcgis-rest-js.git" | ||
}, | ||
function(err) { | ||
if (err) { | ||
console.log("uh oh", err); | ||
} else { | ||
console.log("Deployed docs site!"); | ||
} | ||
} | ||
); |