Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abe4479

Browse files
committed
Deactivate sidebar for release notes
The release note page is only a structured collection of links to sub-pages. The sidebar would repeat all the titles of the sub-pages and thus basically repeat all the content of the page. Even worse, it does not contain the version sectioning structure of the release notes page itself. To keep the layout the sidebar gets one empty dummy section. If we leave the sidebar completely empty, it will be deactivated and change the layout of the page. Related to #27690 (comment)
1 parent 810a43b commit abe4479

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/_templates/empty_sidebar.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="sidebar-empty"></div>

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,10 @@ def js_tag_with_cache_busting(js):
536536
"cheatsheet_sidebar.html",
537537
"donate_sidebar.html",
538538
],
539+
# no sidebar for release notes, because that page is only a collection of links
540+
# to sub-pages. The sidebar would repeat all the titles of the sub-pages and
541+
# thus basically repeat all the content of the page.
542+
"users/release_notes": ["empty_sidebar.html"],
539543
# '**': ['localtoc.html', 'pagesource.html']
540544
}
541545

0 commit comments

Comments
 (0)