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 c9561c4 commit 29f6e2f
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 307 deletions.
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 29f6e2f

Please sign in to comment.