Skip to content

Commit 5a48ced

Browse files
committed
re-generate website commons
1 parent 6df2e08 commit 5a48ced

3 files changed

Lines changed: 994 additions & 418 deletions

File tree

website/customFields.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,30 @@ export function getCustomFields() {
7373

7474
let websiteFields = {};
7575
try {
76-
const websiteFilePath = path.join(path.dirname(path.dirname(pwd)), 'website', 'package.json');
76+
const websiteFilePath = path.join(
77+
path.dirname(path.dirname(pwd)),
78+
"website",
79+
"config",
80+
"website-templates.json",
81+
);
7782
// console.log(filePath);
7883
const websiteFileContent = fs.readFileSync(websiteFilePath);
7984
const websitePackageJson = JSON.parse(websiteFileContent.toString());
80-
websiteFields = websitePackageJson?.websiteConfig ?? {};
85+
websiteFields = websitePackageJson ?? {};
8186
} catch (error) {
82-
// Most probably there is no website/package.json.
87+
try {
88+
const websiteFilePath = path.join(
89+
path.dirname(path.dirname(pwd)),
90+
"website",
91+
"package.json",
92+
);
93+
// console.log(filePath);
94+
const websiteFileContent = fs.readFileSync(websiteFilePath);
95+
const websitePackageJson = JSON.parse(websiteFileContent.toString());
96+
websiteFields = websitePackageJson?.websiteConfig ?? {};
97+
} catch (error) {
98+
// Most probably there is no website/package.json.
99+
}
83100
}
84101

85102
return {

website/docs/user/_project/_more.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ XML parsing and full integration with the SEGGER J-Link GDB server.
1717

1818
Support for Python scripting was added to GDB. This distribution provides
1919
a separate binary, `aarch64-none-elf-gdb-py3` with
20-
support for **Python {customField('python_version')}**.
20+
support for **Python {customField('pythonVersion')}**.
2121

2222
The Python 3 run-time is included, so GDB does not need any version of
2323
Python to be installed, and is insensitive to the presence of other

0 commit comments

Comments
 (0)