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
46 changes: 46 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy site (GitHub Pages)

# Publishes the product landing page in site/ to GitHub Pages (GTM §7
# "真正的产品站"). Manual on purpose: going live changes the public homepage,
# which is the owner's call, and it also avoids a red run on main before Pages
# is enabled.
#
# ONE-TIME owner setup before the first run:
# 1. Repo → Settings → Pages → Build and deployment → Source: "GitHub Actions".
# 2. Run this workflow (Actions tab → "Deploy site" → Run workflow).
# 3. Point package.json `homepageUrl` / the repo "Website" at the Pages URL.
# After that, switching to auto-deploy is one line — add a `push:` trigger
# scoped to `paths: [site/**]`.

on:
workflow_dispatch: {}

permissions:
contents: read
pages: write
id-token: write

# One concurrent deploy; don't cancel an in-progress publish.
concurrency:
group: pages
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6

- uses: actions/configure-pages@v5

- name: Upload site/ artifact
uses: actions/upload-pages-artifact@v3
with:
path: site

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
42 changes: 42 additions & 0 deletions site/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# site/ — Markup product landing page

The product site for GTM-SCALE-PLAN.md §7 ("真正的产品站"): a single
self-contained `index.html` (inline CSS, no build step) plus `assets/`.

Replaces the weak status quo where `homepageUrl` points at the releases page —
this is a real landing surface (hero, download matrix, feature grid, honest
comparison table, the GitHub-docs-reader wedge) tuned for conversion + SEO.

## Honesty rules (keep these true)

- **Platform truth:** macOS available; iOS/iPadOS "in review"; Windows/Linux
"coming soon" (CI-validated, not released). Update the day the beta ships.
- **Respectful comparison** (GTM §9): the table names where Typora/Obsidian are
stronger. Don't turn it into a hit piece.
- **No invented numbers / no fake social proof.**

## Preview locally

```bash
python3 -m http.server 8765 --directory site
# open http://localhost:8765
```

## Publish (owner, one-time)

GitHub Pages serves this via [`.github/workflows/pages.yml`](../.github/workflows/pages.yml):

1. Repo → **Settings → Pages → Source: "GitHub Actions"**.
2. **Actions → "Deploy site" → Run workflow.**
3. Point `package.json` `homepageUrl` (and the repo "Website" field) at the
Pages URL.

Going live is intentionally manual — publishing the public homepage is the
owner's call. After the first deploy, add a `push:` trigger scoped to
`paths: [site/**]` to auto-deploy on content changes.

## Assets

`hero.gif`, `screenshot-*.png`, `social-card.png`, `128x128@2x.png` are copied
from `docs/assets/` and `src-tauri/icons/`. If those originals change, refresh
the copies here.
Binary file added site/assets/128x128@2x.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 site/assets/hero.gif
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 site/assets/screenshot-outline.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 site/assets/screenshot-read.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 site/assets/screenshot-vault.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 site/assets/social-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
311 changes: 311 additions & 0 deletions site/index.html

Large diffs are not rendered by default.

Loading