Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 57 additions & 60 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,71 +1,68 @@
import { defineConfig } from "vitepress";
import { withMermaid } from "vitepress-plugin-mermaid";

const repository = "https://github.com/modelcontextprotocol/ext-skills";

export default withMermaid(
defineConfig({
title: "MCP Skills Extension",
description:
"Discover and read Agent Skills over the Model Context Protocol",
cleanUrls: true,
srcExclude: [
"README.md",
"SECURITY.md",
"CONTRIBUTING.md",
"AGENTS.md",
"CLAUDE.md",
"docs/**",
],
head: [["link", { rel: "icon", href: "/mcp.png" }]],
export default defineConfig({
title: "MCP Skills Extension",
description:
"Discover and read Agent Skills over the Model Context Protocol",
cleanUrls: true,
srcExclude: [
"README.md",
"SECURITY.md",
"CONTRIBUTING.md",
"AGENTS.md",
"CLAUDE.md",
"docs/**",
],
head: [["link", { rel: "icon", href: "/mcp.png" }]],

markdown: {
config(md) {
// Excerpts retain cross-references to the complete specification.
md.core.ruler.before("block", "overview-links", (state) => {
if (state.env.relativePath === "index.md") {
state.src = state.src.replace(
/\]\(#([^)]+)\)/g,
"](/specification/beta/skills#$1)",
);
}
});
// Render the existing MDX specification's callout after Markdown inclusion.
md.core.ruler.before("block", "mdx-notes", (state) => {
state.src = state.src
.replace(/^<Note>\s*$/gm, "::: info\n")
.replace(/^<\/Note>\s*$/gm, ":::\n");
});
},
markdown: {
config(md) {
// Excerpts retain cross-references to the complete specification.
md.core.ruler.before("block", "overview-links", (state) => {
if (state.env.relativePath === "index.md") {
state.src = state.src.replace(
/\]\(#([^)]+)\)/g,
"](/specification/beta/skills#$1)",
);
}
});
// Render the existing MDX specification's callout after Markdown inclusion.
md.core.ruler.before("block", "mdx-notes", (state) => {
state.src = state.src
.replace(/^<Note>\s*$/gm, "::: info\n")
.replace(/^<\/Note>\s*$/gm, ":::\n");
});
},
},

themeConfig: {
outline: [2, 3],
nav: [
{ text: "Specification", link: "/specification/beta/skills" },
{
text: "SEP-2640",
link: "https://modelcontextprotocol.io/seps/2640-skills-extension",
},
themeConfig: {
outline: [2, 3],
nav: [
{ text: "Specification", link: "/specification/beta/skills" },
{
text: "SEP-2640",
link: "https://modelcontextprotocol.io/seps/2640-skills-extension",
},
{
text: "Working Group",
link: "https://modelcontextprotocol.io/community/working-groups/skills-over-mcp",
},
],
sidebar: {
"/specification/": [
{
text: "Working Group",
link: "https://modelcontextprotocol.io/community/working-groups/skills-over-mcp",
text: "Specification",
items: [{ text: "Beta", link: "/specification/beta/skills" }],
},
],
sidebar: {
"/specification/": [
{
text: "Specification",
items: [{ text: "Beta", link: "/specification/beta/skills" }],
},
],
},
socialLinks: [{ icon: "github", link: repository }],
search: { provider: "local" },
editLink: {
pattern:
"https://github.com/modelcontextprotocol/ext-skills/edit/main/specification/beta/skills.mdx",
},
},
}),
);
socialLinks: [{ icon: "github", link: repository }],
search: { provider: "local" },
editLink: {
pattern:
"https://github.com/modelcontextprotocol/ext-skills/edit/main/specification/beta/skills.mdx",
},
},
});
Loading
Loading