Skip to content

Commit 3295ceb

Browse files
authored
fix(docs): restore site footer after mystmd conversion (#801)
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
1 parent 1c716bb commit 3295ceb

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

docs/config/scientific-python.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ version: 1
22

33
site:
44
template: book-theme
5+
parts:
6+
footer: footer.md
57
options:
68
hide_toc: false
79
hide_footer_links: true

docs/footer.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- rumdl-disable MD041 -->
2+
3+
% This defines the site-wide footer; it is not parsed as a regular "page".
4+
% It is wired up in `config/scientific-python.yml`:
5+
% site:
6+
% parts:
7+
% footer: footer.md
8+
% The column layout is controlled by `.footer .outer-grid` in
9+
% `assets/css/site.css` (grid-template-columns: 3fr 3fr 4fr).
10+
11+
:::::{grid} 1 1 3 3
12+
:class: outer-grid col-screen
13+
14+
<!-- Project description -->
15+
16+
::::{div}
17+
18+
# Scientific Python Development Guide
19+
20+
This guide is maintained by the scientific Python community for the benefit of
21+
fellow scientists and research software engineers.
22+
::::
23+
24+
<!-- Spacer between description and links -->
25+
26+
::::{div}
27+
::::
28+
29+
<!-- Links -->
30+
31+
::::{div}
32+
33+
- [Scientific Python](https://scientific-python.org)
34+
- [Learn](https://learn.scientific-python.org)
35+
- [Source on GitHub](https://github.com/scientific-python/cookie)
36+
::::
37+
38+
:::::

0 commit comments

Comments
 (0)