-
Notifications
You must be signed in to change notification settings - Fork 1.4k
MRG, DOC: Improve styling using classes #7174
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7174 +/- ##
==========================================
- Coverage 89.76% 88.48% -1.28%
==========================================
Files 444 444
Lines 79384 79383 -1
Branches 12692 12692
==========================================
- Hits 71258 70243 -1015
- Misses 5344 6353 +1009
- Partials 2782 2787 +5 |
Okay this one is good to go now that the SG PR is merged: https://17414-1301584-gh.circle-artifacts.com/0/dev/auto_tutorials/intro/plot_10_overview.html @drammock can you look and push commits if you don't like the style changes? |
I'm fine with this style change, I think it looks fine. But I have two questions:
To me it seems like if methods don't get links within code blocks, and if variable names don't consistently get links within code blocks, maybe the only thing that should get links within code blocks is functions / class constructors (i.e., the things that are now bolded). WDYT? |
These are deficiencies in the SG implementation that should be fixed at some point. For example sphinx-gallery/sphinx-gallery#584 might help with one or both of those. Others will require fixing other things within the
I'd rather fix the SG drawbacks if possible (probably in a separate PR to SG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drammock merge if happy
OK, fair enough. To me it still seems unnecessary / overkillI to, e.g., link every variable name that is a dict to the standard library definition of |
Based on what's in SG now you can change via CSS the |
I also think that standard python types should not be visible links. As
otherwise the whole text is
blue links. You loose the contrast to spot what is important.
… |
* DOC: Improve styling using classes [skip travis] * CI: Touch example [travis skip] * FIX: Revert branch [skip travis]
* DOC: Improve styling using classes [skip travis] * CI: Touch example [travis skip] * FIX: Revert branch [skip travis]
Proof of concept for sphinx-gallery/sphinx-gallery#581. It makes MNE links in code blocks bold, and leaves the other ones (Python, Matplotlib, etc.) as the standard weight.
It also removes
reset-syntax.css
in favor of just having our CSS all instyle.css
.WIP until the SG PR is merged, then I'll remove thecircleci
changes.