@@ -13,16 +13,16 @@ async function buildApiDocs() {
13
13
const outputDir = path . join ( __dirname , '../website/docs/api' ) ;
14
14
const sidebarsPath = path . join ( __dirname , '../website/api-sidebar.json' ) ;
15
15
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
+ // }
26
26
27
27
// An array of tuples where the first element is the package's name and the
28
28
// the second element is the relative path to the package's entry point
@@ -65,7 +65,7 @@ async function buildApiDocs() {
65
65
hideGenerator : true ,
66
66
hideBreadcrumbs : true ,
67
67
// skipSidebar: true,
68
- gitRemote : gitRemoteName ,
68
+ // gitRemote: gitRemoteName,
69
69
gitRevision : 'master' ,
70
70
tsconfig : path . resolve ( __dirname , '../tsconfig.build.json' ) ,
71
71
entryPoints : modules . map ( ( [ _name , filePath ] ) => filePath ) ,
0 commit comments