Skip to content

Commit

Permalink
Add dev.css override
Browse files Browse the repository at this point in the history
  • Loading branch information
mhilbrunner committed Jul 11, 2021
1 parent c8d7e0a commit 50edc68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _static/css/dev.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* CSS tweaks that are only added outside ReadTheDocs (i.e. when built locally).
*/

/* Re-add default red boxes around Pygments errors */
.highlight .err {
border: 1px solid #FF0000;
}
3 changes: 3 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@
"css/custom.css",
]

if not on_rtd:
html_css_files.append("css/dev.css")

html_js_files = [
"js/custom.js",
('https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js', {'defer': 'defer'}),
Expand Down

0 comments on commit 50edc68

Please sign in to comment.