Skip to content

Commit

Permalink
docs: Updated to Sphinx 8 and DocSearch v3
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Oct 15, 2024
1 parent 71f4c7f commit 9199db2
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 202 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4

- name: Build documentation
uses: ammaraskar/sphinx-action@6.2.1
uses: ammaraskar/sphinx-action@8.0.2
with:
docs-folder: "docs/"

Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2

build:
os: "ubuntu-22.04"
os: "ubuntu-24.04"
tools:
python: "3.11"
python: "3.12"

sphinx:
builder: dirhtml
Expand Down
43 changes: 0 additions & 43 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,46 +98,3 @@
.rst-content .line-block {
margin-bottom: 0.5em;
}

.wy-side-nav-search {
margin: 0px; /* override unfitting bottom margin */
width: auto; /* override fixed 300px width */
text-align: left; /* override center alignment */
}

.wy-nav-top {
display: block; /* override hiding on wide views */
padding: 0px; /* override unwanted padding */
line-height: normal;/* override 50px */
max-width: 800px; /* matches content max width */
}

.wy-nav-top i {
float: none; /* override left float */
vertical-align: middle;
padding-top: 0px; /* override inheriting padding */
visibility: hidden;
}

@media screen and (max-width: 768px) {
.wy-nav-top i {
visibility: visible;
}
}

.wy-side-nav-search input[type=text] {
vertical-align: middle !important; /* override top alignment */
}

.wy-side-nav-search > a {
margin-left: 5px;
margin-bottom: 0px; /* override unwanted margin */
}

/* more generic rule (theme only applies to div.version) */
.wy-side-nav-search > .version {
color: rgba(255,255,255,0.3);
}
.wy-side-nav-search > div {
float: right;
}
Loading

0 comments on commit 9199db2

Please sign in to comment.