Skip to content

Modernize docs landing page and apply conventions pass - #37

Merged
KraHsu merged 2 commits into
devfrom
docs/landing-page-and-conventions-pass
May 15, 2026
Merged

KraHsu merged 2 commits into
devfrom
docs/landing-page-and-conventions-pass

Conversation

@KraHsu

@KraHsu KraHsu commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

Two commits, both docs-only, no Python touched.

1. Apply documentation conventions pass — bring existing pages back into compliance with CONTRIBUTING.md (Documentation conventions, lines 26–38):

  • Drop chatty "This page covers…" / "本页覆盖…" openers in quickstart.{en,zh}.md.
  • Remove two inline mid-paragraph cross-page links in examples/overview.{en,zh}.md — the sibling pages already live in the left-hand nav.
  • Rewrite contributing.zh.md for parity with the English include: drop the blockquote opener, add the missing 文档约定 section, and refresh the branch flow from the legacy single-branch model to the current feat/* → dev → main two-layer flow.

2. Modernize docs landing page — index.{en,zh}.md and extra.css only; index is explicitly exempt from the doc rules and now uses a refined technical/editorial treatment:

  • Hero with monospace eyebrow, display-size Fraunces H1 (Google Fonts), shortened lead, two CTA buttons.
  • macOS-style terminal preview showing real genelab list tasks output for the four registered tasks.
  • Quick start cards keep the same four destinations but gain monospace 01–04 badges, dashed separators, lift-on-hover.
  • Modules section: prose bullets → two-column technical grid (name + one-line purpose).
  • TOC hidden on the index only via front-matter.
  • Companion CSS fixes that surfaced during the redesign:
    • Search input/icons now render dark in light mode (Material defaults assumed a primary-coloured header).
    • Clipboard copy button reshaped to 8 px rounded, 1.65 rem, inset 0.45 rem — no longer crashes the 12 px code-block corner; fades in on .highlight:hover.
  • All landing-page rules are scoped under .gl-* — other pages are not affected.

The 7 pyright errors and the pytest torch-import failures observed locally already exist on origin/dev baseline and are out of scope for this PR.

Test plan

  • uv run ruff check — passes
  • uv run ruff format --check — 160 files already formatted
  • uv run mkdocs build --strict — passes
  • Visual check: uv run mkdocs serve → / and /zh/ render the new hero / terminal / cards
  • Visual check: code blocks on getting-started/installation/ show the rounded clipboard button only on hover
  • Visual check: header search box text + icons are legible in both light and slate modes

@KraHsu KraHsu mentioned this pull request May 15, 2026
1 task done
KraHsu added 2 commits May 15, 2026 22:42
Aligns existing pages with the CONTRIBUTING.md doc rules:

- Drop chatty "This page covers…" / "本页覆盖…" openers from
  quickstart.{en,zh}.md so each page opens directly on its first
  numbered section.
- Remove two inline mid-paragraph cross-page links from
  examples/overview.{en,zh}.md (Inverted Pendulum + Quickstart §5);
  the sibling pages are already in the left-hand nav.
- Rewrite contributing.zh.md to mirror the English doc structure:
  drop the blockquote chatty opener, add the missing 文档约定 section,
  and update the branch flow from the legacy single-branch model
  to the current feat/* → dev → main two-layer flow.
Replaces the bullet-list index with a designed landing page; the
underlying doc conventions still apply to every other page.

- New hero: monospace eyebrow tag, display-size Fraunces H1 (loaded
  from Google Fonts), shortened lead, two action buttons.
- macOS-style terminal preview under the hero showing actual
  `genelab list tasks` output for the four registered tasks.
- Quick start cards keep the four destinations but gain monospace
  01–04 badges, dashed separators, and a lift-on-hover.
- Modules section converted from prose bullets to a two-column
  technical grid (module name + one-line purpose).
- TOC hidden on the index only via front-matter (no in-page nav
  needed when sections double as the nav targets).

Accompanying CSS fixes that surfaced during the redesign:

- Search input/icons in the header now use dark text in light mode;
  the previous Material defaults assumed a primary-coloured header
  and rendered white-on-white once the header background was flipped.
- Code-block clipboard button reshaped (8 px rounded, 1.65 rem,
  inset 0.45 rem) so it no longer crashes into the 12 px corner;
  fades in on `.highlight:hover` instead of competing with code.

All `.gl-*` rules are scoped — other pages are unaffected.
@KraHsu
KraHsu force-pushed the docs/landing-page-and-conventions-pass branch from b2b814c to 67661a0 Compare May 15, 2026 14:43
@KraHsu
KraHsu merged commit 056a2b2 into dev May 15, 2026
3 checks passed
@KraHsu
KraHsu deleted the docs/landing-page-and-conventions-pass branch May 15, 2026 14:48
KraHsu added a commit that referenced this pull request Jun 5, 2026
…pass

Modernize docs landing page and apply conventions pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant