Skip to content

Commit 32a1d38

Browse files
committed
feat: add complete GitHub Pages documentation for application engineering
- Add Jekyll configuration and layout files - Migrate Chinese documentation for all application engineering modules - Create English documentation structure - Add image resources and assets - Configure multi-language support
1 parent 73f13fd commit 32a1d38

149 files changed

Lines changed: 3546 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
title: ModelEngine Application Engineering Documentation
2+
description: Documentation for ModelEngine Application Engineering
3+
theme: jekyll-theme-cayman
4+
show_downloads: false
5+
6+
defaults:
7+
- scope:
8+
path: "docs/zh_CN"
9+
type: "pages"
10+
values:
11+
layout: "default"
12+
lang: "zh_CN"
13+
- scope:
14+
path: "docs/en_US"
15+
type: "pages"
16+
values:
17+
layout: "default"
18+
lang: "en_US"
19+
20+
plugins:
21+
- jekyll-relative-links
22+
- jekyll-toc
23+
24+
relative_links:
25+
enabled: true
26+
collections: true
27+
28+
toc:
29+
min_level: 1
30+
max_level: 3

_includes/sidebar.html

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<nav class="sidebar-nav">
2+
<h3>目录</h3>
3+
<ul>
4+
<li><a href="{{ '/' | relative_url }}">首页</a></li>
5+
<li>
6+
<a href="{{ '/docs/zh_CN/' | relative_url }}">中文文档</a>
7+
<ul>
8+
<li><a href="{{ '/docs/zh_CN/model-access/' | relative_url }}">模型接入</a></li>
9+
<li><a href="{{ '/docs/zh_CN/build-agent/' | relative_url }}">构建智能体</a></li>
10+
<li><a href="{{ '/docs/zh_CN/build-conversational-assistant/' | relative_url }}">构建对话助手</a></li>
11+
<li><a href="{{ '/docs/zh_CN/workflow/' | relative_url }}">工作流</a></li>
12+
<li><a href="{{ '/docs/zh_CN/knowledge-base/' | relative_url }}">知识库</a></li>
13+
<li><a href="{{ '/docs/zh_CN/plugins/' | relative_url }}">插件</a></li>
14+
<li><a href="{{ '/docs/zh_CN/forms/' | relative_url }}">表单</a></li>
15+
<li><a href="{{ '/docs/zh_CN/application-market/' | relative_url }}">应用市场</a></li>
16+
</ul>
17+
</li>
18+
<li>
19+
<a href="{{ '/docs/en_US/' | relative_url }}">English Docs</a>
20+
<ul>
21+
<li><a href="{{ '/docs/en_US/model-access/' | relative_url }}">Model Access</a></li>
22+
<li><a href="{{ '/docs/en_US/build-agent/' | relative_url }}">Build Agent</a></li>
23+
<li><a href="{{ '/docs/en_US/build-conversational-assistant/' | relative_url }}">Build Conversational Assistant</a></li>
24+
<li><a href="{{ '/docs/en_US/workflow/' | relative_url }}">Workflow</a></li>
25+
<li><a href="{{ '/docs/en_US/knowledge-base/' | relative_url }}">Knowledge Base</a></li>
26+
<li><a href="{{ '/docs/en_US/plugins/' | relative_url }}">Plugin</a></li>
27+
<li><a href="{{ '/docs/en_US/forms/' | relative_url }}">Form</a></li>
28+
<li><a href="{{ '/docs/en_US/application-market/' | relative_url }}">Application Market</a></li>
29+
</ul>
30+
</li>
31+
</ul>
32+
</nav>
33+
34+
<style>
35+
.sidebar-nav {
36+
background-color: #fff;
37+
border-radius: 6px;
38+
padding: 16px;
39+
box-shadow: 0 1px 3px rgba(0,0,0,0.12);
40+
}
41+
42+
.sidebar-nav h3 {
43+
margin-top: 0;
44+
border-bottom: 1px solid #eaecef;
45+
padding-bottom: 8px;
46+
}
47+
48+
.sidebar-nav ul {
49+
list-style: none;
50+
padding-left: 0;
51+
margin: 0;
52+
}
53+
54+
.sidebar-nav > ul > li {
55+
margin: 8px 0;
56+
}
57+
58+
.sidebar-nav a {
59+
color: #0366d6;
60+
text-decoration: none;
61+
display: block;
62+
padding: 4px 0;
63+
}
64+
65+
.sidebar-nav a:hover {
66+
text-decoration: underline;
67+
}
68+
69+
.sidebar-nav ul ul {
70+
padding-left: 16px;
71+
margin-top: 4px;
72+
}
73+
74+
.sidebar-nav ul ul li {
75+
margin: 4px 0;
76+
}
77+
78+
.sidebar-nav ul ul a {
79+
font-size: 0.9em;
80+
color: #586069;
81+
}
82+
</style>

_layouts/default.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: 'en' }}">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
7+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
8+
{% if page.toc %}
9+
<link rel="stylesheet" href="{{ '/assets/css/toc.css' | relative_url }}">
10+
{% endif %}
11+
</head>
12+
<body>
13+
<header class="site-header">
14+
<div class="wrapper">
15+
<a class="site-title" href="{{ '/' | relative_url }}">{{ site.title }}</a>
16+
<nav class="site-nav">
17+
<a href="{{ '/docs/zh_CN/' | relative_url }}" class="nav-link">中文</a>
18+
<a href="{{ '/docs/en_US/' | relative_url }}" class="nav-link">English</a>
19+
</nav>
20+
</div>
21+
</header>
22+
23+
<main class="page-content">
24+
<div class="wrapper">
25+
<div class="sidebar">
26+
{% include sidebar.html %}
27+
</div>
28+
<article class="content">
29+
{% if page.toc %}
30+
<div class="toc">
31+
{{ content | toc_only }}
32+
</div>
33+
{% endif %}
34+
{{ content }}
35+
</article>
36+
</div>
37+
</main>
38+
39+
<footer class="site-footer">
40+
<div class="wrapper">
41+
<p>&copy; {{ site.time | date: '%Y' }} ModelEngine-Group. All rights reserved.</p>
42+
</div>
43+
</footer>
44+
</body>
45+
</html>

