Skip to content

Commit 86bcee4

Browse files
committed
website: re-generate commons
1 parent 1ce4131 commit 86bcee4

File tree

5 files changed

+57
-59
lines changed

5 files changed

+57
-59
lines changed

website/docusaurus.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ function getCustomFields() {
6767
}
6868

6969
return {
70-
appName: rootPackageJson.xpack.properties.appName,
71-
appLcName: rootPackageJson.xpack.properties.appLcName,
7270
version: jsonVersion,
7371
xpackVersion,
7472
xpackSemver,

website/sidebars-tools.ts

Lines changed: 2 additions & 2 deletions
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.appName,
21-
href: 'https://xpack-dev-tools.github.io/' + tool.appLcName + '-xpack/',
20+
label: tool.longName,
21+
href: 'https://xpack-dev-tools.github.io/' + tool.shortName + '-xpack/',
2222
}
2323
})
2424
}

website/src/components/HomepageTools/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,29 @@ import Link from '@docusaurus/Link';
2020

2121
import tools from '@site/tools';
2222

23-
function Tool({ appName, appLcName }) {
23+
function Tool({ longName, shortName }) {
2424
return (
2525
<>
2626
<div className="padding-vert--sm">
2727
<div>
28-
<b><Link to={'https://xpack-dev-tools.github.io/' + appLcName + '-xpack/'}>{appLcName}</Link></b> - <b>xPack {appName}</b>
28+
<b><Link to={'https://xpack-dev-tools.github.io/' + shortName + '-xpack/'}>{shortName}</Link></b> - <b>xPack {longName}</b>
2929
</div>
3030
<div className="padding-top--xs">
31-
<Link to={'https://github.com/xpack-dev-tools/' + appLcName + '-xpack/releases/'}><img alt="GitHub Release" src={'https://img.shields.io/github/v/release/xpack-dev-tools/' + appLcName + '-xpack?color=blue'} /></Link>
32-
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + appLcName + '-xpack/releases/'}><img alt="GitHub Release Date" src={'https://img.shields.io/github/release-date/xpack-dev-tools/' + appLcName + '-xpack?label=date&color=yellowgreen'} /></Link>
33-
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + appLcName + '-xpack/releases/'}><img alt="GitHub Downloads (all assets, all releases)" src={'https://img.shields.io/github/downloads/xpack-dev-tools/' + appLcName + '-xpack/total.svg'} /></Link>
34-
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + appLcName + '-xpack/'}><img alt="GitHub Repo stars" src={'https://img.shields.io/github/stars/xpack-dev-tools/' + appLcName + '-xpack'} /></Link>
31+
<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>
32+
&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>
33+
&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.svg'} /></Link>
34+
&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>
3535
</div>
3636
</div>
3737
</>
3838
)
3939
}
4040

