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

Skip to content

Commit 2a2ab56

Browse files
authored
Merge pull request #27800 from timhoffm/doc-release-notes
Deactivate sidebar for release notes
2 parents fd5f164 + abe4479 commit 2a2ab56

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)