assets/css/style.css

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
5+
body {
6+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
7+
line-height: 1.6;
8+
color: #24292e;
9+
margin: 0;
10+
padding: 0;
11+
background-color: #f6f8fa;
12+
}
13+
14+
.wrapper {
15+
max-width: 1200px;
16+
margin: 0 auto;
17+
padding: 0 16px;
18+
}
19+
20+
.site-header {
21+
background-color: #24292e;
22+
color: #fff;
23+
padding: 16px 0;
24+
}
25+
26+
.site-title {
27+
color: #fff;
28+
font-size: 1.5rem;
29+
font-weight: 600;
30+
text-decoration: none;
31+
}
32+
33+
.site-nav {
34+
float: right;
35+
}
36+
37+
.nav-link {
38+
color: rgba(255,255,255,0.7);
39+
text-decoration: none;
40+
margin-left: 16px;
41+
padding: 4px 8px;
42+
border-radius: 4px;
43+
}
44+
45+
.nav-link:hover {
46+
color: #fff;
47+
background-color: rgba(255,255,255,0.1);
48+
}
49+
50+
.page-content {
51+
padding: 32px 0;
52+
}
53+
54+
.page-content .wrapper {
55+
display: flex;
56+
gap: 32px;
57+
}
58+
59+
.sidebar {
60+
width: 260px;
61+
flex-shrink: 0;
62+
}
63+
64+
.content {
65+
flex: 1;
66+
min-width: 0;
67+
background-color: #fff;
68+
padding: 24px;
69+
border-radius: 6px;
70+
box-shadow: 0 1px 3px rgba(0,0,0,0.12);
71+
}
72+
73+
.content h1 {
74+
border-bottom: 1px solid #eaecef;
75+
padding-bottom: 8px;
76+
margin-top: 0;
77+
}
78+
79+
.content h2 {
80+
border-bottom: 1px solid #eaecef;
81+
padding-bottom: 8px;
82+
margin-top: 24px;
83+
}
84+
85+
.content h3 {
86+
margin-top: 24px;
87+
}
88+
89+
.content pre {
90+
background-color: #f6f8fa;
91+
border-radius: 6px;
92+
padding: 16px;
93+
overflow-x: auto;
94+
}
95+
96+
.content code {
97+
background-color: rgba(27,31,35,0.05);
98+
border-radius: 3px;
99+
font-size: 85%;
100+
margin: 0;
101+
padding: 0.2em 0.4em;
102+
}
103+
104+
.content pre code {
105+
background-color: transparent;
106+
padding: 0;
107+
}
108+
109+
.content table {
110+
border-collapse: collapse;
111+
width: 100%;
112+
margin: 16px 0;
113+
}
114+
115+
.content table th,
116+
.content table td {
117+
border: 1px solid #dfe2e5;
118+
padding: 8px 12px;
119+
}
120+
121+
.content table th {
122+
background-color: #f6f8fa;
123+
font-weight: 600;
124+
}
125+
126+
.content table tr:nth-child(even) {
127+
background-color: #f6f8fa;
128+
}
129+
130+
.content img {
131+
max-width: 100%;
132+
height: auto;
133+
}
134+
135+
.content blockquote {
136+
border-left: 4px solid #dfe2e5;
137+
padding-left: 16px;
138+
color: #6a737d;
139+
margin: 16px 0;
140+
}
141+
142+
.content ul, .content ol {
143+
padding-left: 2em;
144+
}
145+
146+
.site-footer {
147+
background-color: #24292e;
148+
color: rgba(255,255,255,0.7);
149+
padding: 24px 0;
150+
text-align: center;
151+
}
152+
153+
.site-footer p {
154+
margin: 0;
155+
}
156+
157+
.toc {
158+
background-color: #f6f8fa;
159+
border: 1px solid #eaecef;
160+
border-radius: 6px;
161+
padding: 16px;
162+
margin-bottom: 24px;
163+
}
164+
165+
.toc ul {
166+
list-style: none;
167+
padding-left: 0;
168+
margin: 0;
169+
}
170+
171+
.toc li {
172+
margin: 4px 0;
173+
}
174+
175+
.toc a {
176+
color: #0366d6;
177+
text-decoration: none;
178+
}
179+
180+
.toc a:hover {
181+
text-decoration: underline;
182+
}
183+
184+
@media (max-width: 768px) {
185+
.page-content .wrapper {
186+
flex-direction: column;
187+
}
188+
189+
.sidebar {
190+
width: 100%;
191+
}
192+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
title: Application Market
4+
parent: Application Engineering
5+
nav_order: 8
6+
has_children: true
7+
---
8+
9+
# Application Market
10+
11+
This section introduces the application marketplace for discovering, sharing, and deploying AI applications.
12+
13+
## Contents
14+
15+
- [Application Market Overview](overview) - Introduction to application marketplace features

0 commit comments

Comments
 (0)