1
0
forked from devstar/docs

项目的目录结构和命名做了更新

This commit is contained in:
孟宁
2025-11-13 02:58:03 +00:00
parent 28f151e092
commit 636efd79ff
19 changed files with 163 additions and 47 deletions

View File

@@ -20,13 +20,15 @@ export default defineConfig({
nav: [
// { text: '文档', link: '/document/index' },
//
{ text: 'Devstar', link: '/devstar' },
{ text: 'Cloudbuild', link: '/cloudbuild' },
{ text: 'Simulator', link: '/simulator' },
{ text: 'DevStar Studio', link: '/devstar' },
{ text: '编译加速', link: '/compiling' },
{ text: '虚拟仿真', link: '/simulator' },
{ text: 'Enterprise', link: '/enterprise' },
],
sidebar: {
'/devstar/': sidebarDocument(), // 直接返回 SidebarItem[]
'/devstar/': sidebarDevStar(), // 直接返回 SidebarItem[]
'/compiling/': sidebarCompiling(),
'/simulator/': sidebarSimulator(),
'/enterprise/': sidebarEnterprise()
},
socialLinks: [
@@ -34,7 +36,7 @@ export default defineConfig({
],
// footer: [
// copyright: 'Copyright © 2025-present devstar contributors',
// [Copyright © 2025-present Devstar Contributors](https://github.com/mengning/DevStar)
// [Copyright © 2025-present DevStar Contributors](https://github.com/mengning/DevStar)
// { copyright: 'Copyright © 2025-present devstar contributors', link: 'https://github.com/mengning/DevStar' }
// ] as any,
// footer: {
@@ -64,10 +66,10 @@ export default defineConfig({
}
})
function sidebarDocument(): DefaultTheme.SidebarItem[] {
function sidebarDevStar(): DefaultTheme.SidebarItem[] {
return [
{
text: 'Devstar是什么',
text: 'DevStar是什么',
link: '/devstar/index',
items: []
} as any,
@@ -229,6 +231,128 @@ function sidebarDocument(): DefaultTheme.SidebarItem[] {
]
}
function sidebarSimulator(): DefaultTheme.SidebarItem[] {
return [
{
text: 'Gitea Enterprise 是什么',
link: '/enterprise/index',
items: [
]
},
{
text: '特征',
collapsible: true, // 使整个组可折叠
collapsed: true, // 默认展开
items: [
{
text: '可继承分支保护',
link: 'https://docs.gitea.com/enterprise/features/inheritable-branch-protection'
},
{
text: '依赖关系扫描',
link: 'https://docs.gitea.com/enterprise/features/dependency-scan'
},
{
text: 'IP 允许列表',
link: 'https://docs.gitea.com/enterprise/features/ip-allowlist'
},
{
text: '企业主题',
link: 'https://docs.gitea.com/enterprise/features/enterprise-theme'
},
{
text: '强制2FA身份验证',
link: 'https://docs.gitea.com/enterprise/features/mandatory-2fa'
},
{
text: '审计日志',
link: 'https://docs.gitea.com/enterprise/features/audit-log'
},
{
text: 'SAML',
link: 'https://docs.gitea.com/enterprise/features/saml-auth'
},
{
text: '发布节奏和版本控制',
link: 'https://docs.gitea.com/enterprise/features/release-cadence'
}
]
} as any,
{
text: '安装',
link: 'https://docs.gitea.com/enterprise/installation',
items: []
},
{
text: '常见问题',
link: 'https://docs.gitea.com/enterprise/faq',
items: []
},
]
}
function sidebarCompiling(): DefaultTheme.SidebarItem[] {
return [
{
text: 'Gitea Enterprise 是什么',
link: '/enterprise/index',
items: [
]
},
{
text: '特征',
collapsible: true, // 使整个组可折叠
collapsed: true, // 默认展开
items: [
{
text: '可继承分支保护',
link: 'https://docs.gitea.com/enterprise/features/inheritable-branch-protection'
},
{
text: '依赖关系扫描',
link: 'https://docs.gitea.com/enterprise/features/dependency-scan'
},
{
text: 'IP 允许列表',
link: 'https://docs.gitea.com/enterprise/features/ip-allowlist'
},
{
text: '企业主题',
link: 'https://docs.gitea.com/enterprise/features/enterprise-theme'
},
{
text: '强制2FA身份验证',
link: 'https://docs.gitea.com/enterprise/features/mandatory-2fa'
},
{
text: '审计日志',
link: 'https://docs.gitea.com/enterprise/features/audit-log'
},
{
text: 'SAML',
link: 'https://docs.gitea.com/enterprise/features/saml-auth'
},
{
text: '发布节奏和版本控制',
link: 'https://docs.gitea.com/enterprise/features/release-cadence'
}
]
} as any,
{
text: '安装',
link: 'https://docs.gitea.com/enterprise/installation',
items: []
},
{
text: '常见问题',
link: 'https://docs.gitea.com/enterprise/faq',
items: []
},
]
}
function sidebarEnterprise(): DefaultTheme.SidebarItem[] {
return [
{
@@ -290,11 +414,3 @@ function sidebarEnterprise(): DefaultTheme.SidebarItem[] {
]
}
function sidebarRunner(): DefaultTheme.SidebarItem[] {
return [
{
link: '/runner/index',
},
]
}

View File

@@ -1,5 +1,5 @@
# 分布式编译系统CloudBuild
![alt text](/public/cloudbuild/promotional-graphic-cloudbuild.jpg)
![alt text](/public/compiling/promotional-graphic-cloudbuild.jpg)
## 为什么需要分布式编译技术
- 大型项目过长的编译耗时将会给开发、测试和调试都带来延迟,所以缩短大型项目的编译时间的分布式编译系统有重要意义
- 使用分布式编译系统编译项目可以利用计算机集群提高编译效率,缩短项目编译时间
@@ -7,7 +7,7 @@
## 总体架构
### 系统总体架构
![alt text](/public/cloudbuild/architecture.png)
![alt text](/public/compiling/architecture.png)
- Ninja客户端该机器上需要保存有完整的待编译项目源代码。
- Action Cache服务端缓存主要保存编译任务的执行结果。
- CAS Cache服务端缓存主要保存客户端上传的依赖文件编译结果文件。
@@ -17,19 +17,19 @@
- Executor各个编译节点
### 部署示意图
![alt text](/public/cloudbuild/system-diagram.png)
![alt text](/public/compiling/system-diagram.png)
CloudBuild主程序分为三个部分Client、Server、Executor。
- Client运行在客户端和用户对接用于生成待执行的远程编译任务 同时也作为本地编译节点执行本地任务。
- Server运行在主服务器主要用于连接各个编译节点以及 将客户端上传的编译任务调度到与其连接的各个编译节点上。
- Executor运行在编译节点负责接收并执行编译任务是编译任务真正执行的地方。
### 系统分层结构
![alt text](/public/cloudbuild/layered-system-architecture.png)
![alt text](/public/compiling/layered-system-architecture.png)
## 运行原理与流程
### 分布式编译原理
![alt text](/public/cloudbuild/compiler-principles.png)
![alt text](/public/compiling/compiler-principles.png)
### CloudBuild客户端
CloudBuild客户端基于Ninja改造有下面这些优势
@@ -54,23 +54,23 @@ CloudBuild客户端基于Ninja改造有下面这些优势
## AOSP和LLVM上的应用
### LLVM上的应用效果
![alt text](/public/cloudbuild/table1.png)
![alt text](/public/compiling/table1.png)
### AOSP上的应用效果
![alt text](/public/cloudbuild/table2.png)
![alt text](/public/compiling/table2.png)
### CloudBuild硬件资源利用率
4核CPU利用率:
![alt text](/public/cloudbuild/CPU-utilization-4.png)
![alt text](/public/compiling/CPU-utilization-4.png)
8核CPU利用率:
![alt text](/public/cloudbuild/CPU-utilization-8.png)
![alt text](/public/compiling/CPU-utilization-8.png)
16核CPU利用率:
![alt text](/public/cloudbuild/CPU-utilization-16.png)
![alt text](/public/compiling/CPU-utilization-16.png)
## CloudBuild使用方法
### CloudBuild安装
![alt text](/public/cloudbuild/cloudbuild-installation.png)
CloudBuild项目地址https://gitee.com/cloudbuild888/cloudbuild.git
![alt text](/public/compiling/cloudbuild-installation.png)
CloudBuild项目地址https://gitee.com/cloudbuild888/compiling.git
### CloudBuild分布式编译
![alt text](/public/cloudbuild/cloudbuild-distributed-compilation.png)
![alt text](/public/compiling/cloudbuild-distributed-compilation.png)
LLVM项目地址https://gitee.com/mirrors/LLVM.git

View File

@@ -3,7 +3,7 @@ outline: deep
weight: 1
---
# 关于Devstar
# 关于DevStar
DevStar一站式智能研发平台采用分层架构设计核心提供DevEnv容器化开发引擎、CI/CD流水线原生支持Actions和Runners、Git代码仓库和制品管理功能上层全面兼容主流IDE如VSCode、Cursor和开发工具链支持C/C++/Go/Rust等语言及ARM/RISC-V/AI芯片开发。平台集成了代码大模型如DeepSeek、Claude、MCP服务器集群包括Github-MCP和DevStar-MCP、分布式编译服务CloudBuild/BuildFarm以及虚拟化平台QEMU/Renode等增强功能底层基于Docker/Kubernetes云原生平台构建形成从编码、测试到部署的完整研发生态并通过项目模板生态和应用商店实现开箱即用的开发体验。
@@ -18,11 +18,11 @@ DevStar Studio是一个通用的一站式软件研发平台它最初的目标
- Git代码托管、镜像仓库等制品管理Releases/Packages、项目管理Projects/Issues、知识管理Wiki等
## 优势
- 验证与开发同步传统开发流程验证阶段滞后于开发而Devstar开发流程可以实现“边开发边验证”的并行模式
- 集成测试前置传统开发流程集成测试集中在后期而Devstar开发流程将集成测试拆解到开发各阶段
- 测试条件与实际高度一致传统开发流程测试环境与真实场景存在差异而Devstar开发流程可以构建高保真测试环境
- 失效迭代前置传统开发流程失效迭代出现在后期而Devstar开发流程将失效识别和处理提前到了开发早期
- 兼容不容层级的虚拟化传统开发流程只能保证单一流程的虚拟化而而Devstar开发流程可同时兼容硬件级虚拟化、系统级虚拟化、进程级虚拟化
- 验证与开发同步传统开发流程验证阶段滞后于开发而DevStar开发流程可以实现“边开发边验证”的并行模式
- 集成测试前置传统开发流程集成测试集中在后期而DevStar开发流程将集成测试拆解到开发各阶段
- 测试条件与实际高度一致传统开发流程测试环境与真实场景存在差异而DevStar开发流程可以构建高保真测试环境
- 失效迭代前置传统开发流程失效迭代出现在后期而DevStar开发流程将失效识别和处理提前到了开发早期
- 兼容不容层级的虚拟化传统开发流程只能保证单一流程的虚拟化而而DevStar开发流程可同时兼容硬件级虚拟化、系统级虚拟化、进程级虚拟化
## 在线演示

View File

@@ -5,7 +5,7 @@ layout: home
hero:
# name: "             通用的"
# text: "              为中小型公司提供IT服务"
text: "DevStar Studio: The Last Mile of Al for R&D"
text: "DevStar: The Last Mile of Al for R&D"
tagline: 为AI时代打造的新一代智能研发平台面向人类开发者和AI开发者的融合团队专注于产品质量和团队效能为研发部门赋能提效的一站式解决方案
image:
src: /slider1.png
@@ -16,7 +16,7 @@ hero:
# link: /devstar/index
# - theme: alt
# text: CloudBuild
# link: /cloudbuild/index
# link: /compiling/index
# - theme: alt
# text: Simulator
# link: /simulator/index
@@ -30,7 +30,7 @@ hero:
# details: 安装和使用体验良好的详细描述
---
<script setup>
import Index from './components/index.vue' // 你的组件
import Index from './index.vue' // 你的组件
</script>
<Index/>

View File

@@ -15,12 +15,12 @@
:class="{ 'image-hover': hoverItem === 'about' }"
>
<div class="ten_img_txt" :class="{ 'text-hover': hoverItem === 'about' }">
<h2>Devstar Studio</h2>
<h2>AI+ DevOps</h2>
</div>
</a>
<a
href="/cloudbuild"
href="/compiling"
class="ten_img"
@mouseenter="hoverItem = 'culture'"
@mouseleave="hoverItem = null"
@@ -32,7 +32,7 @@
:class="{ 'image-hover': hoverItem === 'culture' }"
>
<div class="ten_img_txt" :class="{ 'text-hover': hoverItem === 'culture' }">
<h2>Cloudbuild</h2>
<h2>编译加速</h2>
</div>
</a>
@@ -49,7 +49,7 @@
:class="{ 'image-hover': hoverItem === 'office' }"
>
<div class="ten_img_txt" :class="{ 'text-hover': hoverItem === 'office' }">
<h2>Simulator</h2>
<h2>虚拟仿真</h2>
</div>
</a>
</div>

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View File

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

View File

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 164 KiB

View File

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 233 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

10
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "devstar介绍文档",
"name": "docs",
"lockfileVersion": 3,
"requires": true,
"packages": {
@@ -9,7 +9,7 @@
"prismjs": "^1.30.0"
},
"devDependencies": {
"vitepress": "^1.6.3"
"vitepress": "^1.6.4"
}
},
"node_modules/@algolia/autocomplete-core": {
@@ -2291,9 +2291,9 @@
}
},
"node_modules/vitepress": {
"version": "1.6.3",
"resolved": "https://registry.npmmirror.com/vitepress/-/vitepress-1.6.3.tgz",
"integrity": "sha512-fCkfdOk8yRZT8GD9BFqusW3+GggWYZ/rYncOfmgcDtP3ualNHCAg+Robxp2/6xfH1WwPHtGpPwv7mbA3qomtBw==",
"version": "1.6.4",
"resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.6.4.tgz",
"integrity": "sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==",
"dev": true,
"license": "MIT",
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"devDependencies": {
"vitepress": "^1.6.3"
"vitepress": "^1.6.4"
},
"scripts": {
"docs:dev": "vitepress dev docs",