From 15d896940574a5917a2a5c15735d8f74053ee50b Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 10 Apr 2021 18:10:56 -0500 Subject: [PATCH] Remove github links and comments from formulae --- helpers/build-homebrew-list.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/helpers/build-homebrew-list.js b/helpers/build-homebrew-list.js index 072e9dc..a5e4d59 100644 --- a/helpers/build-homebrew-list.js +++ b/helpers/build-homebrew-list.js @@ -184,14 +184,15 @@ class MakeHomebrewList { formulaeRow.name = formulaeRow.fullName.split(' ')[0] - formulaeRow.links = tr.querySelectorAll('a').map( a => { - const href = a.getAttribute('href') - return { - href, - label: a.rawText, - // a - } - }) + formulaeRow.links = [] + // formulaeRow.links = tr.querySelectorAll('a').map( a => { + // const href = a.getAttribute('href') + // return { + // href, + // label: a.rawText, + // // a + // } + // }) // if (formulaeRow.links.length !== 0) console.log('formulaeRow', formulaeRow.links) @@ -280,7 +281,7 @@ class MakeHomebrewList { category }),//`/formula/${slug}`, category, - content: formulae.comments, + content: '',//formulae.comments, relatedLinks: [ { href: `https://formulae.brew.sh/formula/${formulae.name}`,