Skip to content

Commit 3e038b3

Browse files
committed
feat: set zh as default languange
Signed-off-by: seven <[email protected]>
1 parent fbfd2c0 commit 3e038b3

15 files changed

+1482
-680
lines changed

.github/workflows/page-site.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
4242
- name: Publish to Cloudflare Pages
4343
uses: cloudflare/pages-action@v1
44-
if: steps.tag_release.outputs.successful
44+
if: steps.tag_release.outputs.successful == 'true'
4545
with:
4646
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4747
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48-
projectName: hostsless-site
48+
projectName: serverlessinsight-site
4949
directory: dist
5050
# Optional: Enable this if you want to have GitHub Deployments triggered
5151
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# hostsless-site
1+
# serverlessinsight-site
22
[![generate page site](https://github.com/geek-fun/hostsless-site/actions/workflows/page-site.yml/badge.svg)](https://github.com/geek-fun/hostsless-site/actions/workflows/page-site.yml)
33

4-
site of hostsless.com
4+
site of serverlessinsight
5+
6+
## Quick Start
7+
### prerequisites
8+
- Node.js 16.x

docs/.vitepress/config.mts

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,44 @@ import {defineConfig} from 'vitepress'
22

33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
5-
title: "hostsless",
6-
description: "A VitePress Site",
5+
title: "ServerlessInsight",
6+
description: "ServerlessInsight Site",
77
outDir: '../dist',
88
cacheDir: '../cache',
99
themeConfig: {
1010
// https://vitepress.dev/reference/default-theme-config
1111
nav: [
12-
{ text: 'Home', link: '/' },
13-
{ text: 'Products', link: '/products' },
14-
{ text: 'Docs', link: '/docs' },
12+
{text: '主页', link: '/'},
13+
{text: '产品', link: '/products'},
14+
{text: '文档', link: '/docs'},
1515
],
1616

1717
sidebar: [
1818
{
19-
text: 'sidebar',
19+
text: 'ServerlessInsight',
2020
items: [
21-
{ text: 'Docs', link: '/docs' },
22-
{ text: 'Products', link: '/products' }
21+
{text: 'ServerlessInsight介绍', link: 'introduction'},
22+
{text: '快速入门', link: 'getting-started'},
23+
{text: '用户手册', link: 'reference'},
24+
{text: '支持服务', link: 'support'},
25+
{text: '常见问题', link: 'faq'},
26+
{text: '实战案例', link: 'case-study'},
2327
]
2428
}
2529
],
2630

2731
socialLinks: [
28-
{ icon: 'github', link: 'https://github.com/hostsless' }
32+
{icon: 'github', link: 'https://github.com/geek-fun/serverlessinsight'}
2933
]
3034
},
3135
locales: {
3236
root: {
33-
label: 'English',
34-
lang: 'en',
35-
},
36-
zh: {
3737
label: '中文',
3838
lang: 'zh-CN',
39+
},
40+
en: {
41+
label: 'English',
42+
lang: 'en',
3943
}
4044
}
4145
})

docs/docs.md

Lines changed: 1 addition & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1 @@
1-
# Markdown Extension Examples
2-
3-
This page demonstrates some of the built-in markdown extensions provided by VitePress.
4-
5-
## Syntax Highlighting
6-
7-
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:
8-
9-
**Input**
10-
11-
````
12-
```js{4}
13-
export default {
14-
data () {
15-
return {
16-
msg: 'Highlighted!'
17-
}
18-
}
19-
}
20-
```
21-
````
22-
23-
**Output**
24-
25-
```js{4}
26-
export default {
27-
data () {
28-
return {
29-
msg: 'Highlighted!'
30-
}
31-
}
32-
}
33-
```
34-
35-
## Custom Containers
36-
37-
**Input**
38-
39-
```md
40-
::: info
41-
This is an info box.
42-
:::
43-
44-
::: tip
45-
This is a tip.
46-
:::
47-
48-
::: warning
49-
This is a warning.
50-
:::
51-
52-
::: danger
53-
This is a dangerous warning.
54-
:::
55-
56-
::: details
57-
This is a details block.
58-
:::
59-
```
60-
61-
**Output**
62-
63-
::: info
64-
This is an info box.
65-
:::
66-
67-
::: tip
68-
This is a tip.
69-
:::
70-
71-
::: warning
72-
This is a warning.
73-
:::
74-
75-
::: danger
76-
This is a dangerous warning.
77-
:::
78-
79-
::: details
80-
This is a details block.
81-
:::
82-
83-
## More
84-
85-
Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).
1+
# 文档

