Skip to content

Commit da18ff4

Browse files
authored
chore: DevBox stylization (#11)
1 parent 144eb3d commit da18ff4

Some content is hidden

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

102 files changed

+488
-488
lines changed

components/feature/example.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ const data = [
1111
url: '/docs/examples/build-your-own-discord-bot',
1212
},
1313
{
14-
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos Devbox using Node.js',
14+
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos DevBox using Node.js',
1515
url: '/docs/guides/databases/postgresql/nodejs',
1616
},
1717
{
18-
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos Devbox using Python',
18+
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos DevBox using Python',
1919
url: '/docs/guides/databases/postgresql/python',
2020
},
2121
{
22-
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos Devbox using Go',
22+
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos DevBox using Go',
2323
url: '/docs/guides/databases/postgresql/go',
2424
},
2525
{
26-
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos Devbox using Java',
26+
title: 'Comprehensive Guide to connecting to PostgreSQL databases in Sealos DevBox using Java',
2727
url: '/docs/guides/databases/postgresql/java',
2828
},
2929
];

components/feature/sticky-box.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const content = [
7070
title: 'Effortless Continuous Delivery',
7171
subtitle: 'Deploy with confidence',
7272
description:
73-
'Deploy applications with confidence - no container expertise needed. Let Devbox handle versioning, container builds and orchestration while you focus on coding.',
73+
'Deploy applications with confidence - no container expertise needed. Let DevBox handle versioning, container builds and orchestration while you focus on coding.',
7474
content: (
7575
<div className="group relative aspect-[700/450] max-h-[400px] w-full rounded-lg bg-[#FAFCFF] shadow-sticky-box">
7676
<Image

content/docs/advanced/architecture.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
title: Architecture
33
---
44

5-
Sealos Devbox is an advanced development environment solution that leverages cloud-native Container and Kubernetes technologies to offer a unified and flexible development Runtime. Its key feature is simulating a traditional virtual machine experience while maintaining containerization benefits.
5+
Sealos DevBox is an advanced development environment solution that leverages cloud-native Container and Kubernetes technologies to offer a unified and flexible development Runtime. Its key feature is simulating a traditional virtual machine experience while maintaining containerization benefits.
66

77
## Architecture
88

9-
Sealos Devbox is built on a layered architecture, comprising these key components:
9+
Sealos DevBox is built on a layered architecture, comprising these key components:
1010

1111
![](./images/architecture.png)
1212

1313

1414
## Control Flow
1515

16-
Devbox implements a decoupled front-end and back-end design:
16+
DevBox implements a decoupled front-end and back-end design:
1717

1818
1. Users trigger actions via the web interface or plugins
19-
2. Devbox Controller receives and processes these requests
19+
2. DevBox Controller receives and processes these requests
2020
3. Controller translates the processed instructions into Kubernetes API calls
2121
4. Kubernetes executes the corresponding Container operations
2222

@@ -26,7 +26,7 @@ Devbox implements a decoupled front-end and back-end design:
2626

2727
## State Persistence Mechanism
2828

29-
Devbox employs an intelligent state preservation system to maintain user environment consistency:
29+
DevBox employs an intelligent state preservation system to maintain user environment consistency:
3030

3131
### Automatic Saving
3232

content/docs/advanced/architecture.zh-cn.mdx

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
title: Devbox 架构
33
---
44

5-
Sealos Devbox 是一种先进的开发环境解决方案,它利用云原生容器和 Kubernetes 技术提供统一且灵活的开发运行时。其核心特点是在保持容器化优势的同时,模拟传统虚拟机体验。
5+
Sealos DevBox 是一种先进的开发环境解决方案,它利用云原生容器和 Kubernetes 技术提供统一且灵活的开发运行时。其核心特点是在保持容器化优势的同时,模拟传统虚拟机体验。
66

77
## 架构
88

9-
Sealos Devbox 基于分层架构设计,包含以下关键组件:
9+
Sealos DevBox 基于分层架构设计,包含以下关键组件:
1010

1111
![](./images/architecture.png)
1212

1313

1414
## 控制流程
1515

16-
Devbox 实现了前后端解耦设计:
16+
DevBox 实现了前后端解耦设计:
1717

1818
1. 用户通过网页界面或插件触发操作
1919
2. Devbox 控制器接收并处理这些请求
@@ -25,7 +25,8 @@ Devbox 实现了前后端解耦设计:
2525

2626
## 状态持久化机制
2727

28-
Devbox 采用智能状态保存系统,确保用户环境的一致性:
28+
DevBox 采用智能状态保存系统,确保用户环境的一致性:
29+
2930

3031
### 自动保存
3132

content/docs/examples/build-your-own-discord-bot.zh-cn.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
title: Build Your Own Discord Bot
3-
description: Build an AI-powered Discord bot using Devbox. You'll create a bot that can respond to messages using AI capabilities powered by FastGPT.
3+
description: Build an AI-powered Discord bot using DevBox. You'll create a bot that can respond to messages using AI capabilities powered by FastGPT.
44
---
55

66
## Overview
77

8-
This example demonstrates how to build an AI-powered Discord bot using Devbox. You'll create a bot that can respond to messages using AI capabilities powered by [FastGPT](https://tryfastgpt.ai), showcasing how to integrate multiple services and APIs in a Devbox environment.
8+
This example demonstrates how to build an AI-powered Discord bot using DevBox. You'll create a bot that can respond to messages using AI capabilities powered by [FastGPT](https://tryfastgpt.ai), showcasing how to integrate multiple services and APIs in a DevBox environment.
99

1010
**Technologies Used:**
1111
- Node.js
1212
- Discord.js
1313
- FastGPT API
14-
- Devbox development environment
14+
- DevBox development environment
1515

1616
**Expected Outcome:**
1717
- A functioning Discord bot that:
@@ -65,12 +65,12 @@ This example demonstrates how to build an AI-powered Discord bot using Devbox. Y
6565

6666
</div>
6767

68-
### 2. Creating Devbox Project
68+
### 2. Creating DevBox Project
6969

7070
<div className='steps [&_h4]:step'>
7171

7272
#### Initialize Node.js Project
73-
1. [Create a new Devbox project](/docs/guides/fundamentals/create-a-project)
73+
1. [Create a new DevBox project](/docs/guides/fundamentals/create-a-project)
7474
2. Select Node.js as the runtime
7575
3. Configure project resources:
7676
- Set appropriate CPU cores

content/docs/guides/app-launchpad/index.zh-cn.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: 通过 Sealos 应用管理功能快速部署和管理容器化应
77

88
【应用管理】是 Sealos 内置的单镜像部署工具,它通过直观的图形化界面和自动化流程,将复杂的 Kubernetes 资源操作简化为易于理解的“应用”概念。无论您是部署自己的应用还是第三方应用,都可以在 5 分钟内轻松完成部署和上线。
99

10-
Sealos Devbox 开发环境最终[部署上线](/docs/guides/fundamentals/deploy)都是通过【应用管理】来完成的。
10+
Sealos DevBox 开发环境最终[部署上线](/docs/guides/fundamentals/deploy)都是通过【应用管理】来完成的。
1111

1212
目前【应用管理】具备以下功能:
1313

content/docs/guides/databases/kafka/go.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Go
3-
description: Learn how to connect to Kafka in Sealos Devbox using Go
3+
description: Learn how to connect to Kafka in Sealos DevBox using Go
44
---
55

6-
This guide will walk you through the process of connecting to Kafka using Go within your Sealos Devbox project.
6+
This guide will walk you through the process of connecting to Kafka using Go within your Sealos DevBox project.
77

88
## Prerequisites
99

10-
- [A Sealos Devbox project](/docs/guides/fundamentals/create-a-project) with Go environment
10+
- [A Sealos DevBox project](/docs/guides/fundamentals/create-a-project) with Go environment
1111
- [A Kafka cluster created using the Database app in Sealos](./)
1212

1313
## Install Required Packages
@@ -24,7 +24,7 @@ This command installs:
2424

2525
## System Dependencies
2626

27-
The `confluent-kafka-go` package requires `librdkafka` as a system dependency. In Sealos Devbox, you might need to install it manually. Run the following commands in your Cursor terminal:
27+
The `confluent-kafka-go` package requires `librdkafka` as a system dependency. In Sealos DevBox, you might need to install it manually. Run the following commands in your Cursor terminal:
2828

2929
```bash
3030
sudo apt-get update
@@ -190,7 +190,7 @@ If you encounter connection issues:
190190

191191
1. Verify your Kafka broker address in the `broker` variable.
192192
2. Ensure your Kafka cluster is running and accessible.
193-
3. Check for any network restrictions in your Devbox environment.
193+
3. Check for any network restrictions in your DevBox environment.
194194
4. Confirm that the required packages and system dependencies are correctly installed.
195195
5. If you encounter `cgo` related errors, make sure you have the necessary build tools installed (`sudo apt-get install build-essential`).
196196

content/docs/guides/databases/kafka/go.zh-cn.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Go
3-
description: 在 Sealos Devbox 中使用 Go 连接 Kafka 的完整指南
3+
description: 在 Sealos DevBox 中使用 Go 连接 Kafka 的完整指南
44
---
55

6-
本文将详细介绍如何在 Sealos Devbox 中使用 Go 语言连接和操作 Kafka。
6+
本文将详细介绍如何在 Sealos DevBox 中使用 Go 语言连接和操作 Kafka。
77

88
## 准备工作
99

10-
- [已创建并配置好 Go 环境的 Sealos Devbox 项目](/docs/guides/fundamentals/create-a-project)
10+
- [已创建并配置好 Go 环境的 Sealos DevBox 项目](/docs/guides/fundamentals/create-a-project)
1111
- [已通过 Sealos 数据库应用创建 Kafka 集群](./)
1212

1313
## 安装依赖
@@ -26,7 +26,7 @@ go get github.com/confluentinc/confluent-kafka-go/v2/kafka
2626

2727
## 系统依赖
2828

29-
由于 `confluent-kafka-go` 包依赖于 `librdkafka`,您需要在 Devbox 开发环境中安装相关系统依赖。请在 Cursor 终端中执行以下命令:
29+
由于 `confluent-kafka-go` 包依赖于 `librdkafka`,您需要在 DevBox 开发环境中安装相关系统依赖。请在 Cursor 终端中执行以下命令:
3030

3131
```bash
3232
sudo apt-get update

content/docs/guides/databases/kafka/index.mdx

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Once deployed, Sealos will provide you with the necessary connection details.
3838
Here are examples of how to connect to your Kafka cluster using different programming languages and frameworks within your DevBox environment:
3939

4040
<Cards>
41-
<Card title="Connect to Kafka with Go in Sealos Devbox" href="./kafka/go" />
42-
<Card title="Connect to Kafka with Java in Sealos Devbox" href="./kafka/java" />
43-
<Card title="Connect to Kafka with Node.js in Sealos Devbox" href="./kafka/nodejs" />
44-
<Card title="Connect to Kafka with PHP in Sealos Devbox" href="./kafka/php" />
45-
<Card title="Connect to Kafka with Python in Sealos Devbox" href="./kafka/python" />
46-
<Card title="Connect to Kafka with Rust in Sealos Devbox" href="./kafka/rust" />
41+
<Card title="Connect to Kafka with Go in Sealos DevBox" href="./kafka/go" />
42+
<Card title="Connect to Kafka with Java in Sealos DevBox" href="./kafka/java" />
43+
<Card title="Connect to Kafka with Node.js in Sealos DevBox" href="./kafka/nodejs" />
44+
<Card title="Connect to Kafka with PHP in Sealos DevBox" href="./kafka/php" />
45+
<Card title="Connect to Kafka with Python in Sealos DevBox" href="./kafka/python" />
46+
<Card title="Connect to Kafka with Rust in Sealos DevBox" href="./kafka/rust" />
4747
</Cards>

content/docs/guides/databases/kafka/index.zh-cn.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Kafka
3-
description: 在 Sealos Devbox 中部署和连接 Kafka 集群
3+
description: 在 Sealos DevBox 中部署和连接 Kafka 集群
44
---
55

6-
Apache Kafka 是一个分布式事件流平台,可让您构建实时数据管道和流应用程序。在 Sealos Devbox 中,您可以轻松地为您的开发项目设置和连接 Kafka 数据库。
6+
Apache Kafka 是一个分布式事件流平台,可让您构建实时数据管道和流应用程序。在 Sealos DevBox 中,您可以轻松地为您的开发项目设置和连接 Kafka 数据库。
77

88
## 在 Sealos 中部署 Kafka
99

@@ -35,7 +35,7 @@ Sealos 提供了简单直观的操作界面,只需几步即可完成 Kafka 集
3535

3636
![Kafka 集群连接信息](./images/sealos-kafka-connection-info.zh-cn.png)
3737

38-
## 在 Sealos Devbox 中连接 Kafka
38+
## 在 Sealos DevBox 中连接 Kafka
3939

4040
我们为不同的编程语言提供了连接 Kafka 集群的示例代码,请选择您需要的开发语言:
4141

content/docs/guides/databases/kafka/java.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Java
3-
description: Learn how to connect to Kafka in Sealos Devbox using Java
3+
description: Learn how to connect to Kafka in Sealos DevBox using Java
44
---
55

6-
This guide will walk you through the process of connecting to Kafka using Java within your Sealos Devbox project.
6+
This guide will walk you through the process of connecting to Kafka using Java within your Sealos DevBox project.
77

88
## Prerequisites
99

10-
- [A Sealos Devbox project](/docs/guides/fundamentals/create-a-project) with Java environment
10+
- [A Sealos DevBox project](/docs/guides/fundamentals/create-a-project) with Java environment
1111
- [A Kafka cluster created using the Database app in Sealos](./)
1212

1313
## Project Setup
@@ -16,7 +16,7 @@ This guide will walk you through the process of connecting to Kafka using Java w
1616

1717
#### Create a new Maven project
1818

19-
In your Sealos Devbox terminal, initialize a new Maven project:
19+
In your Sealos DevBox terminal, initialize a new Maven project:
2020

2121
```bash
2222
mvn archetype:generate -DgroupId=com.example -DartifactId=kafka-java-example -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
@@ -134,7 +134,7 @@ public class KafkaProducerExample {
134134
Producer<String, String> producer = new KafkaProducer<>(props);
135135

136136
String topic = props.getProperty("topic");
137-
String message = "Hello from Sealos Devbox!";
137+
String message = "Hello from Sealos DevBox!";
138138

139139
ProducerRecord<String, String> record = new ProducerRecord<>(topic, message);
140140

@@ -248,8 +248,8 @@ Run the producer and consumer in separate terminal windows to see the message be
248248
If you encounter connection issues:
249249

250250
1. Verify your Kafka credentials in the `kafka.properties` file.
251-
2. Ensure your Kafka cluster is running and accessible from your Devbox environment.
252-
3. Check for any network restrictions in your Devbox environment.
251+
2. Ensure your Kafka cluster is running and accessible from your DevBox environment.
252+
3. Check for any network restrictions in your DevBox environment.
253253
4. Confirm that all required dependencies are correctly specified in your `pom.xml` file.
254254

255255
For more detailed information on using Kafka with Java, refer to the [Apache Kafka documentation](https://kafka.apache.org/documentation/).

content/docs/guides/databases/kafka/java.zh-cn.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Java
3-
description: 在 Sealos Devbox 中使用 Java 连接 Kafka 的完整指南
3+
description: 在 Sealos DevBox 中使用 Java 连接 Kafka 的完整指南
44
---
55

6-
本文介绍如何在 Sealos Devbox 环境中使用 Java 连接和操作 Kafka。
6+
本文介绍如何在 Sealos DevBox 环境中使用 Java 连接和操作 Kafka。
77

88
## 准备工作
99

10-
- [已创建并配置好 Java 环境的 Sealos Devbox 项目](/docs/guides/fundamentals/create-a-project)
10+
- [已创建并配置好 Java 环境的 Sealos DevBox 项目](/docs/guides/fundamentals/create-a-project)
1111
- [已通过 Sealos 数据库应用创建 Kafka 集群](./)
1212

1313
## 项目配置
@@ -134,7 +134,7 @@ public class KafkaProducerExample {
134134
Producer<String, String> producer = new KafkaProducer<>(props);
135135

136136
String topic = props.getProperty("topic");
137-
String message = "Hello from Sealos Devbox!";
137+
String message = "Hello from Sealos DevBox!";
138138

139139
ProducerRecord<String, String> record = new ProducerRecord<>(topic, message);
140140

content/docs/guides/databases/kafka/nodejs.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Node.js
3-
description: Learn how to connect to Kafka in Sealos Devbox using Node.js
3+
description: Learn how to connect to Kafka in Sealos DevBox using Node.js
44
---
55

6-
This guide will walk you through the process of connecting to Kafka using Node.js within your Sealos Devbox project.
6+
This guide will walk you through the process of connecting to Kafka using Node.js within your Sealos DevBox project.
77

88
## Prerequisites
99

10-
- [A Sealos Devbox project](/docs/guides/fundamentals/create-a-project) with Node.js environment
10+
- [A Sealos DevBox project](/docs/guides/fundamentals/create-a-project) with Node.js environment
1111
- [A Kafka cluster created using the Database app in Sealos](./)
1212

1313
## Install Required Packages
@@ -90,7 +90,7 @@ async function produceMessage() {
9090
const result = await producer.send({
9191
topic: process.env.KAFKA_TOPIC,
9292
messages: [
93-
{ value: 'Hello from Sealos Devbox!' },
93+
{ value: 'Hello from Sealos DevBox!' },
9494
],
9595
});
9696
console.log('Message sent successfully', result);
@@ -193,7 +193,7 @@ If you encounter connection issues:
193193

194194
1. Verify your Kafka broker address in the `.env` file.
195195
2. Ensure your Kafka cluster is running and accessible.
196-
3. Check for any network restrictions in your Devbox environment.
196+
3. Check for any network restrictions in your DevBox environment.
197197
4. Confirm that the required packages are correctly installed.
198198

199199
For more detailed information on using Kafka with Node.js, refer to the [KafkaJS documentation](https://kafka.js.org/).

content/docs/guides/databases/kafka/nodejs.zh-cn.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Node.js
3-
description: 在 Sealos Devbox 中使用 Node.js 连接 Kafka 的完整指南
3+
description: 在 Sealos DevBox 中使用 Node.js 连接 Kafka 的完整指南
44
---
55

6-
本文将指导您如何在 Sealos Devbox 中使用 Node.js 连接和操作 Kafka。
6+
本文将指导您如何在 Sealos DevBox 中使用 Node.js 连接和操作 Kafka。
77

88
## 准备工作
99

10-
- [已创建并配置好 Node.js 环境的 Sealos Devbox 项目](/docs/guides/fundamentals/create-a-project)
10+
- [已创建并配置好 Node.js 环境的 Sealos DevBox 项目](/docs/guides/fundamentals/create-a-project)
1111
- [已通过 Sealos 数据库应用创建 Kafka 集群](./)
1212

1313
## 安装依赖包
@@ -90,7 +90,7 @@ async function produceMessage() {
9090
const result = await producer.send({
9191
topic: process.env.KAFKA_TOPIC,
9292
messages: [
93-
{ value: 'Hello from Sealos Devbox!' },
93+
{ value: 'Hello from Sealos DevBox!' },
9494
],
9595
});
9696
console.log('Message sent successfully', result);

0 commit comments

Comments
 (0)