Skip to content

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

docs: fix font licenses link opening the 404 page (#5574)

Zayn Jarvis61341514e3ad
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index 841500c91..899147c00 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -300,7 +300,7 @@ export default defineConfig({
{ icon: 'github', link: githubRepositoryUrl }
],
footer: {
- message: `Open source under the AGPL-3.0 License. <a href="${base}font-licenses.html">Font licenses</a>`,
+ message: `Open source under the AGPL-3.0 License. <a href="${base}font-licenses.html" target="_self">Font licenses</a>`,
copyright: 'Copyright OpenViking contributors'
}
},
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 1272684bd..43dcf6a15 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -262,7 +262,7 @@ 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') }, zh ? '字体许可' : 'Font licenses')])],
+ 'doc-after': () => [h(ApiExampleTabsEnhancer), h('p', { class: 'font-license-link' }, [h('a', { href: withBase('/font-licenses.html'), target: '_self' }, zh ? '字体许可' : 'Font licenses')])],
'nav-bar-content-before': () => h(OpenVikingSearch),
'nav-bar-content-after': () => h(LocaleSwitch),
'nav-screen-content-after': () => h(LocaleSwitch)