Skip to content

Commit 064da66

Browse files
committed
feat(site): something about community
1 parent 7837701 commit 064da66

File tree

3 files changed

+35
-19
lines changed

3 files changed

+35
-19
lines changed

.knosys/sites/default/astro.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default defineConfig({
2323
applyBaseStyles: false,
2424
}),
2525
starlight({
26-
title: 'OpenBuild Dev Docs',
26+
title: 'OpenBuild Development',
2727
favicon: '/favicon.png',
2828
social: {
2929
github: 'https://github.com/openbuildxyz/openbuild-frontend',
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
11
---
22
import StarlightLayout from '@astrojs/starlight/components/StarlightPage.astro';
3+
4+
const title = '社区';
5+
const sidebar = [
6+
{
7+
label: '关于',
8+
items: [
9+
{ label: title, link: '/community/' },
10+
],
11+
}
12+
];
13+
const headings = [
14+
{ depth: 2, slug: '行为规范', text: '行为规范' },
15+
{ depth: 2, slug: '获取新闻', text: '获取新闻' },
16+
{ depth: 2, slug: '讨论交流', text: '讨论交流' },
17+
];
318
---
419

5-
<StarlightLayout
6-
frontmatter={{ title: "社区" }}
7-
sidebar={[
8-
{
9-
label: '关于',
10-
items: [
11-
{ label: '社区', link: '/community/' },
12-
],
13-
}
14-
]}
15-
headings={[
16-
{ depth: 2, slug: '讨论群组', text: '讨论群组' },
17-
]}
18-
>
19-
<h2>讨论群组</h2>
20-
<p>为方便大家能够及时交流,建了个专门的开源共建兴趣组微信群,可加微信 <code>fxxkol</code> 申请进群。</p>
20+
<StarlightLayout frontmatter={{ title }} sidebar={sidebar} headings={headings}>
21+
<p>OpenBuild 官网是一个社区驱动的 <a href="https://openbuildxyz.github.io/eco/zh/" target="_blank" rel="external">OpenBuild 生态</a>项目,在 2023 年由 OpenBuild 核心团队创建并研发了初始版本,<a href="https://openbuildxyz.github.io/eco/zh/posts/the-openbuild-official-website-frontend-codebase-is-open-now/" target="_blank" rel="external">于 2024 年 12 月开放源码</a>后引入社区力量协同共建。</p>
22+
<p>现如今,该项目由 OpenBuild 核心团队成员与来自世界各地的志愿者共同推进,并由<a href="https://x.com/fxxkol" target="_blank" rel="external">欧雷</a>担当项目负责人。</p>
23+
<h2 id={headings[0].slug}>{headings[0].text}</h2>
24+
<p>作为由 OpenBuild 核心团队发起的项目,沿用 <a href="https://github.com/openbuildxyz/.github/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank" rel="external">OpenBuild 官方统一的行为规范</a>;强烈建议在参与社区活动前仔细阅读,我们希望所有社区成员都能遵守其中的准则。</p>
25+
<h2 id={headings[1].slug}>{headings[1].text}</h2>
26+
<p>在下列地点能取得有关 OpenBuild 官网的最新动态:</p>
27+
<ul>
28+
<li>关注微信公众号「<a href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU4Mjk1MTI2NA==" target="_blank" rel="external">OpenBuild</a>」;</li>
29+
<li>关注<a href="https://x.com/OpenBuildxyz" target="_blank" rel="external">官方推特账号</a>。</li>
30+
</ul>
31+
<h2 id={headings[2].slug}>{headings[2].text}</h2>
32+
<p>可通过以下渠道与他人讨论 OpenBuild 官网相关话题及获得帮助等:</p>
33+
<ul>
34+
<li>微信群——专门的开源共建兴趣组微信群,可加微信 <code>fxxkol</code> 申请进群;</li>
35+
<li><a href="https://github.com/openbuildxyz/openbuild-frontend" target="_blank" rel="external">GitHub</a>——借由 issue 报告缺陷或提出想法,也十分欢迎 pull request。</li>
36+
</ul>
2137
</StarlightLayout>

.knosys/sites/default/src/shared/constants/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import type { LocaleValue, LocaleConfig } from '../types';
55

6-
const SITE_TITLE = 'OpenBuild Dev Docs';
6+
const SITE_TITLE = 'OpenBuild Development';
77
const SITE_DESCRIPTION = 'All about developing the OpenBuild official website';
88

99
const I18N_CONFIG: LocaleValue<LocaleConfig> = {
@@ -19,7 +19,7 @@ const I18N_CONFIG: LocaleValue<LocaleConfig> = {
1919
},
2020
zh: {
2121
site: {
22-
title: 'OpenBuild 开发文档',
22+
title: 'OpenBuild 开发',
2323
description: '关于开发 OpenBuild 官网的一切',
2424
},
2525
navs: {

0 commit comments

Comments
 (0)