Skip to content

Commit c2f4122

Browse files
committed
website update
1 parent ce4fb24 commit c2f4122

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

website/docs/maintainer/_share-custom.mdx

+34-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,47 @@
11

2+
import CodeBlock from '@theme/CodeBlock';
3+
24
import customField from '@site/src/libs/customField';
35

46
{/* ------------------------------------------------------------------------ */}
57

68
## Announce to the Arm community
79

810
Add a new topic in the **Compilers and Libraries** forum of the
9-
[Arm Developer Community](https://community.arm.com/support-forums/f/compilers-and-libraries-forum)
11+
[Arm Developer Community](https://community.arm.com/support-forums/f/compilers-and-libraries-forum).
12+
13+
Click the **+ New** button.
14+
15+
When released simultaneously with AArch64 Embedded GCC, use the following content:
16+
17+
- Title: **xPack GNU Arm & AArch64 Embedded GCC v{customField('upstreamVersion')}-{customField('xpackSubversion')} released**
18+
- Description; switch **Tools** -> **Source code**:
1019

11-
- title: xPack GNU Arm Embedded GCC v{customField('upstreamVersion')}-{customField('xpackSubversion')} released
12-
- content:
13-
- The **xPack GNU Arm Embedded GCC** is an alternate binary distribution that complements the official GNU Arm Embedded Toolchain maintained by Arm.
14-
- The latest release is [{customField('upstreamVersion')}-{customField('xpackSubversion')}](/blog/) following Arm release from DATE (version VERSION).
15-
- tags: xpack, gnu, gcc, arm, aarch64, toolchain
20+
<CodeBlock language="html"> {
21+
`<p>The <strong>xPack GNU Arm Embedded GCC</strong> and <strong>xPack GNU AArch64 Embedded GCC</strong> packages are part of the alternate xPack binary distribution that complements the official Arm GNU Toolchains maintained by Arm.</p>
22+
<p>The latest release is ${customField('upstreamVersion')}-${customField('xpackSubversion')} following Arm release ${customField('armMajorMinorRelease')}.rel${customField('armSubRelease')} from ${customField('armReleaseDate')}:</p>
23+
<ul>
24+
<li><a href="https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/tag/v${customField('upstreamVersion')}-${customField('xpackSubversion')}/" rel="noopener noreferrer" target="_blank">xPack GNU Arm Embedded GCC v${customField('upstreamVersion')}-${customField('xpackSubversion')}</a></li>
25+
<li><a href="https://github.com/xpack-dev-tools/aarch64-none-elf-gcc-xpack/releases/tag/v${customField('upstreamVersion')}-${customField('xpackSubversion')}/" rel="noopener noreferrer" target="_blank">xPack GNU AArch64 Embedded GCC v${customField('upstreamVersion')}-${customField('xpackSubversion')}</a></li>
26+
</ul>
27+
`} </CodeBlock>
28+
29+
- Tags: xpack, gnu, gcc, arm, aarch64, toolchain
1630

1731
NOTE: do not use markdown, but format the text with the blog editor.
1832

33+
When released separately, use the following content:
34+
35+
- Title: **xPack GNU Arm Embedded GCC v{customField('upstreamVersion')}-{customField('xpackSubversion')} released**
36+
- Description; switch **Tools** -> **Source code**:
37+
38+
<CodeBlock language="html"> {
39+
`<p>The <strong>xPack GNU Arm Embedded GCC</strong> package is part of the alternate xPack binary distribution that complements the official Arm GNU Toolchains maintained by Arm.</p>
40+
<p>The latest release is ${customField('upstreamVersion')}-${customField('xpackSubversion')} following Arm release ${customField('armMajorMinorRelease')}.rel${customField('armSubRelease')} from ${customField('armReleaseDate')}:</p>
41+
<ul>
42+
<li><a href="https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/tag/v${customField('upstreamVersion')}-${customField('xpackSubversion')}/" rel="noopener noreferrer" target="_blank">xPack GNU Arm Embedded GCC v${customField('upstreamVersion')}-${customField('xpackSubversion')}</a></li>
43+
</ul>
44+
`} </CodeBlock>
45+
46+
- Tags: xpack, gnu, gcc, arm, toolchain
1947

20-
Update with actual details from
21-
[Arm GNU Toolchain](https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads/).

website/docusaurus.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function getCustomFields() {
2525
const topFileContent = fs.readFileSync(topFilePath);
2626

2727
const topPackageJson = JSON.parse(topFileContent.toString());
28-
const jsonVersion = topPackageJson.version.replace(".pre", "");
28+
const jsonVersion = topPackageJson.version.replace(/[.-]pre/, '');
2929

3030
logger.info(`package version: ${topPackageJson.version}`);
3131

@@ -56,6 +56,7 @@ function getCustomFields() {
5656
return {
5757
appName: rootPackageJson.xpack.properties.appName,
5858
appLcName: rootPackageJson.xpack.properties.appLcName,
59+
version: jsonVersion,
5960
upstreamVersion,
6061
xpackSubversion,
6162
npmSubversion,

0 commit comments

Comments
 (0)