Skip to content

Commit 85ea3c2

Browse files
committed
Remove references to twitter
1 parent 36c738e commit 85ea3c2

24 files changed

+1
-95
lines changed

crawl/opencollective.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
* Name.
1414
* @property {string} slug
1515
* Slug.
16-
* @property {string | undefined} twitterHandle
17-
* Twitter username.
1816
* @property {string | undefined} website
1917
* Website.
2018
*
@@ -59,8 +57,6 @@
5957
* Whether it’s spam.
6058
* @property {number} total
6159
* Total donations.
62-
* @property {string | undefined} [twitter]
63-
* Twitter username.
6460
* @property {string | undefined} [url]
6561
* URL.
6662
*/
@@ -82,7 +78,6 @@ const endpoint = 'https://api.opencollective.com/graphql/v2'
8278
const variables = {slug: 'unified'}
8379

8480
const ghBase = 'https://github.com/'
85-
const twBase = 'https://twitter.com/'
8681

8782
// To do: paginate.
8883
const query = `query($slug: String) {
@@ -96,7 +91,6 @@ const query = `query($slug: String) {
9691
imageUrl
9792
name
9893
slug
99-
twitterHandle
10094
website
10195
}
10296
totalDonations { value }
@@ -137,13 +131,12 @@ const members = []
137131
for (const d of collectiveBody.data.collective.members.nodes) {
138132
const oc = d.account.slug
139133
const github = d.account.githubHandle || undefined
140-
const twitter = d.account.twitterHandle || undefined
141134
let url = d.account.website || undefined
142135
const info = control.find(function (d) {
143136
return d.oc === oc
144137
})
145138

146-
if (url === ghBase + github || url === twBase + twitter) {
139+
if (url === ghBase + github) {
147140
url = undefined
148141
}
149142

@@ -163,7 +156,6 @@ for (const d of collectiveBody.data.collective.members.nodes) {
163156
oc,
164157
spam: !info || info.spam,
165158
total: d.totalDonations.value,
166-
twitter,
167159
url
168160
}
169161

doc/learn/create-a-plugin.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
archive: true
33
authorGithub: wooorm
4-
authorTwitter: wooorm
54
author: Titus Wormer
65
description: Guide that shows how to create a plugin
76
group: guide

doc/learn/create-a-rehype-plugin.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: Guide that shows how to create a rehype plugin
65
group: guide

doc/learn/create-a-remark-plugin.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: Guide that shows how to create a remark plugin
65
group: guide

doc/learn/create-a-retext-plugin.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: Guide that shows how to create a retext plugin
65
group: guide

doc/learn/create-an-editor.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: Guide that shows how to create a fancy app ✨
65
group: guide

doc/learn/find-node.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: Murderlon
3-
authorTwitter: Murderlon
43
author: Merlijn Vos
54
description: How to find a node in any unist syntax tree
65
group: recipe

doc/learn/introduction-to-syntax-trees.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: Guide that shows the basics of syntax trees (ASTs)
65
group: guide

doc/learn/introduction-to-unified.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: Murderlon
3-
authorTwitter: Murderlon
43
author: Merlijn Vos
54
description: Guide that summarizes the what and why of unified
65
group: guide

doc/learn/publish-plugin.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: Guide that shows how to share a plugin with the world.
65
group: guide

doc/learn/remark-html.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: How to use remark to turn markdown into HTML, and to allow embedded HTML inside markdown
65
group: recipe

doc/learn/remark-table.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: How to support GitHub-style tables in remark (or react-markdown)
65
group: recipe

doc/learn/remove-node.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: How to remove nodes in any unist tree
65
group: recipe

doc/learn/tree-traversal.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: How to do tree traversal (also known as walking or visiting a tree)
65
group: recipe

doc/learn/unified-in-the-browser.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: How to use unified in the browser
65
group: guide

doc/learn/using-plugins.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: How to use plugins and presets
65
group: guide

doc/learn/using-unified.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
authorGithub: wooorm
3-
authorTwitter: wooorm
43
author: Titus Wormer
54
description: Guide that delves into transforming markdown to HTML
65
group: guide

generate/atom/icon/tw.js

-25
This file was deleted.

generate/atom/micro/tw.js

-20
This file was deleted.

generate/component/sponsor/item.js

-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {h} from 'hastscript'
88
import {item as card} from '../../atom/card/item.js'
99
import {gh as ghBadge} from '../../atom/micro/gh.js'
1010
import {oc as ocBadge} from '../../atom/micro/oc.js'
11-
import {tw as twitterBadge} from '../../atom/micro/tw.js'
1211
import {url as urlLine} from '../../atom/micro/url.js'
1312

1413
const gh = 'https://github.com/'
@@ -29,10 +28,6 @@ export function item(d) {
2928
footer.push(ghBadge(d.github))
3029
}
3130

32-
if ('twitter' in d && d.twitter) {
33-
footer.push(twitterBadge(d.twitter))
34-
}
35-
3631
if (d.url) {
3732
footer.push(urlLine(d.url, {rel: ['nofollow', 'sponsored']}))
3833
}

generate/molecule/footer.js

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export function footer() {
2020
'li',
2121
h('a', {href: 'https://opencollective.com/unified'}, 'OpenCollective')
2222
),
23-
h('li', {}, h('a', {href: 'https://twitter.com/unifiedjs'}, 'Twitter')),
2423
h('li', {}, h('a', {href: 'https://github.com/unifiedjs'}, 'GitHub'))
2524
])
2625
])

