Skip to content

Commit 93eef81

Browse files
committed
website: re-generate commons
1 parent 589b601 commit 93eef81

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

website/customFields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function getCustomFields() {
7777
// console.log(filePath);
7878
const websiteFileContent = fs.readFileSync(websiteFilePath);
7979
const websitePackageJson = JSON.parse(websiteFileContent.toString());
80-
websiteFields = websitePackageJson?.websiteConfig?.customFields ?? {};
80+
websiteFields = websitePackageJson?.websiteConfig ?? {};
8181
} catch (error) {
8282
// Most probably there is no website/package.json.
8383
}

website/docs/_common/_publish-website.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ The website deployment is performed automatically when pushing to the
1111

1212
- Open https://xpack.github.io/docs/maintainer/#publish-the-website in a separate window
1313
- **Stop** the local web server
14+
- Switch to the `webpreview` branch
15+
- **Merge** the `webpreview` branch into the `webpreview` branch
16+
- **Push** the `webpreview` branch to GitHub
17+
:::info
18+
At this point, an automated GitHub Action will generate and publish
19+
the [preview website](https://xpack.github.io/web-preview/).
20+
:::
1421
- Switch to the `website` branch
1522
- **Merge** the `webpreview` branch into the `website` branch
1623
- **Push** the `website` branch to GitHub
1724
:::info
18-
At this point, an automated GitHub Action will generate and publish the website.
25+
At this point, an automated forwarding GitHub Action will trigger
26+
a GitHub Action in the separate project to generate and publish
27+
the [website]https://xpack.github.io/.
1928
:::
2029
- Check out the `webpreview` branch
2130
- **Wait** for the publication to complete

website/src/plugins/SelectReleasesPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* be obtained from https://opensource.org/licenses/mit.
1313
*/
1414

15-
import util from 'util';
15+
import util from 'util'
1616

1717
// https://github.com/facebook/docusaurus/pull/9931
1818

0 commit comments

Comments
 (0)