Skip to content

Commit 3d18319

Browse files
authored
docs: add license to website footer (#8261)
* docs: add license to website footer * fix
1 parent f26bf54 commit 3d18319

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

website/rspress.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import pluginSitemap from 'rspress-plugin-sitemap';
88
import { defineConfig } from 'rspress/config';
99

1010
const PUBLISH_URL = 'https://rspack.dev';
11-
const COPYRIGHT = '© 2022-present ByteDance Inc. All Rights Reserved.';
1211

1312
export default defineConfig({
1413
root: path.join(__dirname, 'docs'),
@@ -63,9 +62,6 @@ export default defineConfig({
6362
}),
6463
],
6564
themeConfig: {
66-
footer: {
67-
message: COPYRIGHT,
68-
},
6965
socialLinks: [
7066
{
7167
icon: 'github',

website/theme/pages/index.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
import { usePageData } from 'rspress/runtime';
21
import { HomeFooter } from '../components/HomeFooter/index';
32
import LandingPage from '../components/Landingpage';
43

54
const CopyRight = () => {
6-
const { siteData } = usePageData();
7-
const { message } = siteData.themeConfig.footer || {};
8-
9-
if (!message) {
10-
return null;
11-
}
12-
135
return (
146
<footer className="bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light">
157
<div className="m-auto w-full text-center">
16-
<div className="font-medium text-sm text-text-2">{message}</div>
8+
<div className="font-medium text-sm text-text-2">
9+
<p className="mb-2">
10+
Rspack is free and open source software released under the MIT
11+
license.
12+
</p>
13+
<p>© 2022-present ByteDance Inc.</p>
14+
</div>
1715
</div>
1816
</footer>
1917
);

0 commit comments

Comments
 (0)