Skip to content

Commit

Permalink
fix script to work with typedoc (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev authored Feb 22, 2019
1 parent a8a760f commit e06ea71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/publish_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ if (!msg) {

exec('yarn install', { cwd: './docs' })
exec('rm -rf ./out', { cwd: './docs' })
exec('git clone -b gh-pages --single-branch [email protected]:DataDog/dd-trace-js.git docs/out')
exec('rm -rf ./docs/out')
exec('yarn type:doc')
exec('yarn type:doc') // run first because typedoc requires an empty directory
exec('git init', { cwd: './docs/out' }) // cloning would overwrite generated docs
exec('git remote add origin [email protected]:DataDog/dd-trace-js.git', { cwd: './docs/out' })
exec('git add -A', { cwd: './docs/out' })
exec(`git commit -m "${msg}"`, { cwd: './docs/out' })
exec('git push', { cwd: './docs/out' })
exec('git push -f master:gh-pages', { cwd: './docs/out' })

0 comments on commit e06ea71

Please sign in to comment.