Skip to content

Commit e910c9b

Browse files
committed
website: re-generate commons
1 parent d387c75 commit e910c9b

File tree

5 files changed

+27
-78
lines changed

5 files changed

+27
-78
lines changed

website/blog/_common/_download-analytics.mdx

Lines changed: 0 additions & 20 deletions
This file was deleted.

website/docs/about/_common/HistoryXpm/index.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

website/docusaurus.config.ts

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,7 @@ function getCustomFields() {
5757

5858
const customFields = websitePackageJson?.websiteConfig?.customFields ?? {};
5959

60-
let upstreamVersion
61-
if (customFields.hasTwoNumbersVersion === 'true' && xpackSemver.endsWith('.0')) {
62-
// Remove the patch number if zero (wine uses both 2 and 3 numbers).
63-
upstreamVersion = xpackSemver.replace(/[.]0*$/, '');
64-
} else {
65-
upstreamVersion = xpackSemver;
66-
}
60+
let upstreamVersion = xpackSemver;
6761

6862
return {
6963
version: jsonVersion,
@@ -88,7 +82,7 @@ console.log('customFields: ' + util.inspect(customFields));
8882
const config: Config = {
8983
title: 'xPack Binary Development Tools' +
9084
((process.env.DOCUSAURUS_IS_PREVIEW === 'true') ? ' (preview)' : ''),
91-
tagline: 'A binary distribution of Binary Development Tools',
85+
tagline: 'Cross-platform binary tools for software development, aimed at reproducible builds',
9286
// Explicitly set in headTags.
9387
// favicon: '/img/favicon.ico',
9488

@@ -97,12 +91,12 @@ const config: Config = {
9791
// Set the /<baseUrl>/ pathname under which your site is served
9892
// For GitHub pages deployment, it is often '/<projectName>/'
9993
baseUrl: process.env.DOCUSAURUS_BASEURL ??
100-
'/xpack-dev-tools.github.io-xpack/',
94+
'/',
10195

10296
// GitHub pages deployment config.
10397
// If you aren't using GitHub pages, you don't need these.
10498
organizationName: 'xpack-dev-tools', // Usually your GitHub org/user name.
105-
projectName: 'xpack-dev-tools.github.io-xpack', // Usually your repo name.
99+
projectName: 'xpack-dev-tools.github.io', // Usually your repo name.
106100

107101
onBrokenAnchors: 'throw',
108102
onBrokenLinks: 'throw',
@@ -131,7 +125,7 @@ const config: Config = {
131125
// Please change this to your repo.
132126
// Remove this to remove the "edit this page" links.
133127
editUrl:
134-
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/edit/xpack/website/',
128+
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/edit/xpack/website/',
135129
// showLastUpdateAuthor: true,
136130
showLastUpdateTime: true,
137131
},
@@ -140,7 +134,7 @@ const config: Config = {
140134
// Please change this to your repo.
141135
// Remove this to remove the "edit this page" links.
142136
editUrl:
143-
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/edit/xpack/website/',
137+
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/edit/xpack/website/',
144138
showLastUpdateTime: true,
145139
blogSidebarCount: 8,
146140
},
@@ -153,9 +147,9 @@ const config: Config = {
153147
changefreq: 'weekly',
154148
priority: 0.5,
155149
ignorePatterns: [
156-
'/xpack-dev-tools.github.io-xpack/blog/archive/**',
157-
'/xpack-dev-tools.github.io-xpack/blog/authors/**',
158-
'/xpack-dev-tools.github.io-xpack/blog/tags/**'
150+
'/blog/archive/**',
151+
'/blog/authors/**',
152+
'/blog/tags/**'
159153
],
160154
filename: 'sitemap.xml',
161155
},
@@ -298,20 +292,20 @@ const config: Config = {
298292
]
299293
},
300294
{
301-
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/',
295+
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/',
302296
position: 'right',
303297
className: 'header-github-link',
304298
'aria-label': 'GitHub repository',
305299
},
306300
{
307301
type: 'dropdown',
308-
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/',
302+
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/',
309303
position: 'right',
310304
label: 'GitHub',
311305
items: [
312306
{
313-
label: `xpack-dev-tools.github.io-xpack`,
314-
href: `https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/`,
307+
label: `xpack-dev-tools.github.io`,
308+
href: `https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/`,
315309
},
316310
{
317311
label: 'xpack-dev-tools org',
@@ -350,7 +344,7 @@ const config: Config = {
350344
items: [
351345
{
352346
label: 'GitHub Discussions',
353-
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/discussions',
347+
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/discussions',
354348
},
355349
{
356350
label: 'Stack Overflow',
@@ -374,8 +368,8 @@ const config: Config = {
374368
href: 'https://www.paypal.com/donate/?hosted_button_id=5MFRG9ZRBETQ8',
375369
},
376370
{
377-
label: 'GitHub xpack-dev-tools.github.io-xpack',
378-
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/',
371+
label: 'GitHub xpack-dev-tools.github.io',
372+
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/',
379373
},
380374
{
381375
label: 'GitHub xpack-dev-tools org',

website/package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,13 @@
5858
},
5959
"websiteConfig": {
6060
"skipInstallCommand": "true",
61-
"customFields": {
62-
"isOrganizationWeb": "true",
63-
"docusaurusTagline": "Cross-platform binary tools for software development, aimed at reproducible builds",
64-
"docusaurusBaseUrl": "/",
65-
"gitHubProjectName": "xpack-dev-tools.github.io",
66-
"hasCustomDeveloper": "true",
67-
"hasCustomInstall": "true",
68-
"hasCustomMaintainer": "true",
69-
"hasCustomUser": "true",
70-
"usePluralGuides": "true"
71-
}
61+
"usePluralGuides": "true",
62+
"hasCustomInstall": "true",
63+
"hasCustomUser": "true",
64+
"hasCustomMaintainer": "true",
65+
"hasCustomDeveloper": "true",
66+
"docusaurusTagline": "Cross-platform binary tools for software development, aimed at reproducible builds",
67+
"docusaurusBaseUrl": "/"
7268
},
7369
"engines": {
7470
"node": ">=18.0"

website/src/components/HomepageTools/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ function Tool({ longName, shortName }) {
2828
<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/' + 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>
31+
<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/releases/'}><img alt="GitHub Release" src={'https://img.shields.io/github/v/release/{{githubProjectOrganization}}/' + shortName + '-xpack?color=blue'} /></Link>
32+
&nbsp;<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/releases/'}><img alt="GitHub Release Date" src={'https://img.shields.io/github/release-date/{{githubProjectOrganization}}/' + shortName + '-xpack?label=date&color=yellowgreen'} /></Link>
33+
&nbsp;<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/releases/'}><img alt="GitHub Downloads (all assets, all releases)" src={'https://img.shields.io/github/downloads/{{githubProjectOrganization}}/' + shortName + '-xpack/total.svg'} /></Link>
34+
&nbsp;<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/'}><img alt="GitHub Repo stars" src={'https://img.shields.io/github/stars/{{githubProjectOrganization}}/' + shortName + '-xpack'} /></Link>
3535
</div>
3636
</div>
3737
</>

0 commit comments

Comments
 (0)