docs/docs/specification.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# ServerlessInsight Specification
2+
3+
This document outlines the specification of the ServerlessInsight, details the yaml definition for Iac(Infrastructure as
4+
Code), and the runtime API for the ServerlessInsight.
5+
6+
## Sample of a ServerlessInsight Iac
7+
8+
> stack.yml
9+
10+
```yaml
11+
version: 0.1
12+
provider: aliyun
13+
14+
vars:
15+
region: cn-hangzhou
16+
account_id: 1234567890
17+
18+
stages:
19+
dev:
20+
region: ${vars:region}
21+
account_id: ${vars:account_id}
22+
23+
service: insight-poc
24+
25+
tags:
26+
owner: geek-fun
27+
28+
functions:
29+
insight_poc_fn:
30+
fc_name: insight-poc-fn
31+
runtime: nodejs14
32+
handler: index.handler
33+
code: artifact.zip
34+
memory: 128
35+
timeout: 10
36+
environment:
37+
NODE_ENV: production
38+
39+
gateway:
40+
insight_poc_api:
41+
type: api
42+
name: insight-poc-api
43+
description: insight poc api
44+
protocol: HTTP
45+
method: GET
46+
events:
47+
sqs_event:
48+
type: sqs
49+
source: insight-poc-sqs
50+
function: insight_poc_fn
51+
batch_size: 10
52+
enabled: true
53+
target: insight-poc-fn
54+
apigateway_event:
55+
type: apigatewy
56+
source: insight-poc-api
57+
function: insight_poc_fn
58+
method: GET
59+
target: insight-poc-fn
60+
61+
```
62+
63+
## Concepts
64+
65+
### Version
66+
67+
The version of the ServerlessInsight Iac, the version is used to define the compatibility of the Iac with the
68+
ServerlessInsight runtime.
69+
70+
### Vars
71+
the vars section is used to define the variables that can be used in the Iac, the vars can be used in the service, tags,
72+
functions, gateway, and events sections by ${vars:var_name}.
73+
### Functions
74+
75+
The compute unit of serverless functions that code is deployed and executed in cloud providers.
76+
77+
Each function is an independent unit of execution and deployment, like a microservice. A function is merely code,
78+
deployed in the cloud, that is most often written to perform a single job.
79+
80+
### Events
81+
82+
Events are triggers that cause a function to execute. Events can be anything from an HTTP request to a file upload to a
83+
scheduled task.

docs/en/docs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# docs
2+
## Quick Start
3+
4+
## [Specifications](/docs/specification.md)

docs/en/index.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
# https://vitepress.dev/reference/default-theme-home-page
3+
layout: home
4+
5+
hero:
6+
name: "ServerlessInsight"
7+
text: "Full life cycle cross providers serverless application management for your fast-growing business"
8+
tagline: Evolve the future with Serverless
9+
10+
features:
11+
- title: huawei cloud
12+
details: TBC
13+
- title: aliyun cloud
14+
details: TBC
15+
- title: tencent cloud
16+
details: Lorem ipsum dolor sit amet
17+
- title: openFunction
18+
details: tbc
19+
- title: aws
20+
details: tbc
21+
- title: .etc
22+
details: tbc
23+
24+
resources:
25+
- title: storage
26+
details: Lorem ipsum dolor sit amet
27+
- title: compute
28+
details: Lorem ipsum dolor sit amet
29+
- title: gateway
30+
details: Lorem ipsum dolor sit amet
31+
- title: identity
32+
details: Lorem ipsum dolor sit amet
33+
- title: trust
34+
details: Lorem ipsum dolor sit amet
35+
- title: docsless
36+
details: Lorem ipsum dolor sit amet
37+
---
File renamed without changes.

