From 8e35baeb3a18e6fc6c8ebfa7b0589a3687874c6a Mon Sep 17 00:00:00 2001 From: Dania Rifki Date: Thu, 5 Feb 2026 22:18:38 +0800 Subject: Move license message and copyright text to footer --- .../.vitepress/theme/components/HomeFooter.vue | 42 ++++++++++++++++++++++ doc/docs/.vitepress/theme/index.ts | 4 ++- doc/docs/index.md | 7 ++-- doc/docs/zh/index.md | 7 ++-- 4 files changed, 51 insertions(+), 9 deletions(-) create mode 100644 doc/docs/.vitepress/theme/components/HomeFooter.vue (limited to 'doc/docs') diff --git a/doc/docs/.vitepress/theme/components/HomeFooter.vue b/doc/docs/.vitepress/theme/components/HomeFooter.vue new file mode 100644 index 0000000..5ee116c --- /dev/null +++ b/doc/docs/.vitepress/theme/components/HomeFooter.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/doc/docs/.vitepress/theme/index.ts b/doc/docs/.vitepress/theme/index.ts index c4ec3d7..0ee45fe 100644 --- a/doc/docs/.vitepress/theme/index.ts +++ b/doc/docs/.vitepress/theme/index.ts @@ -6,6 +6,8 @@ import './custom.css' // @ts-ignore import CompilerModal from './components/CompilerModal.vue' // @ts-ignore +import HomeFooter from './components/HomeFooter.vue' +// @ts-ignore import YueCompiler from './components/YueCompiler.vue' // @ts-ignore import YueDisplay from './components/YueDisplay.vue' @@ -14,7 +16,7 @@ const theme: Theme = { extends: DefaultTheme, Layout: () => h(DefaultTheme.Layout, null, { - 'layout-bottom': () => h(CompilerModal) + 'layout-bottom': () => [h(HomeFooter), h(CompilerModal)] }), enhanceApp({ app }) { app.component('CompilerModal', CompilerModal) diff --git a/doc/docs/index.md b/doc/docs/index.md index 6141caf..016b688 100644 --- a/doc/docs/index.md +++ b/doc/docs/index.md @@ -17,8 +17,7 @@ features: details: Pipe, pattern matching, slicing, and destructuring without giving up Lua interop. - title: Rapid Iteration details: Any feedback is welcome to help accelerate the language development and evolution! +footer: + message: MIT License. + copyright: Copyright © 2017-2026 Li Jin. All rights reserved. --- - -### License & Copyright - -MIT License. Copyright © 2017-2026 Li Jin. All rights reserved. diff --git a/doc/docs/zh/index.md b/doc/docs/zh/index.md index 5f2dc20..bd5cd6d 100644 --- a/doc/docs/zh/index.md +++ b/doc/docs/zh/index.md @@ -17,8 +17,7 @@ features: details: 管道、模式匹配、切片与解构,同时保留 Lua 互操作性。 - title: 快速迭代 details: 虚心接受用户反馈,以帮助改进和加速语言的开发和演进! +footer: + message: MIT 许可。 + copyright: Copyright © 2017-2026 Li Jin. 保留所有权利。 --- - -### 版权和协议 - -MIT 许可。Copyright © 2017-2026 Li Jin. 保留所有权利。 -- cgit v1.2.3-55-g6feb