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 c16d7de commit 93537f2
Show file tree
Hide file tree
Showing 4 changed files with 293 additions and 319 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 Windows Build Tools** 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
8 changes: 8 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ 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,
Expand All @@ -70,6 +77,7 @@ function getCustomFields() {
xpackSubversion,
npmSubversion,
upstreamVersion,
docusaurusVersion,
...customFields,
}
}
Expand Down
Loading

0 comments on commit 93537f2

Please sign in to comment.