Skip to content

Commit

Permalink
feat(docs): Enable 'branch' override for included doc repos (like uir…
Browse files Browse the repository at this point in the history
…outer/core)
  • Loading branch information
christopherthielen committed Feb 7, 2018
1 parent 823da7a commit 05ca568
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions generate_docs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node

const publishYalcPackage = require('./publish_yalc_package');
const util = require('./util');
util.packageDir();
Expand All @@ -22,8 +21,8 @@ if (missing) {

const includes = CONFIG.typedoc.include || [];
includes.forEach(include => {
const { package, repo } = include;
const flags = { noBuild: true, noPublish: true, noInstall: true };
const { branch, package, repo } = include;
const flags = { noBuild: true, noPublish: true, noInstall: true, branch: branch };
const versionline = _exec(`yarn list --pattern ${package}`).stdout.split(/[\r\n]+/).find(line => line.includes(package));
const version = /.*\@([^@]*)/.exec(versionline)[1];

Expand Down

0 comments on commit 05ca568

Please sign in to comment.