Skip to content

Commit

Permalink
Try to build website again
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jul 28, 2021
1 parent 0736446 commit a9e6cd1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/build-api-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ async function buildApiDocs() {
const outputDir = path.join(__dirname, '../website/docs/api');
const sidebarsPath = path.join(__dirname, '../website/api-sidebar.json');

// Get the upstream git remote -- we don't want to assume it exists or is named "upstream"
const gitRemote = execSync('git remote -v', { encoding: 'utf-8' })
.split('\n')
.map(line => line.split('\t'))
.find(([_name, description]) => description.includes('(fetch)'));
const gitRemoteName = gitRemote && gitRemote[0];
if (!gitRemoteName) {
console.log('Unable to locate upstream git remote');
process.exit(1);
}
// // Get the upstream git remote -- we don't want to assume it exists or is named "upstream"
// const gitRemote = execSync('git remote -v', { encoding: 'utf-8' })
// .split('\n')
// .map(line => line.split('\t'))
// .find(([_name, description]) => description.includes('(fetch)'));
// const gitRemoteName = gitRemote && gitRemote[0];
// if (!gitRemoteName) {
// console.log('Unable to locate upstream git remote');
// process.exit(1);
// }

// An array of tuples where the first element is the package's name and the
// the second element is the relative path to the package's entry point
Expand Down Expand Up @@ -65,7 +65,7 @@ async function buildApiDocs() {
hideGenerator: true,
hideBreadcrumbs: true,
// skipSidebar: true,
gitRemote: gitRemoteName,
//gitRemote: gitRemoteName,
gitRevision: 'master',
tsconfig: path.resolve(__dirname, '../tsconfig.build.json'),
entryPoints: modules.map(([_name, filePath]) => filePath),
Expand Down

1 comment on commit a9e6cd1

@vercel
Copy link

@vercel vercel bot commented on a9e6cd1 Jul 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.