Prepare for better PST alignment#329
Conversation
✅ Deploy Preview for scientific-python-hugo-theme ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
3ee970c to
168e0fa
Compare
|
When reloading this page, the page flashes light mode and then goes dark: https://deploy-preview-329--scientific-python-hugo-theme.netlify.app/examples/kitchen-sink/ (I have dark mode enabled by default.) I suspect this can be fixed by ensuring that dark.js runs first of all JS. Alternative solution: set root element display to none and change that in the same JS that handles theming. This will definitely mess up the page for people without JS. |
|
Could we render kitchen sink straight into /examples? Otherwise, it takes two clicks to get there: https://deploy-preview-329--scientific-python-hugo-theme.netlify.app/examples/ |
6ac334c to
dd0b841
Compare
|
I aligned the title rendering with PDST, but now there is a gap between the title and text to take care of. Classes |
|
Following on @stefanv comment on the font for the shortcuts, I would like them to follow the pydata-sphinx-theme (pst). In addition to the size being smaller, there are likely other issues. For example, code literals aren't rendered correctly. Here is what the look like with this PR: Here is how they look on the pydata site: This is a separate issue, but I would also like to have the breadcrumbs like pst. And we should consider whether we want to have a section navigation and move on-this-page navigation to the right when we do. If the homepages don't have a lot of text it makes sense to just have an on-this-page navigation. But, for the development guide (https://learn.scientific-python.org/development/) it will need a site navigation menu. That site doesn't currently have on-this-page navigation, but I think it should. Anyway, we can deal with that when we port the development guide over. We should probably move the on-this-page navigation to the left side, since users will be using this site with pydata-sphinx-theme and having to switch which side you are looking on is annoying. At any rate, we can fix the size for now and then come back in a separate PR or two and fix the navigation in general. |
The initial purpose of this PR was to put the scaffolding in place for future PRs. I should have mentioned, but I didn't initially expect the scope to get as big as it did. I called this PR "kitchen sink admonitions" because I was wanted get this |
This is what pydata-sphinx-theme does (see above). |
b46aba8 to
554e902
Compare
|
The fix that I had for spacing out two headers in a row (document that starts with h1 h2 headers didn't quite pan out. Leaving that for another PR. |
|
Reminder to self: update docs that explain how to generate code highlight themes. |
cb7ed3f to
e09d941
Compare
|
e09d941 to
5efe4aa
Compare
perl -pi -e 's:var\(\-\-colorText\):var(\-\-pst\-color\-text\-base\):g' assets/theme-css/content.css perl -pi -e 's:var\(\-\-colorText\):var(\-\-pst\-color\-text\-base\):g' assets/theme-css/posts.css perl -pi -e 's:var\(\-\-colorText\):var(\-\-pst\-color\-text\-base\):g' assets/theme-css/panel.css perl -pi -e 's:var\(\-\-colorText\):var(\-\-pst\-color\-text\-base\):g' assets/theme-css/shortcuts.css sed -i '/\-\-colorText\: /d' assets/theme-css/light-mode.css sed -i '/\-\-colorText\: /d' assets/theme-css/dark-mode.css
perl -pi -e 's:var\(\-\-colorBackground\):var(\-\-pst\-color\-background\):g' assets/theme-css/styles.css sed -i '/\-\-colorBackground\: /d' assets/theme-css/light-mode.css sed -i '/\-\-colorBackground\: /d' assets/theme-css/dark-mode.css
This is from https://github.com/Quansight-Labs/accessible-pygments and is used by the PyData Sphinx Theme.
- Remove divider - Remove `title` and `section-title` classes
5efe4aa to
f16f9ce
Compare
f16f9ce to
b347218
Compare







No description provided.