chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -0,0 +1,52 @@
|
||||
/* Shared by the product homepage and VitePress documentation. */
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--wk-ink: #101f38;
|
||||
--wk-ink-deep: #0a1526;
|
||||
--wk-ink-soft: #40536f;
|
||||
--wk-ink-mute: #6d7d94;
|
||||
--wk-gold: #b8863b;
|
||||
--wk-gold-light: #d9a94f;
|
||||
--wk-paper: #fdfcfa;
|
||||
--wk-paper-2: #f5f3ee;
|
||||
--wk-paper-3: #edeae2;
|
||||
--wk-rule: rgba(16, 31, 56, .12);
|
||||
--wk-rule-soft: rgba(16, 31, 56, .07);
|
||||
--wk-surface: #fff;
|
||||
--wk-header: rgba(253, 252, 250, .96);
|
||||
--wk-button-hover: #24395a;
|
||||
--wk-accent-text: #886025;
|
||||
--wk-accent-border: #dfd1b9;
|
||||
--wk-logo-ground: #fff;
|
||||
--wk-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
||||
--wk-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", serif;
|
||||
--wk-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
||||
}
|
||||
html.dark {
|
||||
color-scheme: dark;
|
||||
--wk-ink: #e6ecf5;
|
||||
--wk-ink-soft: #a9b6c9;
|
||||
--wk-ink-mute: #9aaac0;
|
||||
--wk-gold: #d9a94f;
|
||||
--wk-gold-light: #e8c176;
|
||||
--wk-paper: #0b1220;
|
||||
--wk-paper-2: #101a2b;
|
||||
--wk-paper-3: #16233a;
|
||||
--wk-rule: rgba(190, 208, 232, .14);
|
||||
--wk-rule-soft: rgba(190, 208, 232, .08);
|
||||
--wk-surface: #101a2b;
|
||||
--wk-header: rgba(11, 18, 32, .96);
|
||||
--wk-button-hover: #c3d0e2;
|
||||
--wk-accent-text: #e8c176;
|
||||
--wk-accent-border: #685638;
|
||||
}
|
||||
|
||||
/* Original README artwork, copied byte-for-byte. Only blank outer canvas is
|
||||
hidden (source viewport: x=0, y=208, width=945, height=238). Keep the full
|
||||
lettering, sail and waves. Blend away the blank background in light mode;
|
||||
the user-approved inverted presentation is applied only in dark mode. */
|
||||
.wk-logo { position: relative; display: inline-block; width: 164px; aspect-ratio: 945 / 238; overflow: hidden; flex-shrink: 0; vertical-align: middle; mix-blend-mode: multiply; }
|
||||
html.dark .wk-logo { mix-blend-mode: screen; }
|
||||
html.dark .wk-logo img { filter: invert(1) hue-rotate(180deg); }
|
||||
.wk-logo img { position: absolute; display: block; left: 0; top: -87.394958%; width: 100%; max-width: none; height: auto; }
|
||||
@media (max-width: 480px) { .wk-brand .wk-logo { width: 148px; } }
|
||||
@@ -0,0 +1,59 @@
|
||||
/* Keep the masthead identical across the product site and documentation. */
|
||||
.wk-header { position: sticky; top: 0; z-index: 30; width: 100%; border-bottom: 1px solid var(--wk-rule); background: var(--wk-header); backdrop-filter: blur(16px); color: var(--wk-ink); font-family: var(--wk-font-sans); font-feature-settings: normal; line-height: 1.75; }
|
||||
.wk-header *, .wk-header *::before, .wk-header *::after { box-sizing: border-box; }
|
||||
.wk-header a { text-decoration: none; }
|
||||
.wk-header button { font: inherit; cursor: pointer; padding: 0; }
|
||||
.wk-header-inner { width: 100%; padding-inline: 32px; margin-inline: auto; height: 63px; display: flex; align-items: center; gap: 28px; }
|
||||
.wk-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--wk-ink); flex-shrink: 0; }
|
||||
.wk-navigation { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.2vw, 40px); flex: 1; }
|
||||
.wk-navigation a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400; color: var(--wk-ink-soft); transition: color .2s; }
|
||||
.wk-navigation a:hover, .wk-navigation a[aria-current="page"] { color: var(--wk-gold); }
|
||||
.wk-header svg { width: 24px; height: 24px; flex-shrink: 0; }
|
||||
.wk-navigation svg { width: 14px; height: 14px; }
|
||||
.wk-new-label { font-size: 12px; font-weight: 650; color: var(--wk-accent-text); letter-spacing: .03em; border: 1px solid var(--wk-accent-border); padding: 0 4px; line-height: 1.6; }
|
||||
.wk-header-github { font-size: 14px; display: flex; align-items: center; gap: 9px; color: var(--wk-ink); padding-left: 28px; border-left: 1px solid var(--wk-rule); min-height: 30px; }
|
||||
.wk-header-github svg { width: 20px; height: 20px; }
|
||||
.wk-header .wk-menu-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; color: var(--wk-ink); align-items: center; justify-content: center; }
|
||||
.wk-header .wk-theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--wk-rule); border-radius: 20px; background: var(--wk-paper-2); color: var(--wk-ink-soft); }
|
||||
.wk-theme-toggle:hover { color: var(--wk-gold); border-color: var(--wk-gold); }
|
||||
.wk-theme-toggle svg { width: 19px; height: 19px; }
|
||||
.wk-nav-menu { position: relative; display: inline-flex; align-items: center; }
|
||||
.wk-nav-caret { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 44px; margin-left: -4px; border: 0; background: none; color: var(--wk-ink-soft); }
|
||||
.wk-nav-caret svg { width: 14px; height: 14px; transition: transform .2s; }
|
||||
.wk-nav-menu.is-open .wk-nav-caret,
|
||||
.wk-nav-menu:hover .wk-nav-caret { color: var(--wk-gold); }
|
||||
.wk-nav-menu.is-open .wk-nav-caret svg,
|
||||
.wk-nav-menu:hover .wk-nav-caret svg { transform: rotate(180deg); }
|
||||
.wk-nav-dropdown { display: none; position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; min-width: 128px; padding: 6px 0; background: var(--wk-surface); border: 1px solid var(--wk-rule); box-shadow: 0 8px 24px rgba(16, 31, 56, .06); flex-direction: column; }
|
||||
.wk-nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
|
||||
.wk-nav-menu.is-open .wk-nav-dropdown,
|
||||
.wk-nav-menu:hover .wk-nav-dropdown,
|
||||
.wk-nav-menu:focus-within .wk-nav-dropdown { display: flex; }
|
||||
.wk-nav-dropdown a { min-height: 36px; padding: 0 20px; justify-content: flex-start; letter-spacing: .01em; }
|
||||
html.dark .wk-nav-dropdown { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
|
||||
.wk-navigation .wk-mobile-github { display: none; }
|
||||
.wk-navigation a:focus:not(:focus-visible) { outline: none; }
|
||||
.wk-header :focus-visible { outline: 2px solid var(--wk-gold); outline-offset: 5px; }
|
||||
@media (max-width: 1100px) {
|
||||
.wk-header-inner { padding-inline: 24px; gap: 14px; }
|
||||
.wk-navigation { gap: 14px; }
|
||||
.wk-navigation a { font-size: 13px; }
|
||||
.wk-header-github { padding-left: 18px; }
|
||||
.wk-header-github span { display: none; }
|
||||
}
|
||||
@media (max-width: 800px) {
|
||||
.wk-header-inner { gap: 12px; }
|
||||
.wk-header-github { display: none; }
|
||||
.wk-header .wk-menu-toggle { display: flex; }
|
||||
.wk-theme-toggle { margin-left: auto; }
|
||||
.wk-navigation { display: none; }
|
||||
.wk-navigation.is-open { display: flex; position: absolute; left: 0; top: 63px; max-height: calc(100dvh - 64px); overflow-y: auto; right: 0; padding: 20px 32px 26px; background: var(--wk-paper); border-bottom: 1px solid var(--wk-rule); flex-direction: column; align-items: stretch; gap: 4px; box-shadow: 0 15px 20px #101f380a; }
|
||||
.wk-navigation a { font-size: 16px; }
|
||||
.wk-navigation .wk-mobile-github { display: inline-flex; }
|
||||
.wk-nav-menu { flex-direction: column; align-items: stretch; }
|
||||
.wk-nav-caret { display: none; }
|
||||
.wk-nav-dropdown { display: flex; position: static; min-width: 0; padding: 0 0 4px 18px; border: 0; box-shadow: none; background: transparent; }
|
||||
.wk-nav-dropdown::before { display: none; }
|
||||
.wk-nav-dropdown a { min-height: 40px; padding: 0; font-size: 15px; }
|
||||
}
|
||||
@media (max-width: 480px) { .wk-header-inner { padding-inline: 20px; } }
|
||||
@@ -0,0 +1,46 @@
|
||||
// Product navigation and shared masthead icons.
|
||||
export type SiteNavChild = {
|
||||
label: string;
|
||||
href: string;
|
||||
};
|
||||
|
||||
export type SiteNavItem = {
|
||||
label: string;
|
||||
href: string;
|
||||
badge?: string;
|
||||
external?: boolean;
|
||||
children?: SiteNavChild[];
|
||||
};
|
||||
|
||||
export const siteNavigation: SiteNavItem[] = [
|
||||
{ label: '产品能力', href: '/#capabilities', badge: '' },
|
||||
{ label: 'v0.8.3', href: '/#release', badge: 'NEW' },
|
||||
{ label: '生态集成', href: '/#ecosystem', badge: '' },
|
||||
{ label: '企业部署', href: '/#enterprise', badge: '' },
|
||||
{ label: '文档', href: '/docs/', badge: '' },
|
||||
{
|
||||
label: '模型评测',
|
||||
href: '/docs/models',
|
||||
badge: '',
|
||||
children: [
|
||||
{ label: 'LLM', href: '/docs/models#llm' },
|
||||
{ label: 'Embed', href: '/docs/models#embed' },
|
||||
{ label: 'Rerank', href: '/docs/models#rerank' },
|
||||
{ label: '数据集', href: '/docs/models#dataset' },
|
||||
],
|
||||
},
|
||||
];
|
||||
// The site sits behind an upstream router that forwards only `/` and `/docs/`.
|
||||
// Everything else the homepage loads (Next chunks, images) is served from here:
|
||||
// Next's assetPrefix points at it and homepage/public mirrors the same path.
|
||||
export const homeAssets = '/docs/_home';
|
||||
export const repositoryUrl = 'https://github.com/Tencent/WeKnora';
|
||||
export const headerIcons: Record<string, string> = {
|
||||
sun: 'M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5',
|
||||
moon: 'M20.8 13A9 9 0 0 1 11 3.2 9 9 0 1 0 20.8 13Z',
|
||||
menu: 'M4 6h16M4 12h16M4 18h16',
|
||||
close: 'm5 5 14 14M5 19 19 5',
|
||||
external: 'M8 5H5v14h14v-3M12 5h7v7M10 14 19 5',
|
||||
chevron: 'm6 9 6 6 6-6',
|
||||
github: 'M9 19c-4.3 1.3-4.3-2.2-6-2.7m12 5v-3.5c0-1 .1-1.4-.5-2 3.4-.4 7-1.7 7-7.5a5.7 5.7 0 0 0-1.5-4 5.4 5.4 0 0 0-.1-4S18.6-.1 15.5 2a14 14 0 0 0-7 0C5.4-.1 4.1.3 4.1.3A5.4 5.4 0 0 0 4 4.3a5.7 5.7 0 0 0-1.5 4c0 5.8 3.6 7.1 7 7.5-.6.6-.6 1.2-.5 2V21',
|
||||
};
|
||||
Reference in new issue
Block a user