Skip to content

Add project logo (README, docs header/favicon, landing pages); fix asset URLs 404 on Pages - #1

Merged
VANvonZHANG merged 3 commits into
masterfrom
add-project-icon
Nov 1, 2026
Merged

VANvonZHANG merged 3 commits into
masterfrom
add-project-icon

Conversation

@VANvonZHANG

Copy link
Copy Markdown
Contributor

What

Adds the project logo (user-provided artwork) and wires it everywhere a
reader meets the project:

  • README — centered logo between the title and the CI badges
  • Docs site header — Material theme.logo (square badge crop) on every page
  • Favicon — 48×48 crop of the badge
  • Landing pages — full banner on en/index.md and zh/index.md

Assets: docs/assets/logo.png (251×137 original), logo-square.png
(113×113 tight crop around the badge), favicon.png (48×48). All derived
from the same source image; the square crops exist because a wide banner
squashes when used as a favicon/nav logo.

Fixed along the way: root-absolute asset URLs 404 in production

While wiring the logo I found that MkDocs leaves root-absolute links
(/assets/...) untouched, but the site is served under
/FortranCallJulia/ — so on the live site today, every figure in the
zh figures annex and the interactive architecture iframe (plus its static
fallback) on both locales are broken
:

  • https://openearthmodelling.github.io/assets/figs/fig1_sod_transport.png → 404
  • same for fig2–fig8, architecture-preview.png, fcj-architecture.html

Root cause: the docs-tree QA ran on a local preview served at the domain
root, where /assets/... resolves correctly. This PR switches all of them
to relative links, which MkDocs resolves per rendered page depth.

Verification

  • mkdocs build --strict — exit 0, no warnings
  • scripts/docs_parity.py — OK: 19 paired, 2 exempt, 40 pages + 1 asset
  • pytest tests/ — 10 passed
  • Link sweep over the built site: 1668 internal refs, 0 unresolved
    (would have caught the original 404)

Root-absolute asset links (/assets/...) are left as-is by MkDocs, but the
site is served under /FortranCallJulia/, so they 404 in production: every
figure in the zh annex, and the interactive architecture iframe plus its
static fallback on both locales. The local T3 preview served at the domain
root, which masked this during the docs-tree QA. Switch to relative links,
which MkDocs resolves per rendered page.
@VANvonZHANG
VANvonZHANG merged commit f867824 into master Nov 1, 2026
4 checks passed
@VANvonZHANG
VANvonZHANG deleted the add-project-icon branch November 1, 2026 06:05
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