Skip to content

Commit e3ee3b5

Browse files
committed
website: re-generate descriptive & permalink names
1 parent 4e8665d commit e3ee3b5

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

website/sidebars-tools.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function itemsOf(tools) {
1717
return tools.map((tool) => {
1818
return {
1919
type: 'link',
20-
label: tool.longName,
21-
href: 'https://xpack-dev-tools.github.io/' + tool.shortName + '-xpack/',
20+
label: tool.descriptiveName,
21+
href: 'https://xpack-dev-tools.github.io/' + tool.permalinkName + '-xpack/',
2222
}
2323
})
2424
}

website/src/components/HomepageTools/index.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,34 @@ import Link from '@docusaurus/Link';
1717

1818
import tools from '@site/tools';
1919

20-
function Tool({ longName, shortName, isWindows, isMacOS, isLinux }) {
20+
function Tool({ descriptiveName, permalinkName, isWindows, isMacOS, isLinux }) {
2121
return (
2222
<>
2323
<div className="padding-vert--sm">
2424
<div>
25-
<b><Link to={'https://xpack-dev-tools.github.io/' + shortName + '-xpack/'}><span className="sub-web-home-link">{shortName}</span></Link></b> - <b>xPack {longName}</b>
25+
<b><Link to={'https://xpack-dev-tools.github.io/' + permalinkName + '-xpack/'}><span className="sub-web-home-link">{permalinkName}</span></Link></b> - <b>xPack {descriptiveName}</b>
2626
<span className="margin-left-platforms">
2727
{isWindows ? (<span className="platform-windows"></span>) : (<></>)}
2828
{isMacOS ? (<span className="platform-apple"></span>) : (<></>)}
2929
{isLinux ? (<span className="platform-linux"></span>) : (<></>)}
3030
</span>
3131
</div>
3232
<div className="padding-top--xs">
33-
<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/releases/'}><img alt="GitHub Release" src={'https://img.shields.io/github/v/release/xpack-dev-tools/' + shortName + '-xpack?color=blue'} /></Link>
34-
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/releases/'}><img alt="GitHub Release Date" src={'https://img.shields.io/github/release-date/xpack-dev-tools/' + shortName + '-xpack?label=date&color=yellowgreen'} /></Link>
35-
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/releases/'}><img alt="GitHub Downloads (all assets, all releases)" src={'https://img.shields.io/github/downloads/xpack-dev-tools/' + shortName + '-xpack/total'} /></Link>
36-
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/'}><img alt="GitHub Repo stars" src={'https://img.shields.io/github/stars/xpack-dev-tools/' + shortName + '-xpack'} /></Link>
33+
<Link to={'https://github.com/xpack-dev-tools/' + permalinkName + '-xpack/releases/'}><img alt="GitHub Release" src={'https://img.shields.io/github/v/release/xpack-dev-tools/' + permalinkName + '-xpack?color=blue'} /></Link>
34+
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + permalinkName + '-xpack/releases/'}><img alt="GitHub Release Date" src={'https://img.shields.io/github/release-date/xpack-dev-tools/' + permalinkName + '-xpack?label=date&color=yellowgreen'} /></Link>
35+
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + permalinkName + '-xpack/releases/'}><img alt="GitHub Downloads (all assets, all releases)" src={'https://img.shields.io/github/downloads/xpack-dev-tools/' + permalinkName + '-xpack/total'} /></Link>
36+
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + permalinkName + '-xpack/'}><img alt="GitHub Repo stars" src={'https://img.shields.io/github/stars/xpack-dev-tools/' + permalinkName + '-xpack'} /></Link>
3737
</div>
3838
</div>
3939
</>
4040
)
4141
}
4242

