Repository navigation
Serve the docs fonts from the site and add the OpenEnv logo - #1745
Conversation
- Use Lato, the typeface of the OpenEnv wordmark, and IBM Plex Mono from docs/pages/fonts (Latin subset, OFL licenses included) instead of Google Fonts, so visiting the docs makes no requests to a third-party font service. - Add the full OpenEnv logo (cube and wordmark, the text as Lato outlines) as logo.svg and logo-white.svg, published with the site. - Draw the hidden back edges of the cube and a fainter grid on the home page, like the logo.
|
The docs for this pull request are available at https://openenv.github.io/OpenEnv/pr-preview/pr-1745/ (commit ef383ce). The preview may take a minute to update and is removed when the pull request closes. |
There was a problem hiding this comment.
Alignment Review Report
Automated Checks
- Lint: PASS —
usort/ruff format/ruff checkall pass onsrc/ tests/. The two filesusortreformats (tests/envs/test_julia_env.py,tests/envs/test_grid_world.py) are a pre-existing issue on a cleanmain, not introduced by this PR (this PR touches nosrc//tests/files). - Debug code: CLEAN —
check-debug.shonly scanssrc/*.py; the pre-existingprint/TODOhits it reports are all outside this diff (this PR only touchesdocs/README.md,docs/pages/build_site.py,docs/pages/shell.css, and new font/logo assets).
Open RFCs Context
Scanned all RFCs in rfcs/ (000, 001, 002, 003, 004, 005, 006, 008, 010, 011, 012, 014 — mostly "In Review", two "Draft": 010, 011). None mention the doc site, fonts, branding, or docs/pages/. This PR is purely static-site styling/assets and doesn't touch any area those RFCs cover.
Analysis
This is a docs-site-only change: self-hosts Lato + IBM Plex Mono (replacing the Google Fonts <link>/@import) and adds logo.svg/logo-white.svg.
- Both fonts are the Latin-subset
.woff2files with their SIL OFL-1.1LICENSE-*.txtalongside them — correct for self-hosted redistribution, andbuild_site.py'sshutil.copytree(SHELL_DIR / "fonts", out / "fonts")ships the license files with the built site too. - New
@font-faceblocks inshell.cssuse the same tab indentation as the rest of the file — consistent style. - Dropping the
fonts.googleapis.compreconnect/stylesheet<link>s in favor of a single<link rel="preload">for the critical Lato weight is a reasonable perf trade (one less third-party round trip), and the new logo SVGs render the wordmark as vector paths rather than live text, so they don't depend on the font loading to look right. - Minor/non-blocking:
logo.svg/logo-white.svgare added toASSETS(so they're copied to the site root) but I didn't find either file referenced from any template inbuild_site.pyor fromshell.css— the header still uses the inlineLOGOSVG constant atbuild_site.py:99. Left a note inline; may be intentional prep for a follow-up (e.g. GitHub README/social usage) rather than a bug.
Tier 1: Fixes Required
None — no mechanical issues, debug code, or security issues found in the diff.
Tier 2: Alignment Discussion
Principle Conflicts
None identified. No API, client/server, reward, or MCP boundary code is touched.
RFC Conflicts
None identified. No open RFC covers the docs site/branding area this PR changes.
Summary
- 0 mechanical issues to fix
- 1 minor non-blocking observation for human judgment (unused logo assets — see inline note)
- 0 RFC conflicts to discuss
Sent by Cursor Automation: Pre-review
| "apple-touch-icon.png", | ||
| "og-image.png", | ||
| "logo.svg", | ||
| "logo-white.svg", |
There was a problem hiding this comment.
Nit (non-blocking): logo.svg/logo-white.svg are copied to the site root via ASSETS, but I couldn't find either file referenced by any template here or in shell.css — the page header still renders the inline LOGO SVG constant at line 99. If these are meant for a later use (e.g. GitHub README, social preview), worth a one-line comment saying so; otherwise they're currently dead assets on the deployed site.


Summary
Two follow-ups to the docs site (#1728):
docs/pages/fonts/(Latin subset, WOFF2 from@fontsource5.3.0, OFL licenses included), 128 KB in total.docs/pages/logo.svgandlogo-white.svgare the full logo (cube and wordmark) for light and dark backgrounds, with the text as Lato outlines so they render the same everywhere. They are published with the site. The cube on the home page now has the hidden back edges and the faint grid of the logo.Type of Change
Alignment Checklist
Before submitting, verify:
.claude/docs/PRINCIPLES.mdand this PR aligns with our principles.claude/docs/INVARIANTS.mdand no invariants are violated/pre-submit-pr(orbash .claude/hooks/lint.shand tests) and addressed all issuesRFC Status
Test Plan
tests/scripts/test_docs_pages_build_site.pypasses,ruffpasses.Claude Code Review
Docs site assets only (
docs/pages). No principle, invariant or RFC is affected.Note
Low Risk
Docs-site-only asset and styling changes with no impact on application runtime, auth, or data handling.
Overview
The docs site stops loading typography from Google Fonts and instead ships Lato (OpenEnv wordmark face) and IBM Plex Mono from a local
docs/pages/fonts/directory, with OFL license files.shell.cssdefines@font-facerules and switches body text from Source Sans 3 to Lato;build_site.pydrops the Google Fonts<link>tags, preloads the primary Lato WOFF2, and copies thefonts/tree into every published build.logo.svgandlogo-white.svgare added to the published asset list so external READMEs and posts can link the full logo;docs/README.mddocuments the new fonts and logos. The home-page hero cube background SVG is tweaked to show fainter grid lines and hidden back edges so it better matches the logo treatment.Reviewed by Cursor Bugbot for commit ef383ce. Bugbot is set up for automated code reviews on this repo. Configure here.