Skip to content

Commit d214164

Browse files
committed
website: re-generate commons
1 parent 8dd7dbd commit d214164

File tree

9 files changed

+30
-39
lines changed

9 files changed

+30
-39
lines changed

website/blog/_common/_download-analytics.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Image from '@theme/IdealImage';
99

1010
- GitHub [xpack-dev-tools/mingw-w64-gcc-xpack](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/)
1111
- this release <a href={`https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/v${props.version}/`} ><Image img={`https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/v${props.version}/total.svg`} alt='Github Release' /></a>
12-
- all xPack releases [![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/total.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/)
12+
- all xPack releases [![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/total.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases)
1313
- [individual file counters](https://somsubhra.github.io/github-release-stats/?username=xpack-dev-tools&repository=mingw-w64-gcc-xpack) (grouped by release)
1414
- npmjs.com [@xpack-dev-tools/mingw-w64-gcc](https://www.npmjs.com/package/@xpack-dev-tools/mingw-w64-gcc)
1515
- latest releases [![npm](https://img.shields.io/npm/dw/@xpack-dev-tools/mingw-w64-gcc.svg)](https://www.npmjs.com/package/@xpack-dev-tools/mingw-w64-gcc/)

website/blog/_templates/blog-post-release-part-1-liquid.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ tags:
1818
# ----- Custom properties -----------------------------------------------------
1919

2020
gcc_version: "{{upstreamVersion}}"
21-
binutils_version: "{{customFields.binutilsVersionMajor}}.{{customFields.binutilsVersionMinor}}"
22-
mingw_version: "{{customFields.mingwVersion}}"
21+
binutils_version: "{{packageWebsiteConfig.binutilsVersionMajor}}.{{packageWebsiteConfig.binutilsVersionMinor}}"
22+
mingw_version: "{{packageWebsiteConfig.mingwVersion}}"
2323

2424
version: "{{releaseVersion}}"
2525
npm_subversion: "1"

website/docs/getting-started/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ presented in the
200200
## Support & feedback
201201

202202
The quick advice for getting support and providing feedback is to use the
203-
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions/).
203+
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions).
204204

205205
For additional information, please refer to the
206206
[Help Centre](/docs/support/) page.

website/docs/install/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ import Testing from './_testing.mdx';
4545
# How to install the xPack MinGW-w64 GCC
4646

4747
[![GitHub package.json version](https://img.shields.io/github/package-json/v/xpack-dev-tools/mingw-w64-gcc-xpack)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/blob/xpack/package.json)
48-
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/xpack-dev-tools/mingw-w64-gcc-xpack)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/)
49-
[![GitHub Release Date](https://img.shields.io/github/release-date/xpack-dev-tools/mingw-w64-gcc-xpack)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/)
48+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/xpack-dev-tools/mingw-w64-gcc-xpack)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases)
49+
[![GitHub Release Date](https://img.shields.io/github/release-date/xpack-dev-tools/mingw-w64-gcc-xpack)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases)
5050
[![npm (scoped)](https://img.shields.io/npm/v/%40xpack-dev-tools%2Fmingw-w64-gcc?label=xpm&color=blue)](https://www.npmjs.com/package/@xpack-dev-tools/mingw-w64-gcc/)
5151
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/total)
5252
[![npm](https://img.shields.io/npm/dm/%40xpack-dev-tools%2Fmingw-w64-gcc?label=xpm%20downloads)](https://www.npmjs.com/package/@xpack-dev-tools/mingw-w64-gcc/)
@@ -543,7 +543,7 @@ For all platforms, the **xPack MinGW-w64 GCC** binaries are released as portable
543543
archives that can be installed in any location.
544544

545545
The archives can be downloaded from
546-
the <a href={`https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/`}>GitHub Releases</a> pages.
546+
the <a href={`https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases`}>GitHub Releases</a> pages.
547547

548548
### Download & unpack {#manual-install-download-and-unpack}
549549

website/docs/maintainer/_common/_gcc-check-upstream-release.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The current release must be announced in the
99
[GCC Timeline](https://gcc.gnu.org/releases.html) page.
1010
Compare the latest GCC release with the current xPack
11-
[release](https://github.com/xpack-dev-tools/gcc-xpack/releases/).
11+
[release](https://github.com/xpack-dev-tools/gcc-xpack/releases).
1212

1313
If necessary, update the triplet, otherwise increase the fourth number,
1414
as below.

website/docs/maintainer/index.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import PlatformDockerBuild from './_common/_platform-docker-build.mdx'
4747
# How to make new xPack MinGW-w64 GCC releases
4848

4949
[![license](https://img.shields.io/github/license/xpack-dev-tools/mingw-w64-gcc-xpack)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/blob/xpack/LICENSE)
50-
[![GitHub issues](https://img.shields.io/github/issues/xpack-dev-tools/mingw-w64-gcc-xpack.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/issues/)
50+
[![GitHub issues](https://img.shields.io/github/issues/xpack-dev-tools/mingw-w64-gcc-xpack.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/issues)
5151
[![GitHub pulls](https://img.shields.io/github/issues-pr/xpack-dev-tools/mingw-w64-gcc-xpack.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/pulls)
5252

5353
This page is designed for maintainers of the
@@ -631,7 +631,7 @@ These commands use the `xpack-development` branch of this repo.
631631
<GitHubActionsDurations/>
632632

633633
The workflow results and logs are available from the
634-
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions/) page.
634+
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions) page.
635635

636636
Update the values in `website/docs/maintainer/_github-actions-durations.mdx`
637637
with those shown by GitHub Actions.
@@ -676,7 +676,7 @@ Some of the `docker-linux-arm` tests have an issue on Debian and the
676676
:::
677677

678678
The tests results are available from the
679-
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions/) page.
679+
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions) page.
680680

681681
After running the prime tests, download the test results and compare
682682
with previous runs.
@@ -738,10 +738,10 @@ xpm run trigger-workflow-publish-release -C ~/Work/xpack-dev-tools/mingw-w64-gcc
738738
```
739739

740740
The workflow result and logs are available from the
741-
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions/) page.
741+
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions) page.
742742

743743
The result is a
744-
[draft pre-release](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/)
744+
[draft pre-release](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases)
745745
tagged like **v{customField('xpackVersion')}** (mind the dash in the middle!) and
746746
named like **xPack MinGW-w64 GCC v{customField('xpackVersion')}** (mind the dash),
747747
with all binaries attached.
@@ -849,7 +849,7 @@ xpm run trigger-workflow-test-xpm -C ~/Work/xpack-dev-tools/mingw-w64-gcc-xpack.
849849
This will install the package via `xpm install` on all supported platforms.
850850

851851
The tests results are available from the
852-
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions/) page.
852+
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions) page.
853853

854854
### Copy the test results
855855

@@ -923,7 +923,7 @@ Avoid further updates to the `xpack` branch until the next release.
923923

924924
### Create the final GitHub release
925925

926-
- go to the [GitHub Releases](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/) page
926+
- go to the [GitHub Releases](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases) page
927927
- check the download counter, it should match the number of tests
928928
- add a link to the Web blog `[Continue reading »]()`; use an same blog URL
929929
- remove the _tests only_ notice
@@ -953,7 +953,7 @@ xpm run trigger-workflow-deep-clean -C ~/Work/xpack-dev-tools/mingw-w64-gcc-xpac
953953
This will remove the build folders on all self-hosted runners.
954954

955955
The results are available from the
956-
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions/) page.
956+
[GitHub Actions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/actions) page.
957957

958958
### Close possible open issues
959959

@@ -970,7 +970,7 @@ Close those that were addressed.
970970
- using the **`@xpack_project`** account
971971
- paste the release name like _**xPack MinGW-w64 GCC v{customField('xpackVersion')} released**_
972972
- paste the link to the blog post
973-
[release](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/)
973+
[release](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases)
974974
- click the **Tweet** button
975975

976976
<ShareCustom/>
@@ -979,8 +979,8 @@ Close those that were addressed.
979979

980980
- GitHub [`xpack-dev-tools/mingw-w64-gcc-xpack`](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/) repo
981981
- latest xPack release
982-
[![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/latest/total.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/)
983-
- all xPack releases [![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/total.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/)
982+
[![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/latest/total.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases)
983+
- all xPack releases [![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/mingw-w64-gcc-xpack/total.svg)](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases)
984984
- [individual file counters](https://somsubhra.github.io/github-release-stats/?username=xpack-dev-tools&repository=mingw-w64-gcc-xpack) (grouped by release)
985985
- npmjs.com [`@xpack-dev-tools/mingw-w64-gcc`](https://www.npmjs.com/package/@xpack-dev-tools/mingw-w64-gcc/) xPack
986986
- latest release, per month

website/docs/support/index.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import Documentation from '../getting-started/_documentation.mdx';
2525
## Quick links
2626

2727
The quick answer is to use the
28-
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions/) pages.
28+
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions) pages.
2929

3030
## Check documentation
3131

@@ -41,18 +41,18 @@ check if the subject was not already addressed.
4141

4242
- check the [FAQ](/docs/faq/)
4343
for similar problems
44-
- check the [GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions/) for
44+
- check the [GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions) for
4545
similar topics
4646
- check the
47-
[GitHub Issues](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/issues/)
47+
[GitHub Issues](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/issues)
4848
tracker for similar problems.
4949

5050
## Ask questions in GitHub Discussions
5151

5252
If you still could not find a solution, if you have interesting use
5353
cases, if you have custom configurations, and generally if you have
5454
any experience that you want to share with others, use the
55-
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions/) pages,
55+
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions) pages,
5656
and enter a **New discussion**; use the **Q&A** category for questions, **Ideas** for suggestions and **General** for anything else.
5757

5858
## Register a new support ticket only if necessary
@@ -62,14 +62,14 @@ distribution, not to the upstream MinGW-w64 GCC itself
6262
(if you have doubts, use the GitHub Discussions),
6363
or if you have a pertinent suggestion how to enhance the **xPack MinGW-w64 GCC**
6464
distribution, register a **New Issue** in the
65-
[GitHub Issues](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/issues/)
65+
[GitHub Issues](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/issues)
6666
tracker.
6767

6868
:::tip
6969

7070
**Do not** use the GitHub Issues tracker
7171
for questions and support, **use the
72-
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions/)** pages.
72+
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions)** pages.
7373

7474
:::
7575

@@ -79,7 +79,7 @@ for questions and support, **use the
7979

8080
**Do not** use
8181
private e-mail for support, **use the
82-
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions/)** pages.
82+
[GitHub Discussions](https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/discussions)** pages.
8383

8484
:::
8585

website/docusaurus.config.ts

Lines changed: 1 addition & 7 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,

website/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@
5757
]
5858
},
5959
"websiteConfig": {
60-
"customFields": {
61-
"programName": "x86_64-w64-mingw32-gcc",
62-
"branding": "x86_64-w64-mingw32-gcc (xPack MinGW-w64 GCC x86_64) ",
63-
"showTestsResults": "true",
64-
"mingwVersion": "12.0.0"
65-
}
60+
"programName": "x86_64-w64-mingw32-gcc",
61+
"branding": "x86_64-w64-mingw32-gcc (xPack MinGW-w64 GCC x86_64) ",
62+
"mingwVersion": "12.0.0"
6663
},
6764
"engines": {
6865
"node": ">=18.0"

0 commit comments

Comments
 (0)