Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
15 lines
506 B
JavaScript
15 lines
506 B
JavaScript
const loadPages = require('../pages')
|
|
|
|
module.exports = async function findIndexablePages () {
|
|
const allPages = await loadPages()
|
|
const indexablePages = allPages
|
|
// exclude pages that are part of WIP products
|
|
.filter(page => !page.parentProduct || !page.parentProduct.wip)
|
|
// exclude index homepages
|
|
.filter(page => !page.relativePath.endsWith('index.md'))
|
|
|
|
console.log('total pages', allPages.length)
|
|
console.log('indexable pages', indexablePages.length)
|
|
return indexablePages
|
|
}
|