Remove github links and comments from formulae

This commit is contained in:
Sam Carlton 2021-04-10 18:10:56 -05:00
parent 4a9156cfd8
commit 15d8969405

View file

@ -184,14 +184,15 @@ class MakeHomebrewList {
formulaeRow.name = formulaeRow.fullName.split(' ')[0] formulaeRow.name = formulaeRow.fullName.split(' ')[0]
formulaeRow.links = tr.querySelectorAll('a').map( a => { formulaeRow.links = []
const href = a.getAttribute('href') // formulaeRow.links = tr.querySelectorAll('a').map( a => {
return { // const href = a.getAttribute('href')
href, // return {
label: a.rawText, // href,
// a // label: a.rawText,
} // // a
}) // }
// })
// if (formulaeRow.links.length !== 0) console.log('formulaeRow', formulaeRow.links) // if (formulaeRow.links.length !== 0) console.log('formulaeRow', formulaeRow.links)
@ -280,7 +281,7 @@ class MakeHomebrewList {
category category
}),//`/formula/${slug}`, }),//`/formula/${slug}`,
category, category,
content: formulae.comments, content: '',//formulae.comments,
relatedLinks: [ relatedLinks: [
{ {
href: `https://formulae.brew.sh/formula/${formulae.name}`, href: `https://formulae.brew.sh/formula/${formulae.name}`,