Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions website/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import pluginSitemap from 'rspress-plugin-sitemap';
import { defineConfig } from 'rspress/config';

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

export default defineConfig({
root: path.join(__dirname, 'docs'),
Expand Down Expand Up @@ -63,9 +62,6 @@ export default defineConfig({
}),
],
themeConfig: {
footer: {
message: COPYRIGHT,
},
socialLinks: [
{
icon: 'github',
Expand Down
16 changes: 7 additions & 9 deletions website/theme/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { usePageData } from 'rspress/runtime';
import { HomeFooter } from '../components/HomeFooter/index';
import LandingPage from '../components/Landingpage';

const CopyRight = () => {
const { siteData } = usePageData();
const { message } = siteData.themeConfig.footer || {};

if (!message) {
return null;
}

return (
<footer className="bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light">
<div className="m-auto w-full text-center">
<div className="font-medium text-sm text-text-2">{message}</div>
<div className="font-medium text-sm text-text-2">
<p className="mb-2">
Rspack is free and open source software released under the MIT
license.
</p>
<p>© 2022-present ByteDance Inc.</p>
</div>
</div>
</footer>
);
Expand Down
Loading