This commit is contained in:
锦恢 2025-05-26 03:01:06 +08:00
parent 0653ab4350
commit d89ba35c55
5 changed files with 70 additions and 24 deletions

View File

@ -1,6 +1,5 @@
import { defineConfig } from 'vitepress' import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({ export default defineConfig({
title: "OpenMCP", title: "OpenMCP",
description: "为开发者和科研人员准备的MCP开发环境和SDK", description: "为开发者和科研人员准备的MCP开发环境和SDK",
@ -26,6 +25,9 @@ export default defineConfig({
], ],
footer: { footer: {
message: '缩短LLM到Agent的最后一公里' message: '缩短LLM到Agent的最后一公里'
} },
// 添加右侧图片配置
logo: '/openmcp.png', // 确保图片放在public目录下
} }
}) })

View File

@ -1,17 +1,19 @@
// https://vitepress.dev/guide/custom-theme // https://vitepress.dev/guide/custom-theme
import { h } from 'vue' import { h } from 'vue';
import type { Theme } from 'vitepress' import type { Theme } from 'vitepress';
import DefaultTheme from 'vitepress/theme' import DefaultTheme from 'vitepress/theme';
import './style.css' import HeroImage from './openmcp-hero-image.vue';
import './style.css';
export default { export default {
extends: DefaultTheme, extends: DefaultTheme,
Layout: () => { Layout: () => {
return h(DefaultTheme.Layout, null, { return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots 'home-hero-image': () => h(HeroImage)
}) })
}, },
enhanceApp({ app, router, siteData }) { enhanceApp({ app, router, siteData }) {
// ... // ...
} }
} satisfies Theme } satisfies Theme

View File

@ -0,0 +1,38 @@
<template>
<img class="VPImage image-src" src="/openmcp.png" alt="">
</template>
<style scoped>
.VPHero .VPImage {
filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, .2));
padding: 18px;
}
@media (min-width: 960px) {
.image-src {
max-width: 320px;
max-height: 320px;
}
}
@media (min-width: 640px) {
.image-src {
max-width: 256px;
max-height: 256px;
}
}
.image-src {
position: absolute;
top: 50%;
left: 50%;
max-width: 352px;
max-height: 352px;
width: 100%;
height: 100%;
object-fit: contain;
transform: translate(-50%, -50%);
}
</style>

View File

@ -4,22 +4,26 @@ layout: home
hero: hero:
name: "OpenMCP" name: "OpenMCP"
text: "elegant mcp development tools and sdk for developers and researchers" text: "elegant mcp debuggers and sdk for developers"
tagline: Shortening the last mile from LLM to Agent tagline: Shortening the last mile from LLM to Agent
actions: actions:
- theme: brand - theme: brand
text: Markdown Examples text: OpenMCP Client
link: /markdown-examples link: /markdown-examples
- theme: alt - theme: alt
text: API Examples text: openmcp-sdk
link: /api-examples
- theme: alt
text: Github
link: /api-examples link: /api-examples
features: features:
- title: Feature A - title: Integrated Debugging Environment
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit details: Combines Inspector with MCP client functions for seamless development and testing
- title: Feature B - title: Comprehensive Project Management
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit details: Offers complete project-level control panels for efficient MCP project oversight
- title: Feature C - title: Multi-Model Support
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit details: Supports various large language models with flexible integration capabilities
--- ---

BIN
openmcp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB