Skip to content

Commit a8709e0

Browse files
authored
build: fix up website build (#601)
Signed-off-by: tison <[email protected]>
1 parent a34285f commit a8709e0

File tree

4 files changed

+181
-731
lines changed

4 files changed

+181
-731
lines changed

.github/workflows/markdownlint.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,3 @@ jobs:
5050
else
5151
echo "No markdown files changed, skipping lint."
5252
fi
53-
- name: Create PR comment with lint result
54-
if: failure() && steps.lint.conclusion == 'failure' && github.event_name == 'pull_request'
55-
uses: peter-evans/create-or-update-comment@v4
56-
with:
57-
token: ${{ secrets.GITHUB_TOKEN }}
58-
issue-number: ${{ github.event.pull_request.number }}
59-
body-file: comment-body.txt

website/docusaurus.config.js

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
// There are various equivalent ways to declare your Docusaurus config.
22
// See: https://docusaurus.io/docs/api/docusaurus-config
3-
import {themes as prismThemes} from 'prism-react-renderer';
3+
import { themes as prismThemes } from 'prism-react-renderer';
44

55
const branch = 'main';
6-
const repoUrl = `https://github.com/fast-excel/fesod`;
6+
const repoUrl = `https://github.com/apache/fesod`;
77

88
const config = {
99
title: 'Fesod',
1010
favicon: 'img/favicon.ico',
1111

12-
// Set the production url of your site here
13-
url: 'https://fast-excel.github.io',
14-
// Set the /<baseUrl>/ pathname under which your site is served
15-
// For GitHub pages deployment, it is often '/<projectName>/'
16-
baseUrl: '/fesod/',
12+
url: 'https://fesod.apache.org',
13+
baseUrl: "/",
1714

18-
// GitHub pages deployment config.
19-
organizationName: 'fast-excel',
20-
projectName: 'fesod',
21-
deploymentBranch: 'gh-pages',
22-
23-
onBrokenLinks: 'throw',
24-
onBrokenMarkdownLinks: 'warn',
15+
trailingSlash: true,
2516

2617
future: {
27-
v4: true,
2818
// Improve compatibility with the upcoming Docusaurus v4
19+
v4: true,
20+
},
21+
22+
markdown: {
23+
hooks: {
24+
onBrokenLinks: 'throw',
25+
onBrokenMarkdownLinks: 'throw',
26+
}
2927
},
28+
3029
customFields: {
3130
repoUrl,
3231
},
@@ -106,13 +105,13 @@ const config = {
106105
metadata: [
107106
{
108107
name: 'keywords',
109-
content: 'fastexcel, fast-excel, excel, poi, opensource',
108+
content: 'apache, fesod, poi, opensource',
110109
}
111110
],
112111
footer: {
113112
style: 'dark',
114113
links: [],
115-
copyright: `Copyright © ${new Date().getFullYear()} FastExcel, Licensed under the Apache License, Version 2.0.`,
114+
copyright: `Copyright © ${new Date().getFullYear()} The Apache Software Foundation, Licensed under the Apache License, Version 2.0.`,
116115
},
117116
prism: {
118117
theme: prismThemes.github,

website/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"md-lint-fix": "yarn md-lint --fix"
1919
},
2020
"dependencies": {
21-
"@docusaurus/core": "3.8.1",
22-
"@docusaurus/preset-classic": "3.8.1",
23-
"@docusaurus/theme-mermaid": "^3.8.1",
21+
"@docusaurus/core": "^3.9.1",
22+
"@docusaurus/preset-classic": "^3.9.1",
23+
"@docusaurus/theme-mermaid": "^3.9.1",
2424
"@mdx-js/react": "^3.0.0",
2525
"clsx": "^2.0.0",
2626
"markdownlint-cli2": "^0.18.1",
@@ -29,8 +29,8 @@
2929
"react-dom": "^19.0.0"
3030
},
3131
"devDependencies": {
32-
"@docusaurus/module-type-aliases": "3.8.1",
33-
"@docusaurus/types": "3.8.1",
32+
"@docusaurus/module-type-aliases": "^3.9.1",
33+
"@docusaurus/types": "^3.9.1",
3434
"gh-pages": "^6.3.0"
3535
},
3636
"browserslist": {
@@ -48,4 +48,4 @@
4848
"engines": {
4949
"node": ">=18.0"
5050
}
51-
}
51+
}

0 commit comments

Comments
 (0)