Skip to content

Add a shared theme for the PyPTO documentation sites - #4

Merged
lyfne123 merged 2 commits into
mainfrom
codex/shared-docs-theme
Sep 9, 2026
Merged

Add a shared theme for the PyPTO documentation sites#4
lyfne123 merged 2 commits into
mainfrom
codex/shared-docs-theme

Conversation

@lyfne123

@lyfne123 lyfne123 commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

The project documentation sites currently maintain separate layouts and branding. This adds a reusable Material theme with the homepage's brand assets, a five-project selector, responsive reading layouts, and one system/light/dark preference shared across the homepage and documentation.

Consumers fetch a full commit SHA and include local copies of the assets in their independently deployed sites. The maintenance guide covers integration, version updates, and rollback. A read-only workflow builds five fixed downstream snapshots and runs bilingual PyPTO browser checks.

Validation: all five strict documentation builds passed; 14 root/deep rendered pages passed asset and navigation checks; all 24 Chromium checks passed; JavaScript syntax and Ruff checks passed. The Toolkit matrix deliberately tests Material 9.7.7 using a temporary requirements copy because its existing constraint excludes that version.

The unchanged PyPTO baseline has optional alternate-sitemap 404s and a cross-language search redirect issue in Material/i18n. These are documented separately; the browser suite checks search within the current language and keeps other resource and JavaScript failures strict.

Merge this shared theme before the consumer integration. If this PR is squash-merged, consumers must pin and validate the resulting merge commit.

Share the homepage brand assets, project navigation, responsive layout,
and system/light/dark preference across independently built docs.
Provide pinned MkDocs/Material constraints and a read-only five-project
compatibility workflow, including bilingual PyPTO browser checks.

Validate strict builds for five fixed repository snapshots, rendered
root/deep pages, mobile layouts, theme persistence, and search within the
current language. Document the existing Material/i18n alternate-sitemap
and cross-language search limitations separately.
Enable fail-fast shell handling in the shared integration guide so a failed
theme download stops before checkout or dependency installation.
@lyfne123
lyfne123 merged commit 25e1894 into main Sep 9, 2026
5 checks passed
lyfne123 added a commit to lyfne123/pypto that referenced this pull request Sep 9, 2026
Fetch the shared theme at 59c0dc2a456b954ea559a03b9ef8fb72eb3d27cb
for CI and local builds, and inherit its branding, layout, project selector,
and system/light/dark preference. Keep navigation, translations, API plugins,
and link checks in this repository.

Use the public pypto.ai URLs and document preview, upgrade, and rollback
commands in both languages. The Docs workflow validates the pinned revision
before installing the shared renderer constraints.

Validate the strict documentation build, repository pre-commit checks, and
24 browser checks against the actual pinned theme checkout. Merge the shared
theme in hw-native-sys/hw-native-sys.github.io#4 first; repin after a squash.
Hzfengsy pushed a commit to hw-native-sys/pypto that referenced this pull request Sep 9, 2026
PyPTO's documentation currently defines its own appearance separately from the project homepage. This adopts the shared theme's branding, responsive layout, five-project selector, and shared system/light/dark preference while retaining PyPTO's navigation, translations, API plugins, and existing checks.

The Docs workflow fetches the full theme commit recorded in `docs/theme-revision.txt` and uses its MkDocs/Material constraints. Public URLs use `www.pypto.ai`. Developer documentation and READMEs stay focused on PyPTO content, with no local-preview or theme-rollback instructions.

The shared theme has merged in hw-native-sys/hw-native-sys.github.io#4. This PR pins its merged commit `25e1894636701e2709f4b6cb31d69e9385577231`.

Validation: the pinned checkout passes the strict documentation build and applicable pre-commit hooks, including documentation navigation, translation parity, and API coverage checks. The merged shared-theme implementation also passed all five project builds and 24 Chromium checks covering English/Chinese pages, mobile navigation, theme persistence, and search within the current language.
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