diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
new file mode 100644
index 000000000..ef1a515c9
--- /dev/null
+++ b/.github/workflows/pages.yml
@@ -0,0 +1,112 @@
+name: Deploy marketing website
+
+on:
+ push:
+ branches: [main]
+ paths:
+ - "website/**"
+ - ".github/workflows/pages.yml"
+ release:
+ types: [published]
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: pages
+ cancel-in-progress: true
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+
+ - name: Configure Pages
+ uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
+
+ - name: Assemble static site
+ run: |
+ set -euo pipefail
+ mkdir -p _site
+ cp -R website/. _site/
+ rm -rf _site/qa
+ touch _site/.nojekyll
+ test -s _site/index.html
+ test -s _site/assets/fonts/WeiBeiStele.ttf
+ test -s _site/assets/fonts/WeiBeiSteleMono.ttf
+ test -s _site/assets/screens/workspace.png
+ test -s _site/assets/screens/course-overview.png
+
+ - name: Add latest DMG downloads
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ set -euo pipefail
+ mkdir -p _site/downloads
+
+ release="$(
+ gh api --paginate "repos/${GITHUB_REPOSITORY}/releases?per_page=100" |
+ jq -s 'add | map(select(.draft == false) | select(any(.assets[]?; (.name | ascii_downcase | endswith(".dmg"))))) | .[0] // empty'
+ )"
+
+ if [ -z "$release" ] || [ "$release" = "null" ]; then
+ echo '{"available":false}' > _site/release.json
+ exit 0
+ fi
+
+ tag="$(jq -r '.tag_name' <<<"$release")"
+ published_at="$(jq -r '.published_at // ""' <<<"$release")"
+ : > /tmp/weibei-dmg-assets.jsonl
+
+ jq -c '.assets[] | select(.name | ascii_downcase | endswith(".dmg"))' <<<"$release" |
+ while IFS= read -r asset; do
+ asset_name="$(jq -r '.name' <<<"$asset")"
+ asset_url="$(jq -r '.url' <<<"$asset")"
+ asset_size="$(jq -r '.size // 0' <<<"$asset")"
+
+ if [ "$(basename "$asset_name")" != "$asset_name" ]; then
+ continue
+ fi
+
+ gh api "$asset_url" -H "Accept: application/octet-stream" > "_site/downloads/$asset_name"
+ test -s "_site/downloads/$asset_name"
+
+ jq -n \
+ --arg name "$asset_name" \
+ --arg download_url "./downloads/$asset_name" \
+ --argjson size "$asset_size" \
+ '{name:$name,download_url:$download_url,size:$size}' >> /tmp/weibei-dmg-assets.jsonl
+ done
+
+ assets="$(jq -s '.' /tmp/weibei-dmg-assets.jsonl)"
+ if [ "$(jq 'length' <<<"$assets")" -eq 0 ]; then
+ echo '{"available":false}' > _site/release.json
+ exit 0
+ fi
+
+ jq -n \
+ --arg version "$tag" \
+ --arg published_at "$published_at" \
+ --argjson assets "$assets" \
+ '{available:true,version:$version,published_at:$published_at,assets:$assets}' > _site/release.json
+
+ - name: Upload Pages artifact
+ uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
+ with:
+ path: _site
+
+ deploy:
+ runs-on: ubuntu-latest
+ needs: build
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ steps:
+ - name: Deploy Pages artifact
+ id: deployment
+ uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
diff --git a/Docs/brand/readme-hero-1983x793.png b/Docs/brand/readme-hero-1983x793.png
new file mode 100644
index 000000000..2552c08be
Binary files /dev/null and b/Docs/brand/readme-hero-1983x793.png differ
diff --git a/Docs/brand/readme-logo-256.png b/Docs/brand/readme-logo-256.png
new file mode 100644
index 000000000..7f39a652b
Binary files /dev/null and b/Docs/brand/readme-logo-256.png differ
diff --git a/Docs/brand/weibei-mark.svg b/Docs/brand/weibei-mark.svg
new file mode 100644
index 000000000..f5a50b504
--- /dev/null
+++ b/Docs/brand/weibei-mark.svg
@@ -0,0 +1,12 @@
+
+
diff --git a/LICENSING.md b/LICENSING.md
index f1cb37d53..98790d3b7 100644
--- a/LICENSING.md
+++ b/LICENSING.md
@@ -25,7 +25,12 @@ The following are not licensed under the AGPL:
- the WeiBei / 魏碑 names, logos, product identity, and trade dress;
- `Sources/WeiBei/Resources/Fonts/`;
+- `Docs/brand/`;
- `DesignReferences/`;
+- WeiBei-authored brand media under `website/assets/brand/`;
+- WeiBei-authored screenshots under `website/assets/screens/`;
+- `website/assets/fonts/WeiBeiStele.ttf` and
+ `website/assets/fonts/WeiBeiSteleMono.ttf`;
- WeiBei-authored screenshots, videos, and release evidence under
`Docs/release-evidence/`;
- `Attachments/pasted-image.png` and `Attachments/pasted-image-2.png`.
@@ -46,6 +51,8 @@ Third-party components keep their original licenses:
directory.
- JavaScript dependencies are recorded in the root and prototype
`package-lock.json` files. Generated bundles retain embedded upstream notices.
+- Noto Sans CJK and Noto Serif CJK web fonts under `website/assets/fonts/` are
+ licensed under the SIL Open Font License 1.1 included in that directory.
- Apple system frameworks are used under the terms supplied by Apple and are
not part of this repository's AGPL grant.
diff --git a/README.md b/README.md
index e14820608..68581fb60 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,7 @@
+
+
+
+
# WeiBei / 魏碑
WeiBei is a source-grounded macOS study workspace for reading course materials, asking questions, and writing notes without breaking context.
@@ -14,6 +18,12 @@ During final-exam revision, I was reading PDFs and HTML pages in a browser, aski
I built WeiBei so the material, the question, its evidence, and the resulting note can stay connected in one workspace.
+
+
+
+
+
+
## What it does
- Imports individual files or course folders containing PDF, HTML, Markdown, and plain text.
@@ -37,6 +47,12 @@ The Build Week work is the range from `366892c1` to the merged `main` submission
- Agent provider profiles, OpenAI Codex OAuth support, clearer failure states, cancellation, and retry.
- Persistent study-session grouping, performance work, final chat math rendering, and pane interaction fixes.
+
+
+
+
+
+
This separation is intentional. The submission should be evaluated on the work added during Build Week, not on the earlier prototype as a whole.
## How I used Codex and GPT-5.6
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 525185b7e..ebedacd92 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -24,6 +24,13 @@ Exact package versions and declared licenses are recorded in:
Generated JavaScript bundles retain embedded copyright and license notices.
Rebuilds must preserve those notices.
+## Website fonts
+
+The marketing website includes Noto Sans CJK and Noto Serif CJK web fonts.
+They remain licensed under the SIL Open Font License 1.1. The copyright notice
+and complete license text are preserved in
+[`website/assets/fonts/OFL-Noto-CJK.txt`](website/assets/fonts/OFL-Noto-CJK.txt).
+
## Reference assets
Image and text reference sources, rights bases, and required credits are
diff --git a/website/apple-touch-icon.png b/website/apple-touch-icon.png
new file mode 100644
index 000000000..7ada4ced4
Binary files /dev/null and b/website/apple-touch-icon.png differ
diff --git a/website/assets/brand/app-icon.png b/website/assets/brand/app-icon.png
new file mode 100644
index 000000000..620ca5363
Binary files /dev/null and b/website/assets/brand/app-icon.png differ
diff --git a/website/assets/brand/og-image.png b/website/assets/brand/og-image.png
new file mode 100644
index 000000000..2d653472a
Binary files /dev/null and b/website/assets/brand/og-image.png differ
diff --git a/website/assets/brand/paper-texture.webp b/website/assets/brand/paper-texture.webp
new file mode 100644
index 000000000..e35f1e309
Binary files /dev/null and b/website/assets/brand/paper-texture.webp differ
diff --git a/website/assets/brand/textured-mark.webp b/website/assets/brand/textured-mark.webp
new file mode 100644
index 000000000..c988cedd8
Binary files /dev/null and b/website/assets/brand/textured-mark.webp differ
diff --git a/website/assets/fonts/NotoSansSC-Web-400.woff2 b/website/assets/fonts/NotoSansSC-Web-400.woff2
new file mode 100644
index 000000000..90229968b
Binary files /dev/null and b/website/assets/fonts/NotoSansSC-Web-400.woff2 differ
diff --git a/website/assets/fonts/NotoSerifSC-Web-400.woff2 b/website/assets/fonts/NotoSerifSC-Web-400.woff2
new file mode 100644
index 000000000..7d52b72a5
Binary files /dev/null and b/website/assets/fonts/NotoSerifSC-Web-400.woff2 differ
diff --git a/website/assets/fonts/NotoSerifSC-Web-600.woff2 b/website/assets/fonts/NotoSerifSC-Web-600.woff2
new file mode 100644
index 000000000..4722497a0
Binary files /dev/null and b/website/assets/fonts/NotoSerifSC-Web-600.woff2 differ
diff --git a/website/assets/fonts/OFL-Noto-CJK.txt b/website/assets/fonts/OFL-Noto-CJK.txt
new file mode 100644
index 000000000..046fc6649
--- /dev/null
+++ b/website/assets/fonts/OFL-Noto-CJK.txt
@@ -0,0 +1,93 @@
+Google Inc.
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/website/assets/fonts/WeiBeiStele.ttf b/website/assets/fonts/WeiBeiStele.ttf
new file mode 100644
index 000000000..9d7d99739
Binary files /dev/null and b/website/assets/fonts/WeiBeiStele.ttf differ
diff --git a/website/assets/fonts/WeiBeiSteleMono.ttf b/website/assets/fonts/WeiBeiSteleMono.ttf
new file mode 100644
index 000000000..9b7a58872
Binary files /dev/null and b/website/assets/fonts/WeiBeiSteleMono.ttf differ
diff --git a/website/assets/screens/course-overview.png b/website/assets/screens/course-overview.png
new file mode 100644
index 000000000..f67e4ade3
Binary files /dev/null and b/website/assets/screens/course-overview.png differ
diff --git a/website/assets/screens/workspace.png b/website/assets/screens/workspace.png
new file mode 100644
index 000000000..b316a7029
Binary files /dev/null and b/website/assets/screens/workspace.png differ
diff --git a/website/favicon.ico b/website/favicon.ico
new file mode 100644
index 000000000..be0b69fa0
Binary files /dev/null and b/website/favicon.ico differ
diff --git a/website/favicon.svg b/website/favicon.svg
new file mode 100644
index 000000000..d88e7feb2
--- /dev/null
+++ b/website/favicon.svg
@@ -0,0 +1,10 @@
+
+
diff --git a/website/index.html b/website/index.html
new file mode 100644
index 000000000..f0f887d23
--- /dev/null
+++ b/website/index.html
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 魏碑 WeiBei — 本地优先的 macOS 学习工作台
+
+
+ 跳到主要内容
+
+
+
+
+ WEIBEI
+ 魏碑
+
+
+
+
+