docs/index.md

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,16 @@
33
layout: home
44

55
hero:
6-
name: "hostsless"
7-
text: "Full life cycle cross providers serverless application management for your fast-growing business"
8-
tagline: Evolve the future with serverless
6+
name: "ServerlessInsight"
7+
text: ' 全栈Serverless应用平台'
8+
tagline: "构建全生命周期的跨供应商Serverless用程序管理,助力快速发展的业务。"
99

1010
features:
11-
- title: huawei cloud
11+
- title: 阿里云
1212
details: TBC
13-
- title: aliyun cloud
13+
- title: 华为云
1414
details: TBC
15-
- title: tencent cloud
15+
- title: 腾讯云
1616
details: Lorem ipsum dolor sit amet
17-
- title: openFunction
18-
details: tbc
19-
- title: aws
20-
details: tbc
21-
- title: .etc
22-
details: tbc
2317

24-
resources:
25-
- title: storage
26-
details: Lorem ipsum dolor sit amet
27-
- title: compute
28-
details: Lorem ipsum dolor sit amet
29-
- title: gateway
30-
details: Lorem ipsum dolor sit amet
31-
- title: identity
32-
details: Lorem ipsum dolor sit amet
33-
- title: trust
34-
details: Lorem ipsum dolor sit amet
35-
- title: docsless
36-
details: Lorem ipsum dolor sit amet
3718
---

docs/introduction.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# ServerlessInsight 介绍
2+
3+
## 什么是ServerlessInsight
4+
5+
ServerlessInsight是一个全栈Serverless应用平台,它可以帮助您构建全生命周期的跨供应商Serverless用程序管理,助力快速发展的业务。
6+
![ServerlessInsight 组件](/si.drawio.png)
7+
8+
## 为什么选择ServerlessInsight
9+
10+
ServerlessInsight聚焦于赋能全生命周期的全Serverless应用管理,通过基础设施即代码(infrastructure As Code)
11+
提供了一站式的Serverless应用开发、部署、运维、监控、调优等功能,帮助您快速构建Serverless应用,提升开发效率,降低运维成本。我们从一下几个方面来看看ServerlessInsight的优势:
12+
13+
### 基础设施即代码
14+
15+
通过ServerlessInsight,开发者只需要在`serverlessinsight.yml`
16+
中定义Serverless应用的资源,ServerlessInsight会自动根据定义的资源生成对应的Serverless应用代码,无需开发者手动申请或创建资源,提升开发效率。
17+
18+
### 全生命周期管理
19+
20+
ServerlessInsight提供了全生命周期的Serverless应用管理,包括开发、部署、监控、调优等功能,帮助您快速构建Serverless应用,提升开发效率,降低运维成本。
21+
22+
**开发:** ServerlessInsight提供了本地开发功能,支持本地启动所有定义的Serverless应用,开发人员无需配置任何本地资源&环境,一行命令即即可在本地启动所有定义在
23+
`serverlessinsight.yml`中的资源,开发环境与线上环境无缝连接, 方便开发人员在本地调试Serverless应用。
24+
25+
**部署:** ServerlessInsight提供了一键部署功能,支持一键部署所有定义的Serverless应用,无需手动配置任何资源,一行命令即可将所有定义在
26+
`serverlessinsight.yml`中的资源部署到指定的Serverless供应商中。
27+
28+
**监控(开发中):** ServerlessInsight提供了丰富的监控功能,支持监控Serverless应用的性能、稳定性、可用性等指标,帮助您及时发现问题,提升用户体验。
29+
30+
### 跨供应商
31+
32+
ServerlessInsight支持多个Serverless供应商,包括阿里云、华为云、腾讯云等,帮助您更好的选择Serverless供应商,降低供应商锁定风险。
33+
34+
### 开放生态
35+
36+
ServerlessInsight提供了丰富且通用的cli,无任何对特定CI/CD工具的依赖,方便您快速集成到现有的开发工具链中,提升开发效率。
37+
38+
## ServerlessInsight架构于原理
39+
40+
## ServerlessInsight适用场景
41+
42+

docs/public/si.drawio.png

182 KB
Loading

0 commit comments

Comments
 (0)