Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix up sphinx tabs 馃寶 #2045

Merged
merged 1 commit into from Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 19 additions & 15 deletions docs/_static/custom.css
Expand Up @@ -302,32 +302,36 @@ div.contents.local.topic > ul > li > ul {
margin-top: 0;
}

.sphinx-tabs .sphinx-menu a.item {
color: #c77c11 !important;
[role="tablist"] {
border-color: #eee;
}

.sphinx-tabs .sphinx-menu a.item:hover{
color: #f0ad4e !important;
.sphinx-tabs-panel {
border-color: #eee;
padding: 4px 1rem;
}

.sphinx-tabs .sphinx-menu {
border-bottom-color: #eee !important;
.sphinx-tabs-tab {
top: 2px;
border-color: #eee;
color: #c77c11;
}

.sphinx-tabs .sphinx-menu a.active.item {
border-color: #eee !important;
.sphinx-tabs-tab[aria-selected="true"] {
border-color: #eee;
}

.sphinx-tab {
border-color: #eee !important;
.sphinx-tabs-tab[aria-selected="false"]:hover {
color: #f0ad4e;
text-decoration: underline;
}

.sphinx-tab.tab.active {
background-color: rgb(245,245,245);
.sphinx-tabs-tab:focus {
z-index: 0;
}

.sphinx-tabs .sphinx-menu a.active.item {
background-color: rgb(245,245,245) !important;
.sphinx-tabs-panel .highlight-python {
margin: 4px 0;
}

div.note, pre {
Expand Down Expand Up @@ -363,4 +367,4 @@ div.highlight > pre {
/* TODO: remove once alabaster is updated */
span.descname, span.descclassname {
font-size: 0.95em;
}
}
3 changes: 1 addition & 2 deletions requirements/docs
Expand Up @@ -6,5 +6,4 @@ pygments
pygments-style-github
sphinx
sphinx_rtd_theme
# NOTE(vytas): pin until we figure out how to deal with the dark mode.
vytas7 marked this conversation as resolved.
Show resolved Hide resolved
sphinx-tabs < 3.3.0
sphinx-tabs
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -400,7 +400,7 @@ commands =
basepython = python3.8
deps = -r{toxinidir}/requirements/docs
commands =
sphinx-build -W -E -b html docs docs/_build/html []
sphinx-build -j auto -W -E -b html docs docs/_build/html []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shaved 10s off my local build time, so thought I'd just leave it in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually use the makefile


[testenv:towncrier]
deps = -r{toxinidir}/requirements/docs
Expand Down