This commit is contained in:
Zeke Sikelianos 2018-05-14 10:21:33 -07:00
Родитель b656cc9a13
Коммит 05f6328bc4
2 изменённых файлов: 613 добавлений и 313 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -12,9 +12,7 @@ apis.forEach(api => {
method.type = 'staticMethod'
method.tldr = getTLDR(method)
const slug = method.name.replace(/\W/g, '').toLowerCase()
method.url = `https://electronjs.org/docs/api/${api.slug}#${
api.slug
}${slug}`
method.url = `https://electronjs.org/docs/api/${api.slug}#${api.slug}${slug}`
delete method.signature
results.push(method)
})
@ -24,6 +22,8 @@ apis.forEach(api => {
method.title = `${api.instanceName}.${method.name}${method.signature}`
method.type = 'instanceMethod'
method.tldr = getTLDR(method)
const slug = method.name.replace(/\W/g, '').toLowerCase()
method.url = `https://electronjs.org/docs/api/${api.slug}#${api.slug}${slug}`
delete method.signature
results.push(method)
})
@ -32,9 +32,7 @@ apis.forEach(api => {
events.forEach(event => {
event.title = `${api.name}.on('${event.name}')`
event.type = 'event'
event.url = `https://electronjs.org/docs/api/${api.slug}#event-${
event.name
}`
event.url = `https://electronjs.org/docs/api/${api.slug}#event-${event.name}`
event.tldr = getTLDR(event)
results.push(event)
})
@ -43,9 +41,7 @@ apis.forEach(api => {
instanceEvents.forEach(event => {
event.title = `${api.instanceName}.on('${event.name}')`
event.type = 'event'
event.url = `https://electronjs.org/docs/api/${api.slug}#event-${
event.name
}`
event.url = `https://electronjs.org/docs/api/${api.slug}#event-${event.name}`
event.tldr = getTLDR(event)
results.push(event)
})