Skip to content

Commit f1c4016

Browse files
committed
website: updates
1 parent 16da0fd commit f1c4016

File tree

4 files changed

+503
-367
lines changed

4 files changed

+503
-367
lines changed

website/blog/2024-09-18-web-site.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: The project has a new web site
3+
4+
date: 2024-09-18 13:21:00 +0300
5+
6+
authors: ilg-ul
7+
8+
tags:
9+
- web
10+
11+
---
12+
13+
After some experimentation with modern site generators,
14+
the **xPack GNU Arm Embedded GCC** project has a new web site.
15+
16+
<!--truncate-->
17+
18+
## MDX
19+
20+
The _new kid on the block_ is [MDX](https://mdxjs.com), that is a solution
21+
to integrate [JSX](https://react.dev/learn/writing-markup-with-jsx) with
22+
markdown.
23+
24+
The result is a static site (kind of), enhanced with lots of JavaScript
25+
code, specific to [React](https://react.dev) components.
26+
27+
## Docusaurus
28+
29+
The tool used to generate the site is [Docusaurus](https://docusaurus.io),
30+
a highly successful open source project.
31+
32+
## Minimal README
33+
34+
The content of the `README.md` file was migrated to the
35+
[Getting Started](/docs/getting-started/) page

website/docusaurus.config.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,23 @@ function getCustomFields() {
6161
upstreamVersion = xpackSemver;
6262
}
6363

64+
const websiteFilePath = path.join(path.dirname(path.dirname(pwd)), 'website', 'package.json');
65+
// logger.info(filePath);
66+
const websiteFileContent = fs.readFileSync(websiteFilePath);
67+
const websitePackageJson = JSON.parse(websiteFileContent.toString());
68+
69+
const docusaurusVersion = websitePackageJson.dependencies['@docusaurus/core'].replace ('^', '');
70+
6471
return {
6572
appName: rootPackageJson.xpack.properties.appName,
6673
appLcName: rootPackageJson.xpack.properties.appLcName,
6774
version: jsonVersion,
68-
upstreamVersion,
6975
xpackVersion,
7076
xpackSemver,
7177
xpackSubversion,
7278
npmSubversion,
79+
upstreamVersion,
80+
docusaurusVersion,
7381
...customFields,
7482
}
7583
}

0 commit comments

Comments
 (0)