41-
function ToolWork({ appName, appLcName }) {
41+
function ToolWork({ longName, shortName }) {
4242
return (
4343
<>
4444
<div>
45-
<b><Link to={'https://xpack-dev-tools.github.io/' + appLcName + '-xpack/'}>{appLcName}</Link></b> - <b>xPack {appName}</b>
45+
<b><Link to={'https://xpack-dev-tools.github.io/' + shortName + '-xpack/'}>{shortName}</Link></b> - <b>xPack {longName}</b>
4646
</div>
4747
</>
4848
)

website/src/components/ReleasesList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function ReleasesList({items}): JSX.Element {
2626
pluginData.releasesTable.length > 0 ?
2727
pluginData.releasesTable.map(release => (
2828
<li>
29-
<a href={release.permalink}>{release.title}</a> {release.downloadUrl === "true" ? (<>(<a href={release.downloadUrl}>download</a>)</>) : (<></>)}
29+
<a href={release.permalink}>{release.title}</a> {release.downloadUrl ? (<>(<a href={release.downloadUrl}>download</a>)</>) : (<></>)}
3030
</li>
3131
)) :
3232
(

website/tools.ts

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -12,103 +12,103 @@
1212
const tools = {
1313
mainTools: [
1414
{
15-
appName: 'GNU AArch64 Embedded GCC',
16-
appLcName: 'aarch64-none-elf-gcc'
15+
longName: 'GNU AArch64 Embedded GCC',
16+
shortName: 'aarch64-none-elf-gcc'
1717
},
1818
{
19-
appName: 'GNU Arm Embedded GCC',
20-
appLcName: 'arm-none-eabi-gcc'
19+
longName: 'GNU Arm Embedded GCC',
20+
shortName: 'arm-none-eabi-gcc'
2121
},
2222
{
23-
appName: 'LLVM clang',
24-
appLcName: 'clang'
23+
longName: 'LLVM clang',
24+
shortName: 'clang'
2525
},
2626
{
27-
appName: 'CMake',
28-
appLcName: 'cmake'
27+
longName: 'CMake',
28+
shortName: 'cmake'
2929
},
3030
{
31-
appName: 'GCC',
32-
appLcName: 'gcc'
31+
longName: 'GCC',
32+
shortName: 'gcc'
3333
},
3434
{
35-
appName: 'Meson Build',
36-
appLcName: 'meson-build'
35+
longName: 'Meson Build',
36+
shortName: 'meson-build'
3737
},
3838
{
39-
appName: 'MinGW-w64 GCC',
40-
appLcName: 'mingw-w64-gcc'
39+
longName: 'MinGW-w64 GCC',
40+
shortName: 'mingw-w64-gcc'
4141
},
4242
{
43-
appName: 'Ninja Build',
44-
appLcName: 'ninja-build'
43+
longName: 'Ninja Build',
44+
shortName: 'ninja-build'
4545
},
4646
{
47-
appName: 'OpenOCD',
48-
appLcName: 'openocd'
47+
longName: 'OpenOCD',
48+
shortName: 'openocd'
4949
},
5050
{
51-
appName: 'QEMU Arm',
52-
appLcName: 'qemu-arm'
51+
longName: 'QEMU Arm',
52+
shortName: 'qemu-arm'
5353
},
5454
{
55-
appName: 'QEMU RISC-V',
56-
appLcName: 'qemu-riscv'
55+
longName: 'QEMU RISC-V',
56+
shortName: 'qemu-riscv'
5757
},
5858
{
59-
appName: 'GNU RISC-V Embedded GCC',
60-
appLcName: 'riscv-none-elf-gcc'
59+
longName: 'GNU RISC-V Embedded GCC',
60+
shortName: 'riscv-none-elf-gcc'
6161
},
6262
{
63-
appName: 'Windows Build Tools',
64-
appLcName: 'windows-build-tools'
63+
longName: 'Windows Build Tools',
64+
shortName: 'windows-build-tools'
6565
},
6666
],
6767

6868
/* When updated, don't forget to add sitemap to robots.txt! */
6969
supplementaryTools: [
7070
{
71-
appName: 'GNU bison',
72-
appLcName: 'bison'
71+
longName: 'GNU bison',
72+
shortName: 'bison'
7373
},
7474
{
75-
appName: 'flex',
76-
appLcName: 'flex'
75+
longName: 'flex',
76+
shortName: 'flex'
7777
},
7878
{
79-
appName: 'GNU m4',
80-
appLcName: 'm4'
79+
longName: 'GNU m4',
80+
shortName: 'm4'
8181
},
8282
{
83-
appName: 'NixOS PatchELF',
84-
appLcName: 'patchelf'
83+
longName: 'NixOS PatchELF',
84+
shortName: 'patchelf'
8585
},
8686
{
87-
appName: 'pkg-config',
88-
appLcName: 'pkg-config'
87+
longName: 'pkg-config',
88+
shortName: 'pkg-config'
8989
},
9090
{
91-
appName: 'GNU realpath',
92-
appLcName: 'realpath'
91+
longName: 'GNU realpath',
92+
shortName: 'realpath'
9393
},
9494
{
95-
appName: 'GNU sed',
96-
appLcName: 'sed'
95+
longName: 'GNU sed',
96+
shortName: 'sed'
9797
},
9898
{
99-
appName: 'WineHQ',
100-
appLcName: 'wine'
99+
longName: 'WineHQ',
100+
shortName: 'wine'
101101
},
102102
],
103103

104104
workInProgressTools: [
105105
{
106-
appName: 'GNU Bash',
107-
appLcName: 'bash'
106+
longName: 'GNU Bash',
107+
shortName: 'bash'
108108
},
109109
{
110-
appName: 'GNU texinfo',
111-
appLcName: 'texinfo'
110+
longName: 'GNU texinfo',
111+
shortName: 'texinfo'
112112
},
113113
]
114114
}

0 commit comments

Comments
 (0)