-
Notifications
You must be signed in to change notification settings - Fork 356
Standardize template structure in more sections #1184
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| {# This is just used for testing in our documentation #} | ||
| <button>TEST</button> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -305,7 +305,7 @@ function checkPageExistsAndRedirect(event) { | |
| } | ||
|
|
||
| // Populate the version switcher from the JSON config file | ||
| var themeSwitchBtns = document.querySelectorAll("version-switcher__button"); | ||
| var themeSwitchBtns = document.querySelectorAll(".version-switcher__button"); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this change looks unrelated, is it fixing something else?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It un breaks the version switcher i think. I noticed it while doing the work here
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, I just noticed that in our https://pydata-sphinx-theme.readthedocs.io/en/latest/index.html and this seemed like the obvious thing that was wrong |
||
| if (themeSwitchBtns.length) { | ||
| fetch(DOCUMENTATION_OPTIONS.theme_switcher_json_url) | ||
| .then((res) => { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /** | ||
| * The list of in-page TOC links | ||
| */ | ||
| .page-toc { | ||
| .section-nav { | ||
| padding-left: 0; | ||
| border-bottom: none; | ||
|
|
||
| ul { | ||
| padding-left: 1rem; | ||
| } | ||
| } | ||
|
|
||
| // override bootstrap settings | ||
| .nav-link { | ||
| font-size: var(--pst-sidebar-font-size-mobile); | ||
| @include media-breakpoint-up($breakpoint-sidebar-secondary) { | ||
| font-size: var(--pst-sidebar-font-size); | ||
| } | ||
| } | ||
|
|
||
| .onthispage { | ||
| color: var(--pst-color-text-base); | ||
| font-weight: var(--pst-sidebar-header-font-weight); | ||
| margin-bottom: 0.5rem; | ||
| } | ||
| } |
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.
-0.5 on this change; on large screens our navbar is persistent / still visible when scrolling to the end so now there are 2 copies of these icon links on screen at the same time. If the point is to demo start/end positioning, we could put copyright in start and "built with..." items in end?
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.
Ooh good idea