mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-21 06:54:08 -07:00
Remove github links and comments from formulae
This commit is contained in:
parent
4a9156cfd8
commit
15d8969405
1 changed files with 10 additions and 9 deletions
|
|
@ -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}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue