@@ -23,7 +23,7 @@ Windows home page from 2001 - 2004:
23
23
- [ Reference 1, Windows XP home from late 2001] ( https://web.archive.org/web/20011211230629/http://microsoft.com/windowsxp/default.asp )
24
24
- [ Reference 2, Windows XP mid-cycle home from 2004] ( https://web.archive.org/web/20040204080626/http://www.microsoft.com/china/windows/default.mspx )
25
25
26
- Technically speaking, this a server-side rendered site built with Nuxt.
26
+ Technically speaking, this a statically generated site built with Nuxt.
27
27
28
28
This website is not yet optimised for mobile, legacy (Afterglow-targeted),
29
29
and functionally-limited browsers. We are currently evaluating plans to
@@ -44,19 +44,19 @@ To install Node.js + NPM on AOSC OS:
44
44
oma install nodejs
45
45
```
46
46
47
- Then, build and serve the website locally:
47
+ Then, build and preview the website locally:
48
48
49
49
```
50
- npm run build
51
- node .output/server/index.mjs
50
+ npm run generate
51
+ npm run preview
52
52
```
53
53
54
54
Submitting news
55
55
---
56
56
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://... ` ).
57
+ All news articles are written in Markdown and stored in ` /content/{language}/ news ` , with
58
+ extra assets (images, etc.) stored in ` /public /... ` . All assets should be
59
+ referenced from the site (` /... ` , not ` https://... ` ).
60
60
61
61
News articles should contain a header:
62
62
@@ -83,8 +83,9 @@ home: true
83
83
84
84
### Localising news articles
85
85
86
- To localise a news article, use a language code suffix such as ` .zh-cn ` , i.e.:
86
+ To localize a news article, just add a file with the same name to the
87
+ corresponding language folder such as ` /content/zh/ ` , i.e.:
87
88
88
89
```
89
- 2024-09-18-aosc-os-relnote.zh-cn .md
90
+ /content/zh/news/ 2024-09-18-aosc-os-relnote.md
90
91
```
0 commit comments