generate/molecule/header.js

-9
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44

55
import {h} from 'hastscript'
66
import {gh} from '../atom/icon/gh.js'
7-
import {tw} from '../atom/icon/tw.js'
87

98
/**
109
* @returns {ElementContent}
1110
*/
1211
export function header() {
13-
const twitter = tw()
1412
const github = gh()
1513

16-
enlarge(twitter)
1714
enlarge(github)
1815

1916
return h('header.container', [
@@ -26,12 +23,6 @@ export function header() {
2623
h('li', {}, h('a', {href: '/community/'}, 'Community'))
2724
]),
2825
h('ol.row.x-show-l.justify-end-l', [
29-
h('li', [
30-
h('a', {href: 'https://twitter.com/unifiedjs'}, [
31-
twitter,
32-
h('span.x-hide-l', 'Twitter')
33-
])
34-
]),
3526
h('li', [
3627
h('a', {href: 'https://github.com/unifiedjs'}, [
3728
github,

generate/page/community.js

-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {byline as sponsorsByline} from '../component/sponsor/byline.js'
1414
import {list as sponsors} from '../component/sponsor/list.js'
1515
import {page} from './page.js'
1616

17-
const twitter = 'https://twitter.com/unifiedjs'
1817
const org = 'https://github.com/unifiedjs'
1918
const base = org + '/.github/blob/HEAD/'
2019
const coc = base + 'code-of-conduct.md'
@@ -89,13 +88,6 @@ export function community(data) {
8988
' section, or on GitHub and npm), describe each project in detail.'
9089
]),
9190
h('h3', 'News'),
92-
h('p', [
93-
'Follow the ',
94-
h('a', {href: twitter}, h('b', '@unifiedjs')),
95-
' account on Twitter for news. ',
96-
'You can also tweet at this account with questions or suggestions, ',
97-
'or mention it when you made something with unified! '
98-
]),
9991
h('p', [
10092
'See the ',
10193
h('a', {href: '/explore/release/'}, 'Releases'),

generate/pipeline/main.js

-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export const main = unified()
6666
og: true,
6767
siteAuthor: 'unified collective',
6868
siteTags: ['ast', 'parse', 'process', 'stringify', 'transform', 'unified'],
69-
siteTwitter: '@unifiedjs',
70-
twitter: true,
7169
type: 'website'
7270
})
7371
.use(rehypeDefer)

0 commit comments

Comments
 (0)