Skip to content

Commit 53118b6

Browse files
Merge branch 'master' of github.com:vuejs/docs-next
2 parents 9a8c6b2 + 37a7e68 commit 53118b6

File tree

16 files changed

+142
-100
lines changed

16 files changed

+142
-100
lines changed

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Note
2+
3+
Thanks for your interest in submitting a PR! At this time, because the docs are in beta, the team is currently in the midst of changes and we are not ready for additional contributions yet.
4+
5+
To bring your issue to the team's attention though, we would recommend [creating an issue](https://github.com/vuejs/docs-next/issues/new) and we'll get to it when we can.
6+
7+
Thanks for your understanding!

src/.vuepress/components/BetaBanner.vue

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,32 @@ export default {}
66
<aside class="beta-banner">
77
<p>
88
⚠️ Beta Version: Docs are still under development and are subject to
9-
change. ⚠️
9+
change.
1010
</p>
1111
</aside>
1212
</template>
1313

14-
<style></style>
14+
<style lang="scss" scoped>
15+
.beta-banner {
16+
position: fixed;
17+
z-index: 20;
18+
top: 3.6rem;
19+
left: 0;
20+
right: 0;
21+
display: flex;
22+
align-items: center;
23+
justify-content: center;
24+
background-color: #fffedb;
25+
box-sizing: border-box;
26+
border-bottom: 1px solid #eaecef;
27+
font-weight: bold;
28+
text-align: center;
29+
padding: 10px 20px;
30+
box-sizing: border-box;
31+
32+
p {
33+
margin: 0;
34+
line-height: 1.4;
35+
}
36+
}
37+
</style>

src/.vuepress/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module.exports = {
159159
'link',
160160
{
161161
href:
162-
'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono&amp;display=swap',
162+
'https://fonts.googleapis.com/css?family=Inter:300,400,600|Open+Sans:400,600;display=swap',
163163
rel: 'stylesheet'
164164
}
165165
],
@@ -210,7 +210,7 @@ module.exports = {
210210
}
211211
],
212212
repo: 'vuejs/docs-next',
213-
editLinks: true,
213+
editLinks: false,
214214
editLinkText: 'Edit this on GitHub!',
215215
docsDir: 'src',
216216
sidebarDepth: 2,

src/.vuepress/styles/index.styl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,6 @@
125125
}
126126
}
127127

