@@ -17,6 +17,8 @@ Every page exists in English (default) and Brazilian Portuguese:
1717| --- | --- |
1818| ` / ` and ` /pt-br/ ` | LuminusOS home: hero, pillars, how it works, editions, download, support |
1919| ` /aurora/ ` and ` /pt-br/aurora/ ` | Aurora Shell subpage |
20+ | ` /blog/ ` | Blog copy embedded in the main website build |
21+ | ` /wiki/ ` | Wiki copy embedded in the main website build |
2022
2123All copy lives in a single typed dictionary: ` src/i18n/translations.ts ` .
2224Adding a language = append it to the ` languages ` array (name + flag, the
@@ -30,8 +32,8 @@ preference, with a header toggle persisted in `localStorage`.
3032
3133``` sh
3234npm install
33- npm run dev # http://localhost:4321
34- npm run build # static output in dist/
35+ npm run dev # http://localhost:4321, including /aurora, /blog and /wiki
36+ npm run build # static output in dist/, including /blog and /wiki
3537npm run preview # serve dist/ locally
3638```
3739
@@ -50,34 +52,33 @@ by editing the `available` check when its first release lands.
5052
5153``` sh
5254npm run build:aurora # static output in dist-aurora/
55+ npm run deploy:aurora # deploy dist-aurora to Cloudflare Pages
5356```
5457
5558With ` SITE_VARIANT=aurora ` the Aurora Shell page becomes the site root
5659(` / ` and ` /pt-br/ ` ), cross-links point back to ` https://luminusos.org ` , and
5760` dist-aurora/CNAME ` is written as ` aurora.luminusos.org ` .
5861
59- ` deploy-aurora.yml ` pushes that build to the ` gh-pages ` branch of
60- ` luminusOS/aurora-shell ` (needs the ` AURORA_DEPLOY_TOKEN ` secret: a
61- fine-grained PAT with Contents: write there), since GitHub Pages serves one
62- site per repository.
63-
6462## Wiki & Blog (sub-projects)
6563
66- The wiki and the blog live in this repository as independent Astro projects:
64+ The wiki and the blog live in this repository as Astro roots that share the
65+ top-level ` package.json ` and lockfile:
6766
6867| Site | Folder | Stack |
6968| --- | --- | --- |
7069| [ wiki.luminusos.org] ( https://wiki.luminusos.org ) | ` wiki/ ` | Astro Starlight (sidebar, search, i18n) |
7170| [ blog.luminusos.org] ( https://blog.luminusos.org ) | ` blog/ ` | Astro content collections, English + Google Translate menu |
7271
73- Each has its own ` package.json ` (` cd wiki && npm install && npm run dev ` ).
74- GitHub Pages serves one site per repository, so ` deploy-wiki.yml ` and
75- ` deploy-blog.yml ` build the sub-project and push its ` dist/ ` to the
76- ` gh-pages ` branch of ` luminusOS/wiki ` / ` luminusOS/blog ` (Pages-only repos).
77- Setup per subdomain: create the target repo, enable Pages on ` gh-pages ` ,
78- point DNS ` <sub>.luminusos.org ` → ` luminusos.github.io ` , and add the
79- ` WIKI_DEPLOY_TOKEN ` / ` BLOG_DEPLOY_TOKEN ` secret here (fine-grained PAT
80- with Contents: write on the target repo).
72+ The root ` npm run build ` builds both projects with ` /blog ` and ` /wiki ` bases
73+ and copies them into the main website ` dist/ ` . Standalone Cloudflare Pages
74+ builds use the subdomain versions:
75+
76+ ``` sh
77+ npm run build:blog
78+ npm run deploy:blog
79+ npm run build:wiki
80+ npm run deploy:wiki
81+ ```
8182
8283## License
8384
0 commit comments