Skip to content

Commit

Permalink
Merge pull request #403 from jtrujill/master
Browse files Browse the repository at this point in the history
Merge dev into master
  • Loading branch information
Jeremy Trujillo committed Aug 7, 2018
2 parents 5f5268d + a4ebd0b commit b7a4f0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/guide-copy-assets.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
const fs = require('fs-extra');
const path = require('path');

const sourceDir = '../dist/docs/';
const destDir = process.env.TRAVIS ? '../dist/user-guide/assets/docs/' : '../src/assets/docs/';

// Copy api documentation into UserGuide assets/
fs.copySync(getAbsolutePath('../dist/docs/api'), getAbsolutePath('../src/assets/docs/api'));
fs.copySync(getAbsolutePath(sourceDir + 'api'), getAbsolutePath(destDir + 'api'));

// Copy examples source files(ts, css, html)
fs.copySync(getAbsolutePath('../dist/docs/examples'), getAbsolutePath('../src/assets/docs/examples'));
fs.copySync(getAbsolutePath(sourceDir + 'examples'), getAbsolutePath(destDir + 'examples'));

fs.copySync(getAbsolutePath('../dist/docs/usage'), getAbsolutePath('../src/assets/docs/usage'));
fs.copySync(getAbsolutePath(sourceDir + 'usage'), getAbsolutePath(destDir + 'usage'));

function getAbsolutePath(relativePath) {
return path.resolve(path.join(__dirname, relativePath));
Expand Down

0 comments on commit b7a4f0c

Please sign in to comment.