Skip to content

WIP: Support additional forges #2215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

mmatous
Copy link

@mmatous mmatous commented May 28, 2025

Hi, this PR contains support for additional SW forges. Project source link in header, link shortening, and edit button are separated by commit.

I had some trouble with SVG assets due to having little experience with CSS or Webpack. How should I bundle them? I couldn't figure out the correct Webpack config, so they're inline for now.

Should I grayscale the icon link in header considering the note about not styling social media icons due to a11y in _icon-links.css?

/* We no longer color the social media icons in their brand colors (makes a11y harder)

How should I handle Codeberg shortlink icon and dark/light mode? The inlined one changes colors in the exact oposite way than I'd like (dark blue on dark) and its other version works fine on dark but disappears on light theme. I tried two separate defs in _icons.scss inside html[data-theme="dark|light"] (mentioned in https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/styling.html#color-variables) but that didn't work.

I also noticed a function being called unnecessarily and fixed that in a separate and a bit offtopic commit. I can send that one in a different PR, if you'd like.

Requested in #2201

mmatous added 4 commits May 28, 2025 01:39
Signed-off-by: Martin Matous <m@matous.dev>
Signed-off-by: Martin Matous <m@matous.dev>
Signed-off-by: Martin Matous <m@matous.dev>
Signed-off-by: Martin Matous <m@matous.dev>
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