fix(docs): restore site footer after mystmd conversion#801
Open
henryiii wants to merge 1 commit into
Open
Conversation
The mystmd migration ported the footer styling in assets/css/site.css (the `.footer` / `.outer-grid` rules, including the site-title heading) but never added the footer content part. In the book-theme the site-wide footer is a content part wired via `site.parts.footer`, which was missing from config/scientific-python.yml — so no `<footer>` was rendered and the site title that lives inside it disappeared. Add docs/footer.md (site title, maintainer blurb, and links) and wire it up with `site.parts.footer`, matching the upstream scientific-python-myst -theme layout the CSS already expects. Assisted-by: ClaudeCode:claude-opus-4.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Problem
After the move to mystmd (#792), the site footer is missing and there is "no site title".
Root cause
The migration ported the footer styling (
docs/assets/css/site.csshas the full.footer/.outer-gridblock, including the site-titleh1rule) but never ported the footer content. In the book-theme the site-wide footer is a content part wired via:docs/config/scientific-python.ymlhad noparts:section at all, so MyST rendered no<footer>element — and the site title that lives inside the footer disappeared with it. (The top-left header logo +logo_textwere always rendering; the "footer-link" classes in the HTML are just the prev/next page nav, not the site footer.)Fix
docs/config/scientific-python.yml— add the missingparts.footer: footer.mdwiring, mirroring the upstreamscientific-python-myst-themeconfig.docs/footer.md(new) — footer content using the.outer-gridgrid the CSS already expects: site-titleh1, the maintainer blurb, and the Scientific Python / Learn / Source links. It starts with a MyST%comment (not a real page), so it carries<!-- rumdl-disable MD041 -->, the same inline-disable pattern already used indocs/_partials/pyproject.md.Verification
npx myst build --htmlnow emits a<footer>with the dark teal background, the site-titleh1, the description, and the links.prek(rumdl) passes on both files.📚 Documentation preview 📚: https://scientific-python-cookie--801.org.readthedocs.build/