Skip to content

Commit ff171ed

Browse files
authored
Redesign docs site: Astro landing page with fresh v1.0.0 screenshots (#50)
* v1.0.0: live diff preview, auto-growing AI input, polished Settings Three feedback fixes + the 1.0 version bump. - AI composer now auto-grows as you type multiple lines (up to a max, then scrolls), instead of a fixed single row that hid earlier lines. - Per-change accept/reject now updates the preview live. During review the editor shows the full proposed text, but the preview should show "original + changes accepted so far". @codemirror/merge's acceptChunk folds an accepted change into its *original* document, so getOriginalDoc() is exactly that running result — we sync it to onChange on every review update. Accepting a single change now appears in the preview immediately (previously only "Accept all" did). "Reject all" resets fully (passes the original, so any individually-accepted changes are discarded too). - Settings polish: redesigned toggle switches (larger, smoother, better contrast on every theme), font options now preview themselves in their own typeface with a kind label and check, font-size options show an "Aa" scale preview, and the editor toggles are grouped into one bordered list. - Bump version to 1.0.0 across tauri.conf.json, package.json, Cargo.toml, Cargo.lock. * Redesign docs site: Astro landing page with fresh v1.0.0 screenshots Rebuild the GitHub Pages site (docs/) from a single static index.html into an Astro + Tailwind v4 project with cinematic motion and brand colors. Highlights: - Sections: hero, trust bar, features bento, live editor showcase, interactive 4-theme switcher, power-user gallery, AI Agent inline-diff demo, download cards, FAQ (with schema), footer - Replace stale/empty screenshots with 8 fresh 1920x1030 captures of the running v1.0.0 app (split view; math/chemistry/Mermaid; all four themes; command palette; file explorer). Fresh og.png for social previews. - GSAP + ScrollTrigger + Lenis: smooth scroll, reveals, parallax, tilt - Lucide icons throughout (no emoji); orange/cyan brand accents; aurora - Responsive WebP via astro:assets; prefers-reduced-motion and no-JS safe Deploy: - Add .github/workflows/deploy-docs.yml to build docs/ and publish to GitHub Pages via Actions on push to main (docs/** paths). - Requires one-time repo Settings -> Pages -> Source = "GitHub Actions".
1 parent 20af1f6 commit ff171ed

44 files changed

Lines changed: 2569 additions & 255 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Deploy docs to Pages
2+
3+
# Builds the Astro marketing site in docs/ and publishes it to GitHub Pages.
4+
# Requires repo Settings → Pages → Source = "GitHub Actions" (one-time switch).
5+
on:
6+
push:
7+
branches: [main]
8+
paths:
9+
- "docs/**"
10+
- ".github/workflows/deploy-docs.yml"
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment; never cancel an in-progress production deploy.
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: docs
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Setup Bun
34+
uses: oven-sh/setup-bun@v2
35+
with:
36+
bun-version: latest
37+
38+
- name: Install dependencies
39+
run: bun install --frozen-lockfile
40+
41+
- name: Build site
42+
run: bun run build
43+
44+
- name: Configure Pages
45+
uses: actions/configure-pages@v5
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: docs/dist
51+
52+
deploy:
53+
needs: build
54+
runs-on: ubuntu-latest
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

docs/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
# deps
6+
node_modules/
7+
# env
8+
.env
9+
.env.production

docs/assets/code-mode.png

-136 KB
Binary file not shown.

docs/assets/dark-theme.png

-30.2 KB
Binary file not shown.

docs/assets/file-explorer.png

-157 KB
Binary file not shown.

docs/assets/light-theme.png

-26.8 KB
Binary file not shown.

docs/assets/outline.png

-218 KB
Binary file not shown.

docs/assets/paper-theme.png

-29.1 KB
Binary file not shown.

docs/astro.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from 'astro/config';
2+
import tailwindcss from '@tailwindcss/vite';
3+
import icon from 'astro-icon';
4+
5+
// Deployed to GitHub Pages at https://razee4315.github.io/MarkLite/
6+
// `base` must match the repo name so every emitted URL is prefixed correctly.
7+
export default defineConfig({
8+
site: 'https://razee4315.github.io',
9+
base: '/MarkLite/',
10+
trailingSlash: 'ignore',
11+
integrations: [icon()],
12+
vite: {
13+
plugins: [tailwindcss()],
14+
},
15+
});

docs/bun.lock

Lines changed: 971 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)