Skip to content

Serve the docs fonts from the site and add the OpenEnv logo - #1745

Merged
sergiopaniego merged 2 commits into
mainfrom
docs/site-fonts-logo
Nov 25, 2026
Merged

sergiopaniego merged 2 commits into
mainfrom
docs/site-fonts-logo

Conversation

@sergiopaniego

@sergiopaniego sergiopaniego commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two follow-ups to the docs site (#1728):

  • Fonts served by the site. The docs loaded Source Sans 3 and IBM Plex Mono from Google Fonts, so every visit sent the reader's IP to a third-party font service. They now use Lato, the typeface of the OpenEnv wordmark, and IBM Plex Mono from docs/pages/fonts/ (Latin subset, WOFF2 from @fontsource 5.3.0, OFL licenses included), 128 KB in total.
  • The OpenEnv logo as SVG. docs/pages/logo.svg and logo-white.svg are 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

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • New environment
  • Refactoring

Alignment Checklist

Before submitting, verify:

  • I have read .claude/docs/PRINCIPLES.md and this PR aligns with our principles
  • I have checked .claude/docs/INVARIANTS.md and no invariants are violated
  • I have run /pre-submit-pr (or bash .claude/hooks/lint.sh and tests) and addressed all issues

RFC Status

  • Not required (bug fix, docs, minor refactoring)
  • RFC exists: #___
  • RFC needed (will create before merge)

Test Plan

  • Built the site locally: Lato and IBM Plex Mono load from the site, and a page makes no request to any other host.
  • The logo was compared with the banner in the README: the wordmark matches Lato Regular and ends 3 px from the original at banner size.
  • tests/scripts/test_docs_pages_build_site.py passes, ruff passes.
  • This PR's docs preview shows the result.

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.css defines @font-face rules and switches body text from Source Sans 3 to Lato; build_site.py drops the Google Fonts <link> tags, preloads the primary Lato WOFF2, and copies the fonts/ tree into every published build.

logo.svg and logo-white.svg are added to the published asset list so external READMEs and posts can link the full logo; docs/README.md documents 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.

- 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.
@burtenshaw burtenshaw added documentation Improvements or additions to documentation size: medium Medium pull request labels Nov 25, 2026 — with Cursor
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alignment Review Report

Automated Checks

  • Lint: PASS — usort/ruff format/ruff check all pass on src/ tests/. The two files usort reformats (tests/envs/test_julia_env.py, tests/envs/test_grid_world.py) are a pre-existing issue on a clean main, not introduced by this PR (this PR touches no src//tests/ files).
  • Debug code: CLEAN — check-debug.sh only scans src/*.py; the pre-existing print/TODO hits it reports are all outside this diff (this PR only touches docs/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 .woff2 files with their SIL OFL-1.1 LICENSE-*.txt alongside them — correct for self-hosted redistribution, and build_site.py's shutil.copytree(SHELL_DIR / "fonts", out / "fonts") ships the license files with the built site too.
  • New @font-face blocks in shell.css use the same tab indentation as the rest of the file — consistent style.
  • Dropping the fonts.googleapis.com preconnect/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.svg are added to ASSETS (so they're copied to the site root) but I didn't find either file referenced from any template in build_site.py or from shell.css — the header still uses the inline LOGO SVG constant at build_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
Open in Web View Automation 

Sent by Cursor Automation: Pre-review

Comment thread docs/pages/build_site.py
"apple-touch-icon.png",
"og-image.png",
"logo.svg",
"logo-white.svg",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@sergiopaniego
sergiopaniego merged commit c29dff7 into main Nov 25, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size: medium Medium pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants