Skip to content

Commit 30b9f17

Browse files
committed
[REM] extensions: remove the 'switcher' extension
The 'sphinx-tabs' extension is better in every aspect: - Synchronize selected tabs (group tabs feature). - No need for extra `code-block` directive (code tabs feature). - Better looking. - No custom Python, JS, or CSS. task-2787415 X-original-commit: 269173c Part-of: #1689
1 parent 7490630 commit 30b9f17

File tree

4 files changed

+0
-123
lines changed

4 files changed

+0
-123
lines changed

conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@
121121
# Redirection generator
122122
'redirects',
123123

124-
# Code switcher (switcher and case directives)
125-
'switcher',
126-
127124
# Content tabs
128125
'sphinx_tabs.tabs',
129126

extensions/odoo_theme/static/style.scss

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -512,25 +512,6 @@ header.o_main_header {
512512
max-width: 100%;
513513
}
514514

515-
.content-switcher {
516-
.nav-tabs .nav-link.active {
517-
background-color: #f8f8f8;
518-
border-color: #dee2e6 #dee2e6 #f8f8f8;
519-
font-weight: $fw_semibold;
520-
}
521-
522-
.tab-content {
523-
background: $doc_code-bg;
524-
border: 1px $gray-300 solid;
525-
border-top: 0;
526-
527-
div[class^="highlight"] {
528-
border: 0;
529-
margin: 0;
530-
}
531-
}
532-
}
533-
534515
@include media-breakpoint-up(xl) {
535516
width: 100%;
536517
padding-right: 0;

extensions/switcher/__init__.py

Lines changed: 0 additions & 65 deletions
This file was deleted.

extensions/switcher/static/js/switcher.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)