43-
function ToolWork({ longName, shortName, isWindows, isMacOS, isLinux }) {
43+
function ToolWork({ descriptiveName, permalinkName, isWindows, isMacOS, isLinux }) {
4444
return (
4545
<>
4646
<div>
47-
<b><Link to={'https://xpack-dev-tools.github.io/' + shortName + '-xpack/'}><span className="sub-web-home-link">{shortName}</span></Link></b> - <b>xPack {longName}</b>
47+
<b><Link to={'https://xpack-dev-tools.github.io/' + permalinkName + '-xpack/'}><span className="sub-web-home-link">{permalinkName}</span></Link></b> - <b>xPack {descriptiveName}</b>
4848
<span className="margin-left-platforms">
4949
{isWindows ? (<span className="platform-windows"></span>) : (<></>)}
5050
{isMacOS ? (<span className="platform-apple"></span>) : (<></>)}

website/tools.ts

+46-46
Original file line numberDiff line numberDiff line change
@@ -12,92 +12,92 @@
1212
const tools = {
1313
mainTools: [
1414
{
15-
longName: 'GNU AArch64 Embedded GCC',
16-
shortName: 'aarch64-none-elf-gcc',
15+
descriptiveName: 'GNU AArch64 Embedded GCC',
16+
permalinkName: 'aarch64-none-elf-gcc',
1717
isWindows: true,
1818
isMacOS: true,
1919
isLinux: true,
2020
},
2121
{
22-
longName: 'GNU Arm Embedded GCC',
23-
shortName: 'arm-none-eabi-gcc',
22+
descriptiveName: 'GNU Arm Embedded GCC',
23+
permalinkName: 'arm-none-eabi-gcc',
2424
isWindows: true,
2525
isMacOS: true,
2626
isLinux: true,
2727
},
2828
{
29-
longName: 'LLVM clang',
30-
shortName: 'clang',
29+
descriptiveName: 'LLVM clang',
30+
permalinkName: 'clang',
3131
isWindows: true,
3232
isMacOS: true,
3333
isLinux: true,
3434
},
3535
{
36-
longName: 'CMake',
37-
shortName: 'cmake',
36+
descriptiveName: 'CMake',
37+
permalinkName: 'cmake',
3838
isWindows: true,
3939
isMacOS: true,
4040
isLinux: true,
4141
},
4242
{
43-
longName: 'GCC',
44-
shortName: 'gcc',
43+
descriptiveName: 'GCC',
44+
permalinkName: 'gcc',
4545
isWindows: true,
4646
isMacOS: true,
4747
isLinux: true,
4848
},
4949
{
50-
longName: 'Meson Build',
51-
shortName: 'meson-build',
50+
descriptiveName: 'Meson Build',
51+
permalinkName: 'meson-build',
5252
isWindows: true,
5353
isMacOS: true,
5454
isLinux: true,
5555
},
5656
{
57-
longName: 'MinGW-w64 GCC',
58-
shortName: 'mingw-w64-gcc',
57+
descriptiveName: 'MinGW-w64 GCC',
58+
permalinkName: 'mingw-w64-gcc',
5959
isWindows: true,
6060
isMacOS: true,
6161
isLinux: true,
6262
},
6363
{
64-
longName: 'Ninja Build',
65-
shortName: 'ninja-build',
64+
descriptiveName: 'Ninja Build',
65+
permalinkName: 'ninja-build',
6666
isWindows: true,
6767
isMacOS: true,
6868
isLinux: true,
6969
},
7070
{
71-
longName: 'OpenOCD',
72-
shortName: 'openocd',
71+
descriptiveName: 'OpenOCD',
72+
permalinkName: 'openocd',
7373
isWindows: true,
7474
isMacOS: true,
7575
isLinux: true,
7676
},
7777
{
78-
longName: 'QEMU Arm',
79-
shortName: 'qemu-arm',
78+
descriptiveName: 'QEMU Arm',
79+
permalinkName: 'qemu-arm',
8080
isWindows: true,
8181
isMacOS: true,
8282
isLinux: true,
8383
},
8484
{
85-
longName: 'QEMU RISC-V',
86-
shortName: 'qemu-riscv',
85+
descriptiveName: 'QEMU RISC-V',
86+
permalinkName: 'qemu-riscv',
8787
isWindows: true,
8888
isMacOS: true,
8989
isLinux: true,
9090
},
9191
{
92-
longName: 'GNU RISC-V Embedded GCC',
93-
shortName: 'riscv-none-elf-gcc',
92+
descriptiveName: 'GNU RISC-V Embedded GCC',
93+
permalinkName: 'riscv-none-elf-gcc',
9494
isWindows: true,
9595
isMacOS: true,
9696
isLinux: true,
9797
},
9898
{
99-
longName: 'Windows Build Tools',
100-
shortName: 'windows-build-tools',
99+
descriptiveName: 'Windows Build Tools',
100+
permalinkName: 'windows-build-tools',
101101
isWindows: true,
102102
isMacOS: true,
103103
isLinux: true,
@@ -107,57 +107,57 @@ const tools = {
107107
/* When updated, don't forget to add sitemap to robots.txt! */
108108
supplementaryTools: [
109109
{
110-
longName: 'GNU bison',
111-
shortName: 'bison',
110+
descriptiveName: 'GNU bison',
111+
permalinkName: 'bison',
112112
isWindows: false,
113113
isMacOS: true,
114114
isLinux: true,
115115
},
116116
{
117-
longName: 'flex',
118-
shortName: 'flex',
117+
descriptiveName: 'flex',
118+
permalinkName: 'flex',
119119
isWindows: false,
120120
isMacOS: true,
121121
isLinux: true,
122122
},
123123
{
124-
longName: 'GNU m4',
125-
shortName: 'm4',
124+
descriptiveName: 'GNU m4',
125+
permalinkName: 'm4',
126126
isWindows: false,
127127
isMacOS: true,
128128
isLinux: true,
129129
},
130130
{
131-
longName: 'NixOS PatchELF',
132-
shortName: 'patchelf',
131+
descriptiveName: 'NixOS PatchELF',
132+
permalinkName: 'patchelf',
133133
isWindows: false,
134134
isMacOS: true,
135135
isLinux: true,
136136
},
137137
{
138-
longName: 'pkg-config',
139-
shortName: 'pkg-config',
138+
descriptiveName: 'pkg-config',
139+
permalinkName: 'pkg-config',
140140
isWindows: false,
141141
isMacOS: true,
142142
isLinux: true,
143143
},
144144
{
145-
longName: 'GNU realpath',
146-
shortName: 'realpath',
145+
descriptiveName: 'GNU realpath',
146+
permalinkName: 'realpath',
147147
isWindows: false,
148148
isMacOS: true,
149149
isLinux: true,
150150
},
151151
{
152-
longName: 'GNU sed',
153-
shortName: 'sed',
152+
descriptiveName: 'GNU sed',
153+
permalinkName: 'sed',
154154
isWindows: false,
155155
isMacOS: true,
156156
isLinux: true,
157157
},
158158
{
159-
longName: 'WineHQ',
160-
shortName: 'wine',
159+
descriptiveName: 'WineHQ',
160+
permalinkName: 'wine',
161161
isWindows: false,
162162
isMacOS: false,
163163
isLinux: true,
@@ -166,15 +166,15 @@ const tools = {
166166

167167
workInProgressTools: [
168168
{
169-
longName: 'GNU Bash',
170-
shortName: 'bash',
169+
descriptiveName: 'GNU Bash',
170+
permalinkName: 'bash',
171171
isWindows: true,
172172
isMacOS: true,
173173
isLinux: true,
174174
},
175175
{
176-
longName: 'GNU texinfo',
177-
shortName: 'texinfo',
176+
descriptiveName: 'GNU texinfo',
177+
permalinkName: 'texinfo',
178178
isWindows: false,
179179
isMacOS: true,
180180
isLinux: true,

0 commit comments

Comments
 (0)