Skip to content

Commit

Permalink
Merge pull request OSGeo#10954 from rouault/doc_update_for_rtd_3_0_0
Browse files Browse the repository at this point in the history
Doc: use 'version_selector' instead of 'display_version' which is deprecated by sphinx-rtd-theme 3.0.0
  • Loading branch information
rouault authored Oct 7, 2024
2 parents 21ed772 + 5de2b50 commit 37fec09
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/doc_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
ldconfig
popd
- name: Update sphinx-rtd-theme
shell: bash -l {0}
run: |
pip install -U "sphinx-rtd-theme>=3.0.0"
- name: Print versions
shell: bash -l {0}
run: |
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"canonical_url": "https://gdal.org/", # Trailing slash needed to have correct <link rel="canonical" href="..."/> URLs
"analytics_id": "", # Provided by Google in your dashboard
"logo_only": True,
"display_version": True,
"version_selector": True,
"prev_next_buttons_location": "both",
"style_external_links": False,
#'vcs_pageview_mode': '',
Expand Down
16 changes: 0 additions & 16 deletions doc/source/gdal_rtd/static/css/gdal.css
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ a.reference.external::after
text-decoration: none;
}

/* Override wy-nav colors to match company branding */
.wy-side-nav-search, .wy-side-nav-search img, .wy-nav .wy-menu-vertical header, .wy-nav-top, .wy-nav-top img
{
background-color: #28728d;
}

/* center figures and captions */
.rst-content div.figure { text-align: center; }

Expand Down Expand Up @@ -335,13 +329,3 @@ div.horizontal-logos::after {
clear: both;
display: table;
}


/* background of logo area */
div.wy-side-nav-search {
background: white
}

.wy-side-nav-search > div.version {
color: #343131
}

0 comments on commit 37fec09

Please sign in to comment.