Skip to content

Commit 6b93f15

Browse files
committed
Rename "Introduction" to "Documentation". Recategorize contributors into two sections (early contributors and other contributors). Fix background color issue with preferences switch
1 parent 716a6bc commit 6b93f15

File tree

4 files changed

+38
-37
lines changed

4 files changed

+38
-37
lines changed

docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const vitePressI18nOptions: VitePressI18nOptions = {
140140
text: 'Home',
141141
link: '/'
142142
}, {
143-
text: 'Introduction',
143+
text: 'Documentation',
144144
link: '/intro'
145145
}, {
146146
component: 'VersionSwitcher'

docs/.vitepress/theme/author/ProjectTeam.vue

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,54 +27,53 @@ const coreMembers = [
2727
]
2828
2929
const otherContributorsList = [
30-
"469512345",
31-
"Sytm",
32-
"MC-XiaoHei",
33-
"Timongcraft",
34-
"Strokkur424",
30+
"Abelkrijgtalles",
31+
"agonkolgeci",
3532
"AkaGiant",
36-
"Osiris-Team",
37-
"Combustible",
38-
"SB2DD",
39-
"Euphillya",
33+
"booky10",
4034
"CJCrafter",
41-
"Gregzeee",
42-
"powercasgamer",
43-
"agonkolgeci",
44-
"Xemii16",
45-
"Abelkrijgtalles",
4635
"dkim19375",
36+
"EnragedRabisu",
37+
"Euphillya",
38+
"Gregzeee",
39+
"Kadeluxe",
40+
"MatrixTunnel",
41+
"MC-XiaoHei",
4742
"misode",
48-
"booky10",
4943
"NextdoorPsycho",
44+
"Osiris-Team",
45+
"powercasgamer",
5046
"RedstoneWizard08",
51-
"Kadeluxe",
52-
"EnragedRabisu",
53-
"MatrixTunnel",
54-
"HielkeMinecraft",
55-
"Draycia",
56-
"Minenash",
57-
"Michael-Ziluck",
58-
"portlek"
47+
"SB2DD",
48+
"Strokkur424",
49+
"Sytm",
50+
"Timongcraft",
51+
"Xemii16",
5952
]
6053
61-
const earlyContributors = [
54+
const earlyContributorsList = [
55+
"469512345",
6256
"Combustible",
6357
"Draycia",
6458
"HielkeMinecraft",
65-
"Minenash",
6659
"Michael-Ziluck",
60+
"Minenash",
6761
"portlek",
68-
"469512345"
6962
]
7063
71-
const otherContributors = otherContributorsList.map(name => {
72-
if (earlyContributors.includes(name)) {
73-
return buildContributor(name, "Early Contributor")
74-
} else {
75-
return buildContributor(name)
76-
}
77-
})
64+
const otherContributors = otherContributorsList
65+
.sort()
66+
.map(name => {
67+
if (earlyContributorsList.includes(name)) {
68+
return buildContributor(name, "Early Contributor")
69+
} else {
70+
return buildContributor(name)
71+
}
72+
})
73+
74+
const earlyContributors = earlyContributorsList
75+
.sort()
76+
.map(name => buildContributor(name, "Early Contributor"));
7877
7978
function avatar(name: string) {
8079
return `https://wsrv.nl/?url=https://www.github.com/${name}.png`
@@ -102,6 +101,8 @@ function buildContributor(name: string, title: string = "Contributor") {
102101
<br/>
103102
<h1>Brought to you by</h1>
104103
<VPTeamMembers size="medium" :members="coreMembers"/>
104+
<h3>Early Contributors</h3>
105+
<VPTeamMembers size="small" :members="earlyContributors"/>
105106
<h3>Other Contributors</h3>
106107
<VPTeamMembers size="small" :members="otherContributors"/>
107108
</div>

docs/.vitepress/theme/preference/PreferenceSwitch.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ onMounted(() => {
9494
@mousedown="removeOutline"
9595
@blur="restoreOutline"
9696
>
97-
<span>Preference</span>
97+
<span>Preferences</span>
9898
<VTIconChevronDown class="vt-link-icon" :class="{ open: openPreference }"/>
9999
</button>
100100
<div id="preference-switches"
@@ -155,7 +155,7 @@ onMounted(() => {
155155
transition: border-color 0.5s, background-color 0.5s ease;
156156
margin-bottom: 20px;
157157
top: -0.5px;
158-
background-color: var(--vp-c-bg);
158+
background-color: var(--vt-c-bg);
159159
padding-top: 10px;
160160
z-index: 5;
161161
}

docs/en/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hero:
77
tagline: An API for the command UI introduced in Minecraft 1.13
88
actions:
99
- theme: brand
10-
text: Introduction
10+
text: Documentation
1111
link: /intro
1212
- theme: alt
1313
text: Download

0 commit comments

Comments
 (0)