Skip to content

Commit 4a96995

Browse files
committed
chore: update README files from the old nuxt branch
1 parent db9f5f3 commit 4a96995

File tree

2 files changed

+139
-50
lines changed

2 files changed

+139
-50
lines changed

README.md

Lines changed: 65 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,90 @@
1-
# Nuxt 3 Minimal Starter
1+
AOSC Portal
2+
===
23

3-
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
[简体中文自述文件 >>](/README.zh-cn.md)
45

5-
## Setup
6+
The Portal website for AOSC since 2024 (designed in 2023, hence the name),
7+
built using Vue.js.
68

7-
Make sure to install the dependencies:
9+
At a glance
10+
---
811

9-
```bash
10-
# npm
11-
npm install
12+
The main design goal for this new website is to maximise information density
13+
on a single screen space, utilising both multi-column and conventional
14+
navigation systems. It also seeks to depart from a conventional "FOSS
15+
community" aesthetic by emphasizing vivid and product-oriented presentation
16+
for prospective and current users.
1217

13-
# pnpm
14-
pnpm install
18+
In terms of visual styling, this website intentionally seeks to re-create a
19+
2000s Web 1.0 aesthetic (whilst adopting modern technological frameworks and
20+
layout optimisations). Inspiration for the site layout comes from Microsoft's
21+
Windows home page from 2001 - 2004:
1522

16-
# yarn
17-
yarn install
23+
- [Reference 1, Windows XP home from late 2001](https://web.archive.org/web/20011211230629/http://microsoft.com/windowsxp/default.asp)
24+
- [Reference 2, Windows XP mid-cycle home from 2004](https://web.archive.org/web/20040204080626/http://www.microsoft.com/china/windows/default.mspx)
1825

19-
# bun
20-
bun install
21-
```
22-
23-
## Development Server
26+
Technically speaking, this a server-side rendered site built with Nuxt.
2427

25-
Start the development server on `http://localhost:3000`:
28+
This website is not yet optimised for mobile, legacy (Afterglow-targeted),
29+
and functionally-limited browsers. We are currently evaluating plans to
30+
implement a purpose-specific site to help with these scenarios.
2631

27-
```bash
28-
# npm
29-
npm run dev
32+
Deployment and testing
33+
---
3034

31-
# pnpm
32-
pnpm run dev
35+
This website is deployed to our Web server using a GitHub workflow. It should
36+
also be deployed in conjunction with [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils).
37+
Please follow also the instructions there.
3338

34-
# yarn
35-
yarn dev
39+
To test the website locally, you would need a Node.js + NPM toolchain and a
40+
deployment of the aforementioned [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils).
41+
To install Node.js + NPM on AOSC OS:
3642

37-
# bun
38-
bun run dev
43+
```
44+
oma install nodejs
3945
```
4046

41-
## Production
42-
43-
Build the application for production:
47+
Then, build and serve the website locally:
4448

45-
```bash
46-
# npm
49+
```
4750
npm run build
51+
node .output/server/index.mjs
52+
```
4853

49-
# pnpm
50-
pnpm run build
54+
Submitting news
55+
---
5156

52-
# yarn
53-
yarn build
57+
All news articles are written in Markdown and stored in `/content/news`, with
58+
extra assets (images, etc.) stored in `/assets/...`. All assets should be
59+
referenced from the site (`/assets/...`, not `https://...`).
5460

55-
# bun
56-
bun run build
57-
```
61+
News articles should contain a header:
5862

59-
Locally preview production build:
63+
```
64+
---
65+
categories:
66+
- journals
67+
title: "安记冰室・九月上"
68+
date: 2024-09-19T23:00:00+08:00
69+
important: false
70+
home: true
71+
---
72+
```
6073

61-
```bash
62-
# npm
63-
npm run preview
74+
- `categories` (enum):
75+
- `advisories`: User advisories (usually AOSC OS-related).
76+
- `news`: Community news about events, sponsorships, etc.
77+
- `journals`: Community journals (entitled *Coffee Break*).
78+
- `minutes`: Contributor meeting records.
79+
- `title` (string): News title.
80+
- `date` (string): Publication date to be presented as-is.
81+
- `important` (boolean): Highlight as important.
82+
- `home` (boolean): Whether to list in the news highlight section at the Portal home.
6483

65-
# pnpm
66-
pnpm run preview
84+
### Localising news articles
6785

68-
# yarn
69-
yarn preview
86+
To localise a news article, use a language code suffix such as `.zh-cn`, i.e.:
7087

71-
# bun
72-
bun run preview
7388
```
74-
75-
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
89+
2024-09-18-aosc-os-relnote.zh-cn.md
90+
```

README.zh-cn.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
安同开源社区门户网站 (AOSC Portal)
2+
===
3+
4+
[英文自述文件 >>](/README.md)
5+
6+
本仓库存放自 2024 年末启用的社区门户网站(设计稿 2023 年完成,故此得名)。本网站使用 Vue.js 构建。
7+
8+
简述
9+
---
10+
11+
本门户网站的主要设计目标是在单屏幕空间中显示尽可能多的有用信息,其主要实现手段是综合使用多列布局及纵横导航部件。此外,本门户网站还尝试摆脱 FOSS 社区网站的一些常见设计导向,采取图文混编、产品导向为主要呈现逻辑,方便新老用户了解社区项目、活动及公告等。
12+
13+
外观设计方面,本门户网站有意地模仿了来自 2000 年代的 Web 1.0 审美(但从布局及技术上依然采用了现代技术)。本网站的布局灵感来源于 2001 - 2004 年间的微软 Windows 主页:
14+
15+
- [参考甲:Windows XP 主页(2001 年末)](https://web.archive.org/web/20011211230629/http://microsoft.com/windowsxp/default.asp)
16+
- [参考乙:Windows XP 中期主页(2004 年)](https://web.archive.org/web/20040204080626/http://www.microsoft.com/china/windows/default.mspx)
17+
18+
技术架构方面,该网站是使用 Nuxt 构建,采用服务端渲染技术。
19+
20+
目前网站亦未对移动端、低性能(星霞 OS 目标)设备及功能受限的浏览器优化,我们计划在后续研判是否通过实现专用网站解决此问题。
21+
22+
部署及测试
23+
---
24+
25+
本网站使用 GitHub workflow 自动部署到我们的网站服务器,搭配 [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils) 一同使用(请注意阅读该仓库中的部署指南)。
26+
27+
本地测试时,您需要安装 Node.js + NPM 工具链,安同 OS 用户可使用如下命令安装;您也需要部署 [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils)
28+
29+
```
30+
oma install nodejs
31+
```
32+
33+
而后,使用如下命令启动网站构建及服务:
34+
35+
```
36+
npm run build
37+
node .output/server/index.mjs
38+
```
39+
40+
提交新闻
41+
---
42+
43+
本站新闻使用 Markdown 格式编写,存放于 `/content/news`;额外文件(如图片等)存放于 `/assets/...`。引用额外文件时,应使用站内引用(`/assets/...`)而非站外引用(`https://...`)。
44+
45+
新闻文件均带有文件头,如下例:
46+
47+
```
48+
---
49+
categories:
50+
- journals
51+
title: "安记冰室・九月上"
52+
date: 2024-09-19T23:00:00+08:00
53+
important: false
54+
home: true
55+
---
56+
```
57+
58+
- `categories`(枚举值):
59+
- `advisories`:用户公告(一般与安同 OS 有关)
60+
- `news`:社区活动新闻、赞助方鸣谢及公告等
61+
- `journals`:社区期刊(《安记冰室》)
62+
- `minutes`:贡献者会议纪要
63+
- `title`(字符串):新闻标题
64+
- `date`(字符串):用于网站呈现的发布日期
65+
- `important`(布尔值):是否标记为重要新闻
66+
- `home`(布尔值):是否在门户主页的要点栏目列出
67+
68+
### 新闻本地化
69+
70+
本地化新闻文章时,在文件名后加语言代号作为后缀即可(如 `.zh-cn`):
71+
72+
```
73+
2024-09-18-aosc-os-relnote.zh-cn.md
74+
```

0 commit comments

Comments
 (0)