Skip to content

Fix list spacing on the docs home page - #2966

Merged
pvcraven merged 1 commit into
developmentfrom
docs-list-spacing
Oct 9, 2026
Merged

pvcraven merged 1 commit into
developmentfrom
docs-list-spacing

Conversation

@pvcraven

@pvcraven pvcraven commented Oct 9, 2026

Copy link
Copy Markdown
Member

Closes #2433

doc/_static/css/custom.css had #the-python-arcade-library ul { margin-top: 0; margin-bottom: 0; }, from the docs overhaul in #1553. Back then the home page showed its tables of contents as lists. They're hidden now, so the rule only removed the normal spacing after the home page's three bullet lists, which is why doc/index.rst used .. raw:: html <br/> blocks.

This removes the rule and the four .. pending: #2433 workarounds. The rule only matched the home page, so other pages don't change.

I checked by building the docs before and after and comparing Chrome screenshots of the home page at desktop and phone widths. The spacing looks the same; it now comes from the theme's normal list margin. The docs build has no new warnings.

🤖 Generated with Claude Code

A rule left over from when the home page showed its tables of contents
removed the margin after every list on it, so the page used <br/>
blocks to space them. Removes the rule and the workarounds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pvcraven
pvcraven merged commit bcf4c87 into development Oct 9, 2026
7 checks passed
@pvcraven
pvcraven deleted the docs-list-spacing branch October 9, 2026 15:57
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.

Fix CSS / Sphinx config so lists don't require line break tricks

1 participant