Skip to content

Switch theme to shibuya-page (with live preview) - #189

Closed
arsenovicAtNominal wants to merge 1 commit into
777arc:masterfrom
arsenovicAtNominal:shibuya-theme
Closed

arsenovicAtNominal wants to merge 1 commit into
777arc:masterfrom
arsenovicAtNominal:shibuya-theme

Conversation

@arsenovicAtNominal

Copy link
Copy Markdown

Summary

Switches the Sphinx theme from alabaster to shibuya-page, a child theme of Shibuya (the alabaster look, so it stays close to the current colors; rtd and pydata looks are a one-word change in conf.py).

Live preview of the full build (English + all 6 translations): https://arsenovicatnominal.github.io/PySDR/

Changes

  • conf.py: html_theme = 'shibuya-page'; removed the alabaster options and sidebars.
  • _templates/base.html (replaces layout.html): Shibuya's pages extend base.html, so the custom title, SEO/og tags, analytics, announcement banner and language switcher live here. The switcher moved out of <head> and its links are now relative, so they work on previews as well as pysdr.org.
  • Removed the alabaster-only navigation.html / about.html and trimmed the alabaster hacks from custom.css.
  • Landing page text was <h4>s (bold in the new theme), now plain paragraphs.
  • requirements.txt: Sphinx 9.1+ (needed by the theme, Python 3.12+), dropped the old Sphinx 4.4 / docutils 0.17 pins, theme installed from git.
  • .github/workflows/preview.yml: builds every language and publishes to GitHub Pages of the repo it runs in. Drop it if you don't want it.

Known gaps / to review

  • Patreon supporters list is not in the sidebar yet (the old patrons.html sidebar template was alabaster-specific). Needs CREATOR_ID to see anyway.
  • Newer docutils is stricter: content-fr/bladerf.rst and doa.rst log "Unexpected indentation" errors, so those blocks may render wrongly.
  • The html-nl target's sed -i is GNU-only (fine on CI, fails on macOS).
  • Not yet checked: dark mode, the JS mini-apps, GNU Radio World embeds under the new theme, spell check with Sphinx 9.

Opened as a draft for feedback.

Use the shibuya-page theme (Shibuya child theme), move the language switcher and
announcement banner into the page header with relative links, render the landing
page text as paragraphs instead of bold h4s, loosen the Sphinx pins to Sphinx 9, and
add a workflow that publishes a full preview build to GitHub Pages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@arsenovicAtNominal

Copy link
Copy Markdown
Author

@777arc hey , i just built this theme or scikit-rf and was browsing pysdr and thought it would be a good fit!

@777arc

777arc commented Nov 18, 2026

Copy link
Copy Markdown
Owner

I appreciate you taking the time to demo this new style, and provide a live view of it, but I spent a while tweaking the old style to my liking, I try to keep it simple, I rather not change the look of the site at the moment, both myself and readers are used to it.

@777arc 777arc closed this Nov 18, 2026
@arsenovic

Copy link
Copy Markdown

no prob!

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.

3 participants