Skip to content

Commit a9e6cd1

Browse files
committed
Try to build website again
1 parent 0736446 commit a9e6cd1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/build-api-docs.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ async function buildApiDocs() {
1313
const outputDir = path.join(__dirname, '../website/docs/api');
1414
const sidebarsPath = path.join(__dirname, '../website/api-sidebar.json');
1515

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

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

0 commit comments

Comments
 (0)