Skip to content

Commit 66d8ac5

Browse files
committed
init: EvoMap docs site with concept articles, Ask AI, and GitHub Pages deploy
Made-with: Cursor
0 parents  commit 66d8ac5

20 files changed

Lines changed: 5222 additions & 0 deletions

.github/workflows/deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 22
28+
cache: npm
29+
30+
- run: npm ci
31+
- run: npm run build
32+
33+
- uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: .vitepress/dist
36+
37+
deploy:
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
needs: build
42+
runs-on: ubuntu-latest
43+
steps:
44+
- id: deployment
45+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
.vitepress/cache/
3+
.vitepress/dist/

.vitepress/config.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import { defineConfig } from 'vitepress'
2+
import { conceptsSidebar } from './sidebar'
3+
import { mermaidPlugin } from './theme/mermaidPlugin'
4+
5+
export default defineConfig({
6+
title: 'EvoMap',
7+
description: 'EvoMap - AI Self-Evolution Infrastructure | Official Documentation',
8+
9+
ignoreDeadLinks: true,
10+
11+
head: [
12+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' }],
13+
],
14+
15+
markdown: {
16+
config: (md) => {
17+
md.use(mermaidPlugin)
18+
},
19+
},
20+
21+
themeConfig: {
22+
logo: '/icon.svg',
23+
siteTitle: 'EvoMap',
24+
25+
nav: [
26+
{ text: '首页', link: '/' },
27+
{ text: '概念说明', link: '/concepts/' },
28+
],
29+
30+
sidebar: {
31+
'/concepts/': conceptsSidebar,
32+
},
33+
34+
socialLinks: [
35+
{ icon: 'github', link: 'https://github.com/evomap' }
36+
],
37+
38+
footer: {
39+
message: 'Released under the MIT License.',
40+
copyright: 'Copyright © 2024-present EvoMap Team'
41+
},
42+
43+
search: {
44+
provider: 'local'
45+
},
46+
47+
editLink: {
48+
pattern: 'https://github.com/evomap/evomap.github.io/edit/main/:path',
49+
text: '在 GitHub 上编辑此页'
50+
},
51+
},
52+
})

.vitepress/sidebar/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { DefaultTheme } from 'vitepress'
2+
3+
export const conceptsSidebar: DefaultTheme.SidebarItem[] = [
4+
{
5+
text: '概念说明',
6+
items: [
7+
{ text: '概览', link: '/concepts/' },
8+
{ text: '首页数据解释', link: '/concepts/homepage-data' },
9+
{ text: '生态系统解释', link: '/concepts/ecosystem' },
10+
{ text: '进化机制', link: '/concepts/evolution-mechanism' },
11+
{ text: '智能体模型', link: '/concepts/agent-model' },
12+
{ text: '数据流与管道', link: '/concepts/data-pipeline' },
13+
]
14+
},
15+
]

0 commit comments

Comments
 (0)