Skip to content

Commit f4922f8

Browse files
authored
Merge pull request #916 from ethereum/dev
Deploy v1.3.3
2 parents f3fcb4b + e5cec95 commit f4922f8

File tree

34 files changed

+613
-385
lines changed

34 files changed

+613
-385
lines changed

.all-contributorsrc

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@
301301
"avatar_url": "https://avatars3.githubusercontent.com/u/6292?v=4",
302302
"profile": "https://shazow.net/",
303303
"contributions": [
304-
"content"
304+
"content",
305+
"ideas",
306+
"a11y"
305307
]
306308
},
307309
{
@@ -1419,6 +1421,35 @@
14191421
"contributions": [
14201422
"ideas"
14211423
]
1424+
},
1425+
{
1426+
"login": "linda-xie",
1427+
"name": "Linda Xie",
1428+
"avatar_url": "https://avatars0.githubusercontent.com/u/55955358?v=4",
1429+
"profile": "https://github.com/linda-xie",
1430+
"contributions": [
1431+
"review",
1432+
"content"
1433+
]
1434+
},
1435+
{
1436+
"login": "IanEck",
1437+
"name": "Ian Eck",
1438+
"avatar_url": "https://avatars2.githubusercontent.com/u/5863338?v=4",
1439+
"profile": "https://github.com/IanEck",
1440+
"contributions": [
1441+
"review",
1442+
"content"
1443+
]
1444+
},
1445+
{
1446+
"login": "cwaring",
1447+
"name": "Chris Waring",
1448+
"avatar_url": "https://avatars2.githubusercontent.com/u/106938?v=4",
1449+
"profile": "http://wwaves.co",
1450+
"contributions": [
1451+
"code"
1452+
]
14221453
}
14231454
],
14241455
"contributorsPerLine": 7,

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
2-
[![All Contributors](https://img.shields.io/badge/all_contributors-154-orange.svg?style=flat-square)](#contributors)
2+
[![All Contributors](https://img.shields.io/badge/all_contributors-157-orange.svg?style=flat-square)](#contributors)
33
<!-- ALL-CONTRIBUTORS-BADGE:END -->
44

55
<h1 align="center" style="margin-top: 1em; margin-bottom: 3em;">
@@ -272,7 +272,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
272272
<td align="center"><a href="https://github.com/phillux"><img src="https://avatars1.githubusercontent.com/u/6450379?v=4" width="100px;" alt=""/><br /><sub><b>Phil </b></sub></a><br /><a href="#content-phillux" title="Content">🖋</a></td>
273273
<td align="center"><a href="https://exomel.com"><img src="https://avatars1.githubusercontent.com/u/11348?v=4" width="100px;" alt=""/><br /><sub><b>Rémi Prévost</b></sub></a><br /><a href="#content-remiprev" title="Content">🖋</a></td>
274274
<td align="center"><a href="http://shanejonas.net"><img src="https://avatars2.githubusercontent.com/u/364566?v=4" width="100px;" alt=""/><br /><sub><b>Shane</b></sub></a><br /><a href="#content-shanejonas" title="Content">🖋</a></td>
275-
<td align="center"><a href="https://shazow.net/"><img src="https://avatars3.githubusercontent.com/u/6292?v=4" width="100px;" alt=""/><br /><sub><b>Andrey Petrov</b></sub></a><br /><a href="#content-shazow" title="Content">🖋</a></td>
275+
<td align="center"><a href="https://shazow.net/"><img src="https://avatars3.githubusercontent.com/u/6292?v=4" width="100px;" alt=""/><br /><sub><b>Andrey Petrov</b></sub></a><br /><a href="#content-shazow" title="Content">🖋</a> <a href="#ideas-shazow" title="Ideas, Planning, & Feedback">🤔</a> <a href="#a11y-shazow" title="Accessibility">️️️️♿️</a></td>
276276
<td align="center"><a href="https://twitter.com/smpalladino"><img src="https://avatars2.githubusercontent.com/u/429604?v=4" width="100px;" alt=""/><br /><sub><b>Santiago Palladino</b></sub></a><br /><a href="#content-spalladino" title="Content">🖋</a></td>
277277
<td align="center"><a href="http://www.twitter.com/timbeiko"><img src="https://avatars0.githubusercontent.com/u/9390255?v=4" width="100px;" alt=""/><br /><sub><b>Tim Beiko</b></sub></a><br /><a href="#content-timbeiko" title="Content">🖋</a></td>
278278
</tr>
@@ -429,10 +429,18 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
429429
<td align="center"><a href="https://www.emin.tech"><img src="https://avatars2.githubusercontent.com/u/10382507?v=4" width="100px;" alt=""/><br /><sub><b>Ahmet Emin Koçal</b></sub></a><br /><a href="#translation-ahmeteminkocal" title="Translation">🌍</a></td>
430430
<td align="center"><a href="http://empire.studio"><img src="https://avatars0.githubusercontent.com/u/33502282?v=4" width="100px;" alt=""/><br /><sub><b>Aqeel</b></sub></a><br /><a href="#ideas-qnou" title="Ideas, Planning, & Feedback">🤔</a></td>
431431
</tr>
432+
<tr>
433+
<td align="center"><a href="https://github.com/linda-xie"><img src="https://avatars0.githubusercontent.com/u/55955358?v=4" width="100px;" alt=""/><br /><sub><b>Linda Xie</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/pulls?q=is%3Apr+reviewed-by%3Alinda-xie" title="Reviewed Pull Requests">👀</a> <a href="#content-linda-xie" title="Content">🖋</a></td>
434+
<td align="center"><a href="https://github.com/IanEck"><img src="https://avatars2.githubusercontent.com/u/5863338?v=4" width="100px;" alt=""/><br /><sub><b>Ian Eck</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/pulls?q=is%3Apr+reviewed-by%3AIanEck" title="Reviewed Pull Requests">👀</a> <a href="#content-IanEck" title="Content">🖋</a></td>
435+
<td align="center"><a href="http://wwaves.co"><img src="https://avatars2.githubusercontent.com/u/106938?v=4" width="100px;" alt=""/><br /><sub><b>Chris Waring</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=cwaring" title="Code">💻</a></td>
436+
</tr>
432437
</table>
433438

434439
<!-- markdownlint-enable -->
435440
<!-- prettier-ignore-end -->
436441
<!-- ALL-CONTRIBUTORS-LIST:END -->
437442

438443
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
444+
445+
**A note on emojis**
446+
We use [Twemoji](https://twemoji.twitter.com/), an open-source emoji set created by Twitter. These are hosted by us, and used to provide a consistent experience across operating systems.

docs/.vuepress/components/BuildPage.vue

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</Button>
1818
</div>
1919
<div class="mt-4">
20-
<img src="/ethereum-studio.gif" class="w-100" />
20+
<img :src="$withBase('/ethereum-studio.gif')" class="w-100" />
2121
</div>
2222
<p class="l5 tc-text100 center">
23-
<!-- TODO how to include links within translations? -->
23+
<!-- TODO translate string -->
2424
Powered by
2525
<a
2626
href="https://superblocks.com"
@@ -43,7 +43,7 @@
4343
v-for="template in templates"
4444
class="feature mt-4 mr-1 ml-1 flex flex-column"
4545
>
46-
<span class="l1 ma-0">{{ template.icon }}</span>
46+
<span class="l1 ma-0" v-html="inlineMd(template.icon)" />
4747
<div class="box">
4848
<h3 class="l4 ma-0 tc-text400">{{ template.title }}</h3>
4949
<p class="l7 tc-text200">{{ template.description }}</p>
@@ -79,7 +79,7 @@
7979
class="hide-icon"
8080
>
8181
<img
82-
:src="resource.img.src"
82+
:src="$withBase(resource.img.src)"
8383
:alt="resource.img.alt || resource.title"
8484
/>
8585
</a>
@@ -122,9 +122,14 @@
122122

123123
<script>
124124
import { translate } from '../theme/utils/translations'
125+
const { inlineMd } = require('../theme/utils/inline-md')
125126
126127
export default {
127128
methods: {
129+
inlineMd: function(str) {
130+
return inlineMd(str)
131+
},
132+
128133
translateString: function(str) {
129134
return translate(str, this.$lang)
130135
},
@@ -145,7 +150,7 @@ export default {
145150
url: 'https://studio.ethereum.org/1',
146151
text: this.translateString('page-build-hello-world-link-text')
147152
},
148-
icon: '👋'
153+
icon: ':wave:'
149154
},
150155
{
151156
title: this.translateString('page-build-coin-contract-title'),
@@ -156,7 +161,7 @@ export default {
156161
url: 'https://studio.ethereum.org/2',
157162
text: this.translateString('page-build-coin-contract-link-text')
158163
},
159-
icon: '🗝️'
164+
icon: ':key:'
160165
},
161166
{
162167
title: this.translateString('page-build-crypto-pizza-title'),
@@ -167,7 +172,7 @@ export default {
167172
url: 'https://studio.ethereum.org/3',
168173
text: this.translateString('page-build-crypto-pizza-link-text')
169174
},
170-
icon: '🍕'
175+
icon: ':pizza:'
171176
}
172177
]
173178
},

docs/.vuepress/components/Card.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:level="level"
1111
:hero="hero"
1212
:header="header"
13+
:headerIsEmoji="headerIsEmoji"
1314
:leftimg="leftimg"
1415
:title="title"
1516
:content="content"
@@ -64,6 +65,11 @@ export default {
6465
required: false,
6566
type: String
6667
},
68+
headerIsEmoji: {
69+
required: false,
70+
type: Boolean,
71+
default: false
72+
},
6773
leftimg: {
6874
required: false,
6975
type: Boolean

docs/.vuepress/components/CardInner.vue

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
>
99
<template v-if="header">
1010
<!-- Emoji header -->
11-
<div v-if="isEmoji" class="header l1 mt-0 mb-1 mr-1">
12-
{{ header }}
13-
</div>
11+
<div
12+
v-if="headerIsEmoji"
13+
class="header l1 mt-0 mb-1 mr-1"
14+
v-html="inlineMd(header)"
15+
/>
1416
<!-- Image header -->
1517
<div
1618
v-else
@@ -20,12 +22,15 @@
2022
</template>
2123

2224
<div class="flex flex-column flex-1">
23-
<h3 :is="itemTitleTag" class="l4 mb-05 mt-0 tc-text500">
24-
{{ title }}
25-
</h3>
26-
<p class="l7 mb-1 mt-0 tc-text100 art-meta flex flex-center">
27-
{{ content }}
28-
</p>
25+
<h3
26+
:is="itemTitleTag"
27+
class="l4 mb-05 mt-0 tc-text500"
28+
v-html="inlineMd(title)"
29+
/>
30+
<p
31+
class="l7 mb-1 mt-0 tc-text100 art-meta flex flex-center"
32+
v-html="inlineMd(content)"
33+
/>
2934

3035
<div v-if="link" class="mt-auto mb-0">
3136
<template v-if="Array.isArray(link)">
@@ -41,20 +46,26 @@
4146
>
4247
</template>
4348
<template v-else-if="link.text">
44-
<Button v-if="link.button" :to="link.to" class="inline-block">{{
45-
link.text
46-
}}</Button>
49+
<Button
50+
v-if="link.button"
51+
:to="link.to"
52+
class="inline-block"
53+
v-html="inlineMd(link.text)"
54+
/>
4755
<a
4856
v-else-if="isExternal(link.to)"
4957
:href="link.to"
5058
target="_blank"
5159
rel="noopener noreferrer"
5260
class="mb-05 inline-block"
53-
>{{ link.text }}</a
54-
>
55-
<router-link v-else :to="link.to" class="mb-05 inline-block">
56-
{{ link.text }}
57-
</router-link>
61+
v-html="inlineMd(link.text)"
62+
/>
63+
<router-link
64+
v-else
65+
:to="link.to"
66+
class="mb-05 inline-block"
67+
v-html="inlineMd(link.text)"
68+
/>
5869
</template>
5970
</div>
6071
</div>
@@ -63,6 +74,7 @@
6374

6475
<script>
6576
import { isExternal, ensureExt } from '../theme/utils/util'
77+
const { inlineMd } = require('../theme/utils/inline-md')
6678
6779
export default {
6880
name: 'CardInner',
@@ -79,6 +91,11 @@ export default {
7991
required: false,
8092
type: String
8193
},
94+
headerIsEmoji: {
95+
required: false,
96+
type: Boolean,
97+
default: false
98+
},
8299
leftimg: {
83100
required: false,
84101
type: Boolean
@@ -100,18 +117,14 @@ export default {
100117
itemTitleTag() {
101118
return 'h' + this.level
102119
},
103-
isEmoji() {
104-
var emojiExp = /(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g
105-
var t = this.header.match(emojiExp)
106-
return t && t.length
107-
},
108120
cardTag() {
109121
tag = false(this.link && isExternal(this.link.to)) && (tag = 'a')
110122
!this.clickable && (tag = 'div')
111123
return tag
112124
}
113125
},
114126
methods: {
127+
inlineMd,
115128
isExternal,
116129
ensureExt
117130
}

docs/.vuepress/components/CardList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
span="3"
66
:hero="item.hero"
77
:header="item.header"
8+
:headerIsEmoji="item.headerIsEmoji"
89
:leftimg="item.leftimg"
910
:title="item.title"
1011
:content="item.content"

docs/.vuepress/components/HomePage.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
<ul class="tc-text500 ml-05">
2323
<li
2424
v-for="item in block.items"
25-
:class="
26-
`mb-05 ml-025 ${item.highlight && 'highlight highlight-small'}`
27-
"
25+
:class="`mb-05 ml-025 ${item.highlight && 'highlight'}`"
2826
>
2927
<router-link :to="item.to" class="tc-text300 tc-h-primary500">
3028
{{ translateString(item.text) }}

docs/.vuepress/config.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const fs = require('fs')
2+
const { parse } = require('twemoji-parser')
13
const { translate } = require('./theme/utils/translations')
24
const { renderHeaderWithExplicitAnchor } = require('./theme/utils/markdown')
35

@@ -87,6 +89,19 @@ module.exports = {
8789
return `<${token.tag} ${attrs}>`
8890
}
8991

92+
r.emoji = (token, idx) => {
93+
// Get file name from parser
94+
let file = parse(token[idx].content)
95+
.find(({ url }) => url)
96+
.url.split('/')
97+
.pop()
98+
// get svg file contents, remove xml tag, and add a class
99+
let svg = fs.readFileSync('node_modules/twemoji/svg/' + file, 'utf8')
100+
svg = svg.replace(/\<?[^)]+\?>/im, '')
101+
svg = svg.replace(/<svg/g, '<svg class="twemoji-svg"')
102+
return svg
103+
}
104+
90105
r.heading_open = (tokens, idx, options, env, slf) => {
91106
tkn = tokens[idx]
92107
const anchor =
@@ -607,6 +622,7 @@ module.exports = {
607622
hostname: 'https://ethereum.org',
608623
changefreq: 'weekly'
609624
}
610-
]
625+
],
626+
['vuepress-plugin-ipfs']
611627
]
612628
}

docs/.vuepress/theme/components/Hero.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
alt="Ethereum.org - Light"
1010
width="380"
1111
height="380"
12-
:src="videoSrc"
12+
:src="$withBase(videoSrc)"
1313
playsinline
1414
autoplay
1515
loop

0 commit comments

Comments
 (0)