@@ -27,6 +27,7 @@ let button = ''
27
27
//-- Get Repository name
28
28
repository = Object . keys ( data_total )
29
29
30
+
30
31
//-- Create a button for each repository
31
32
for ( i = 0 ; i < repository . length ; i ++ ) {
32
33
button += "<button role='link'onclick=window.location='" +
@@ -37,6 +38,7 @@ INDEX = INDEX.replace('BUTTON', button)
37
38
//-- Write total in new html file
38
39
fs . writeFileSync ( 'index.html' , INDEX ) ;
39
40
41
+
40
42
//-- Obtain information from each repository
41
43
for ( repo = 0 ; repo < repository . length ; repo ++ ) {
42
44
//-- Assign the value of REPO
@@ -85,6 +87,8 @@ for (repo=0; repo<repository.length; repo++){
85
87
fs . writeFileSync ( name_html , content ) ;
86
88
}
87
89
90
+
91
+
88
92
//-- Obtain repository summary information
89
93
function repo_summary ( ) {
90
94
//-- Variable with the summary of each repository
@@ -112,6 +116,8 @@ function repo_summary(){
112
116
return ( total_repo ) ;
113
117
}
114
118
119
+
120
+
115
121
//-- Obtain summary information
116
122
let total_summary = ''
117
123
type = Object . keys ( data_summary )
@@ -130,4 +136,5 @@ INDEX = INDEX.replace('SUMMARY', total_summary)
130
136
//-- Write total in new html file
131
137
fs . writeFileSync ( 'index.html' , INDEX ) ;
132
138
139
+
133
140
console . log ( "Website created." ) ;
0 commit comments