build(deps-dev): bump standard from 14.3.4 to 16.0.3 (#250)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Erick Zhao <erick@hotmail.ca>
This commit is contained in:
Родитель
9f4d083231
Коммит
8063729b97
|
@ -6,17 +6,16 @@ module.exports = new AlgoliaIndex('tutorials', getRecords())
|
|||
|
||||
function getRecords () {
|
||||
return chain(Object.values(require('electron-i18n').docs['en-US']))
|
||||
.filter(tutorial => !tutorial.isApiDoc && !tutorial.isApiStructureDoc)
|
||||
.filter(tutorial => {
|
||||
const { isApiDoc, isApiStructureDoc, slug } = tutorial
|
||||
return !isApiDoc && !isApiStructureDoc && slug !== 'README'
|
||||
})
|
||||
.map(tutorial => {
|
||||
const { title, githubUrl, slug, sections, href } = tutorial
|
||||
const objectID = `tutorial-${slug}`
|
||||
const html = sections.map(section => section.html).join('\n\n')
|
||||
const body = cheerio.load(html).text()
|
||||
|
||||
// ignore files that have been renamed
|
||||
if (!title && body.startsWith('Moved to')) return
|
||||
if (slug === 'README') return
|
||||
|
||||
const keyValuePairs = [
|
||||
'is:doc',
|
||||
'is:tutorial',
|
||||
|
@ -37,6 +36,5 @@ function getRecords () {
|
|||
keyValuePairs
|
||||
}
|
||||
})
|
||||
.compact() // remove nulls from early returns above
|
||||
.value()
|
||||
}
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -38,9 +38,8 @@
|
|||
"lodash": "^4.17.10",
|
||||
"nanohtml": "^1.9.0",
|
||||
"node-fetch": "^2.6.0",
|
||||
"prettier-standard": "^16.4.1",
|
||||
"semantic-release": "^17.2.1",
|
||||
"standard": "^14.3.1",
|
||||
"standard": "^16.0.3",
|
||||
"tap-summary": "^4.0.0",
|
||||
"tape": "^4.9.0"
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче