FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit.github.com/generate/index.js at master · dawnsgithub/nodegit.github.com · GitHub
dawnsgithub
/
nodegit.github.com
Public
forked from
nodegit/nodegit.github.com
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit.github.com
/
generate
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (23 loc) · 919 Bytes
Breadcrumbs
nodegit.github.com
/
generate
/
index.js
Copy path
File metadata and controls
29 lines (23 loc) · 919 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var
fs
=
require
(
'fs'
)
;
var
path
=
require
(
'path'
)
;
var
fse
=
require
(
'fs-extra'
)
;
var
glob
=
require
(
'glob'
)
.
sync
;
var
generatedData
=
require
(
'./lib/generated_data'
)
;
var
writeApiDocs
=
require
(
'./lib/write_api_docs'
)
;
var
addConvenienceMethods
=
require
(
'./lib/add_convenience_methods.js'
)
;
var
idefsPath
=
'generate/nodegit/generate/output/idefs.json'
;
var
missingtestsPath
=
'generate/nodegit/generate/output/missing-tests.json'
var
baseData
=
generatedData
(
idefsPath
,
missingtestsPath
)
;
var
fullData
;
addConvenienceMethods
(
baseData
)
.
then
(
function
(
fullData
)
{
writeApiDocs
(
fullData
)
;
}
)
;
// Copy convenience methods in.
fse
.
removeSync
(
'guides'
)
;
fse
.
copySync
(
'generate/nodegit/guides/'
,
'guides'
)
;
glob
(
'guides/**/README.md'
)
.
forEach
(
function
(
file
)
{
var
dir
=
path
.
dirname
(
file
)
;
var
filename
=
path
.
basename
(
file
)
;
// Rename README.md => index.md
fs
.
renameSync
(
file
,
dir
+
"/"
+
'index.md'
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL