|
1 |
| -# Nuxt 3 Minimal Starter |
| 1 | +AOSC Portal |
| 2 | +=== |
2 | 3 |
|
3 |
| -Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. |
| 4 | +[简体中文自述文件 >>](/README.zh-cn.md) |
4 | 5 |
|
5 |
| -## Setup |
| 6 | +The Portal website for AOSC since 2024 (designed in 2023, hence the name), |
| 7 | +built using Vue.js. |
6 | 8 |
|
7 |
| -Make sure to install the dependencies: |
| 9 | +At a glance |
| 10 | +--- |
8 | 11 |
|
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. |
12 | 17 |
|
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: |
15 | 22 |
|
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) |
18 | 25 |
|
19 |
| -# bun |
20 |
| -bun install |
21 |
| -``` |
22 |
| - |
23 |
| -## Development Server |
| 26 | +Technically speaking, this a server-side rendered site built with Nuxt. |
24 | 27 |
|
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. |
26 | 31 |
|
27 |
| -```bash |
28 |
| -# npm |
29 |
| -npm run dev |
| 32 | +Deployment and testing |
| 33 | +--- |
30 | 34 |
|
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. |
33 | 38 |
|
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: |
36 | 42 |
|
37 |
| -# bun |
38 |
| -bun run dev |
| 43 | +``` |
| 44 | +oma install nodejs |
39 | 45 | ```
|
40 | 46 |
|
41 |
| -## Production |
42 |
| - |
43 |
| -Build the application for production: |
| 47 | +Then, build and serve the website locally: |
44 | 48 |
|
45 |
| -```bash |
46 |
| -# npm |
| 49 | +``` |
47 | 50 | npm run build
|
| 51 | +node .output/server/index.mjs |
| 52 | +``` |
48 | 53 |
|
49 |
| -# pnpm |
50 |
| -pnpm run build |
| 54 | +Submitting news |
| 55 | +--- |
51 | 56 |
|
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://...`). |
54 | 60 |
|
55 |
| -# bun |
56 |
| -bun run build |
57 |
| -``` |
| 61 | +News articles should contain a header: |
58 | 62 |
|
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 | +``` |
60 | 73 |
|
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. |
64 | 83 |
|
65 |
| -# pnpm |
66 |
| -pnpm run preview |
| 84 | +### Localising news articles |
67 | 85 |
|
68 |
| -# yarn |
69 |
| -yarn preview |
| 86 | +To localise a news article, use a language code suffix such as `.zh-cn`, i.e.: |
70 | 87 |
|
71 |
| -# bun |
72 |
| -bun run preview |
73 | 88 | ```
|
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 | +``` |
0 commit comments