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: 4 additions & 0 deletions website/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,10 @@ const config: UserConfig = defineConfig({
text: 'Guide',
link: '/guide/installation',
},
{
text: 'REPL',
link: '/repl',
},
{
Comment thread
Huxpro marked this conversation as resolved.
text: 'API',
items: [
Expand Down
23 changes: 23 additions & 0 deletions website/theme/Layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.

import { useLang } from '@rspress/core/runtime';
import { Banner, Layout as BasicLayout } from '@rspress/core/theme-original';

export const Layout = () => {
const lang = useLang();
return (
<BasicLayout
beforeNav={
<Banner
href='https://lynxjs.org'
storage={false}
message={lang === 'en'
? 'This is the dev preview website. Check out the document at lynxjs.org'
: '这是开发预览网站。请访问正式文档 lynxjs.org'}
Comment thread
colinaaa marked this conversation as resolved.
/>
}
/>
);
Comment thread
colinaaa marked this conversation as resolved.
};
3 changes: 3 additions & 0 deletions website/theme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ export { HomeLayout } from './HomeLayout/index.jsx';
// The eslint-plugin-import cannot resolve `@rspress/core`
// eslint-disable-next-line import/export
export * from '@rspress/core/theme-original';

// eslint-disable-next-line import/export
export { Layout } from './Layout.jsx';
Loading