128-
.beta-banner
129-
position fixed
130-
z-index 20
131-
top $navbarHeight
132-
left 0
133-
right 0
134-
height 3rem
135-
display flex
136-
align-items center
137-
justify-content center
138-
background-color #fffedb
139-
box-sizing border-box
140-
border-bottom 1px solid $borderColor
141-
font-weight bold
142-
143128
.scrimba,
144129
.vueschool {
145130
background-color: #e7ecf3;

src/.vuepress/theme/components/Home.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ export default {
143143
<style lang="scss">
144144
@import '@theme/styles/_settings.scss';
145145
146+
.home {
147+
font-family: $fontHome;
148+
}
149+
146150
.hero {
147151
padding: calc(100px + 3rem) 40px 30px; // add $betaBannerHeight
148152

src/.vuepress/theme/components/PageEdit.vue

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
<template>
22
<footer class="page-edit">
3-
<div v-if="editLink" class="edit-link">
4-
Caught a mistake or want to contribute to the documentation?
5-
<a :href="editLink" target="_blank" rel="noopener noreferrer">{{
6-
editLinkText
7-
}}</a>
8-
<OutboundLink />
9-
</div>
10-
11-
<div>
12-
Deployed on <a href="https://url.netlify.com/HJ8X2mxP8">Netlify</a>
13-
</div>
14-
15-
<div v-if="lastUpdated" class="last-updated">
16-
<span class="prefix">{{ lastUpdatedText }}:</span>
17-
<span class="time">{{ lastUpdated }}</span>
3+
<div class="container">
4+
<p>
5+
Deployed on
6+
<a href="https://url.netlify.com/HJ8X2mxP8">Netlify</a>.
7+
<span v-if="editLink" class="edit-link">
8+
Caught a mistake or want to contribute to the documentation?
9+
<a
10+
:href="editLink"
11+
target="_blank"
12+
rel="noopener noreferrer"
13+
>
14+
{{ editLinkText }}
15+
<OutboundLink />
16+
</a>
17+
</span>
18+
<template v-if="lastUpdated" class="last-updated">
19+
<br />
20+
<span class="prefix">{{ lastUpdatedText }}:</span>
21+
<span class="time">{{ lastUpdated }}</span>
22+
</template>
23+
</p>
1824
</div>
1925
</footer>
2026
</template>
@@ -104,7 +110,9 @@ export default {
104110
}
105111
</script>
106112

107-
<style>
113+
<style lang="scss" scoped>
114+
@import '@theme/styles/_settings.scss';
115+
108116
/*
109117
This entire style block is MVP style wise and will likely
110118
be changed with the new atomic theme. Changes are welcome!
@@ -115,10 +123,20 @@ export default {
115123
116124
.page-edit {
117125
padding: 0 1.5rem;
118-
display: flex;
119-
align-items: center;
120-
flex-direction: column;
121126
max-width: 740px;
122127
margin: 0 auto;
128+
font-size: 0.95em;
129+
color: $light;
130+
text-align: center;
131+
132+
p {
133+
margin: 0.8rem auto;
134+
}
135+
136+
.container {
137+
border: 1px solid #eaecef;
138+
border-radius: 5px;
139+
padding: 0 1.5rem;
140+
}
123141
}
124142
</style>
Lines changed: 30 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
<template>
2-
<div
3-
v-if="prev || next"
4-
class="page-nav"
5-
>
2+
<div v-if="prev || next" class="page-nav">
63
<p class="inner">
7-
<span
8-
v-if="prev"
9-
class="prev"
10-
>
4+
<span v-if="prev" class="prev">
115
126
<a
137
v-if="prev.type === 'external'"
@@ -17,41 +11,24 @@
1711
rel="noopener noreferrer"
1812
>
1913
{{ prev.title || prev.path }}
20-
2114
<OutboundLink />
2215
</a>
2316

24-
<RouterLink
25-
v-else
26-
class="prev"
27-
:to="prev.path"
28-
>
29-
{{ prev.title || prev.path }}
30-
</RouterLink>
17+
<RouterLink v-else class="prev" :to="prev.path">{{ prev.title || prev.path }}</RouterLink>
3118
</span>
3219

33-
<span
34-
v-if="next"
35-
class="next"
36-
>
20+
<span v-if="next" class="next">
3721
<a
3822
v-if="next.type === 'external'"
3923
:href="next.path"
4024
target="_blank"
4125
rel="noopener noreferrer"
4226
>
4327
{{ next.title || next.path }}
44-
4528
<OutboundLink />
4629
</a>
4730

48-
<RouterLink
49-
v-else
50-
:to="next.path"
51-
>
52-
{{ next.title || next.path }}
53-
</RouterLink>
54-
31+
<RouterLink v-else :to="next.path">{{ next.title || next.path }}</RouterLink>→
5532
</span>
5633
</p>
5734
</div>
@@ -68,21 +45,21 @@ export default {
6845
props: ['sidebarItems'],
6946
7047
computed: {
71-
prev () {
48+
prev() {
7249
return resolvePageLink(LINK_TYPES.PREV, this)
7350
},
7451
75-
next () {
52+
next() {
7653
return resolvePageLink(LINK_TYPES.NEXT, this)
7754
}
7855
}
7956
}
8057
81-
function resolvePrev (page, items) {
58+
function resolvePrev(page, items) {
8259
return find(page, items, -1)
8360
}
8461
85-
function resolveNext (page, items) {
62+
function resolveNext(page, items) {
8663
return find(page, items, 1)
8764
}
8865
@@ -99,7 +76,7 @@ const LINK_TYPES = {
9976
}
10077
}
10178
102-
function resolvePageLink (
79+
function resolvePageLink(
10380
linkType,
10481
{ $themeConfig, $page, $route, $site, sidebarItems }
10582
) {
@@ -123,7 +100,7 @@ function resolvePageLink (
123100
}
124101
}
125102
126-
function find (page, items, offset) {
103+
function find(page, items, offset) {
127104
const res = []
128105
flatten(items, res)
129106
for (let i = 0; i < res.length; i++) {
@@ -134,7 +111,7 @@ function find (page, items, offset) {
134111
}
135112
}
136113
137-
function flatten (items, res) {
114+
function flatten(items, res) {
138115
for (let i = 0, l = items.length; i < l; i++) {
139116
if (items[i].type === 'group') {
140117
flatten(items[i].children || [], res)
@@ -146,18 +123,22 @@ function flatten (items, res) {
146123
</script>
147124

148125
<style lang="stylus">
149-
@require '../styles/wrapper.styl'
150-
151-
.page-nav
152-
@extend $wrapper
153-
padding-top 1rem
154-
padding-bottom 0
155-
.inner
156-
min-height 2rem
157-
margin-top 0
158-
border-top 1px solid $borderColor
159-
padding-top 1rem
160-
overflow auto // clear float
161-
.next
162-
float right
126+
@require '../styles/wrapper.styl';
127+
128+
.page-nav {
129+
@extend $wrapper;
130+
padding-top: 1rem;
131+
padding-bottom: 0;
132+
133+
.inner {
134+
min-height: 2rem;
135+
margin-top: 0;
136+
padding-top: 1rem;
137+
overflow: auto; // clear float
138+
}
139+
140+
.next {
141+
float: right;
142+
}
143+
}
163144
</style>

src/.vuepress/theme/components/sponsors/PatreonSponsors.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</a>
2727
</div>
2828

29-
<RoundedButton url="/support-vuejs/">Become a Sponsor!</RoundedButton>
29+
<RoundedButton url="https://vuejs.org/support-vuejs/">Become a Sponsor!</RoundedButton>
3030
</template>
3131
</SponsorsLayout>
3232
</template>

src/.vuepress/theme/components/ui/SocialIcon.vue

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<a class="social-icon" :href="link" :title="type" :class="extraClass">
3-
<i class="fab" :class="iconClass"/>
3+
<i class="fa" :class="iconClass" />
44
<span class="sr-only">{{ type }}</span>
55
</a>
66
</template>
@@ -15,7 +15,7 @@ const SOCIAL_ICON_CLASS_MAP = {
1515
Facebook: 'fa-facebook-square',
1616
Instagram: 'fa-instagram',
1717
CodePen: 'fa-codepen',
18-
Medium: 'fa-medium-m'
18+
Medium: 'fa-medium'
1919
}
2020
2121
export default {
@@ -37,7 +37,7 @@ export default {
3737
},
3838
3939
computed: {
40-
iconClass () {
40+
iconClass() {
4141
return SOCIAL_ICON_CLASS_MAP[this.type]
4242
}
4343
}
@@ -46,23 +46,30 @@ export default {
4646

4747
<style lang="scss" scoped>
4848
.fa {
49-
&-github, &-codepen, &-envelope {
49+
&-github,
50+
&-codepen,
51+
&-envelope {
5052
color: #000;
5153
}
5254
53-
&-twitter, &-twitter-square {
55+
&-twitter,
56+
&-twitter-square {
5457
color: #1da1f3;
5558
}
5659
57-
&-linkedin, &-linkedin-square {
60+
&-linkedin,
61+
&-linkedin-square {
5862
color: #0077b5;
5963
}
6064
61-
&-facebook, &-facebook-square {
65+
&-facebook,
66+
&-facebook-square {
6267
color: #3b5998;
6368
}
6469
65-
&-youtube, &-youtube-play, &-youtube-square {
70+
&-youtube,
71+
&-youtube-play,
72+
&-youtube-square {
6673
color: #f00;
6774
}
6875

src/.vuepress/theme/styles/_settings.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ $info: #1c90f3;
1212
$MQNarrow: 959px;
1313
$MQMobile: 719px;
1414
$MQMobileNarrow: 419px;
15+
16+
$fontHome: 'Open Sans', 'Inter', Roboto, Oxygen, Fira Sans, Helvetica Neue,
17+
sans-serif;

0 commit comments

Comments
 (0)