Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -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
Binary file added Docs/brand/readme-hero-1983x793.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/brand/readme-logo-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions Docs/brand/weibei-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions LICENSING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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.

Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- WEIBEI_VISUAL:hero:START -->
![WeiBei / 魏碑](./Docs/brand/readme-hero-1983x793.png)
<!-- WEIBEI_VISUAL:hero:END -->

# WeiBei / 魏碑

WeiBei is a source-grounded macOS study workspace for reading course materials, asking questions, and writing notes without breaking context.
Expand All @@ -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.

<!-- WEIBEI_VISUAL:workspace:START -->
<p align="center">
<img src="./Docs/release-evidence/app-offline-learning-flow.png" alt="WeiBei reading, Agent conversation, and note workspace" width="1200">
</p>
<!-- WEIBEI_VISUAL:workspace:END -->

## What it does

- Imports individual files or course folders containing PDF, HTML, Markdown, and plain text.
Expand All @@ -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.

<!-- WEIBEI_VISUAL:course-relations:START -->
<p align="center">
<img src="./Docs/release-evidence/app-course-workspace-overview-flow.png" alt="WeiBei course material and note relationship view" width="1200">
</p>
<!-- WEIBEI_VISUAL:course-relations:END -->

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
Expand Down
7 changes: 7 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added website/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/brand/app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/brand/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/brand/paper-texture.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/brand/textured-mark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/fonts/NotoSansSC-Web-400.woff2
Binary file not shown.
Binary file added website/assets/fonts/NotoSerifSC-Web-400.woff2
Binary file not shown.
Binary file added website/assets/fonts/NotoSerifSC-Web-600.woff2
Binary file not shown.
93 changes: 93 additions & 0 deletions website/assets/fonts/OFL-Noto-CJK.txt
Original file line number Diff line number Diff line change
@@ -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.
Binary file added website/assets/fonts/WeiBeiStele.ttf
Binary file not shown.
Binary file added website/assets/fonts/WeiBeiSteleMono.ttf
Binary file not shown.
Binary file added website/assets/screens/course-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/assets/screens/workspace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/favicon.ico
Binary file not shown.
10 changes: 10 additions & 0 deletions website/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading