Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

docs: move per-page font licenses link to the sidebar bottom (#5576)

Zayn Jarvis66418e06a397
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 43dcf6a15..c15ba64bf 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -262,7 +262,8 @@ export default {
h(CopyMarkdownButton)
])],
'sidebar-nav-before': () => h('a', { class: 'sidebar-home-link', href: withBase(zh ? '/zh/' : '/en/') }, zh ? '← 文档首页' : '← Documentation home'),
- 'doc-after': () => [h(ApiExampleTabsEnhancer), h('p', { class: 'font-license-link' }, [h('a', { href: withBase('/font-licenses.html'), target: '_self' }, zh ? '字体许可' : 'Font licenses')])],
+ 'sidebar-nav-after': () => h('a', { class: 'sidebar-font-license-link', href: withBase('/font-licenses.html'), target: '_self' }, zh ? '字体许可' : 'Font licenses'),
+ 'doc-after': () => h(ApiExampleTabsEnhancer),
'nav-bar-content-before': () => h(OpenVikingSearch),
'nav-bar-content-after': () => h(LocaleSwitch),
'nav-screen-content-after': () => h(LocaleSwitch)
diff --git a/docs/.vitepress/theme/reading.css b/docs/.vitepress/theme/reading.css
index 9c23bbda8..7de70a760 100644
--- a/docs/.vitepress/theme/reading.css
+++ b/docs/.vitepress/theme/reading.css
@@ -13,6 +13,8 @@
.doc-breadcrumb > span:not([aria-current]) { opacity: .4; }
.sidebar-home-link { display: block; padding: 8px 0 22px; margin-bottom: 5px; font-size: 14px; color: var(--vp-c-text-2); border-bottom: 1px solid var(--vp-c-divider); }
.sidebar-home-link:hover { color: var(--vp-c-brand-1); }
+.sidebar-font-license-link { display: block; margin-top: 24px; padding: 12px 0 24px; border-top: 1px solid var(--vp-c-divider); font-size: 12px; line-height: 18px; color: var(--vp-c-text-3); transition: color 0.25s; }
+.sidebar-font-license-link:hover { color: var(--vp-c-text-2); }
.VPSidebarItem.level-0 > .item .text { font-size: 14px; letter-spacing: 0; }
.VPSidebarItem.level-1 > .item .text { font-size: 14px; }
.VPSidebarItem.is-active > .item > .link { background: var(--vp-c-brand-soft); border-radius: 4px; padding-inline: 8px; margin-inline: -8px; }