Skip to content

Commit

Permalink
website: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Sep 18, 2024
1 parent 16da0fd commit f1c4016
Show file tree
Hide file tree
Showing 4 changed files with 503 additions and 367 deletions.
35 changes: 35 additions & 0 deletions website/blog/2024-09-18-web-site.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: The project has a new web site

date: 2024-09-18 13:21:00 +0300

authors: ilg-ul

tags:
- web

---

After some experimentation with modern site generators,
the **xPack GNU Arm Embedded GCC** project has a new web site.

<!--truncate-->

## MDX

The _new kid on the block_ is [MDX](https://mdxjs.com), that is a solution
to integrate [JSX](https://react.dev/learn/writing-markup-with-jsx) with
markdown.

The result is a static site (kind of), enhanced with lots of JavaScript
code, specific to [React](https://react.dev) components.

## Docusaurus

The tool used to generate the site is [Docusaurus](https://docusaurus.io),
a highly successful open source project.

## Minimal README

The content of the `README.md` file was migrated to the
[Getting Started](/docs/getting-started/) page
10 changes: 9 additions & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,23 @@ function getCustomFields() {
upstreamVersion = xpackSemver;
}

const websiteFilePath = path.join(path.dirname(path.dirname(pwd)), 'website', 'package.json');
// logger.info(filePath);
const websiteFileContent = fs.readFileSync(websiteFilePath);
const websitePackageJson = JSON.parse(websiteFileContent.toString());

const docusaurusVersion = websitePackageJson.dependencies['@docusaurus/core'].replace ('^', '');

return {
appName: rootPackageJson.xpack.properties.appName,
appLcName: rootPackageJson.xpack.properties.appLcName,
version: jsonVersion,
upstreamVersion,
xpackVersion,
xpackSemver,
xpackSubversion,
npmSubversion,
upstreamVersion,
docusaurusVersion,
...customFields,
}
}
Expand Down
Loading

0 comments on commit f1c4016

Please sign in to comment.