File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ Custom CSS for stderr stream output.
3
+ */
4
+
5
+ .stderr {
6
+ background-color : # FCC ;
7
+ }
Original file line number Diff line number Diff line change 41
41
"repo" : "jupyter/jupyter-sphinx" ,
42
42
},
43
43
}
44
+ html_static_path = ["_static/custom.css" ] # css overrides for Alabaster theme
Original file line number Diff line number Diff line change @@ -251,10 +251,13 @@ produces:
251
251
252
252
print("hello, world!", file=sys.stderr)
253
253
254
- .. warning ::
254
+ .. note ::
255
+ To `adjust the CSS <https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html >`_
256
+ of the ``stderr `` stream, use the ``stderr `` class. If you are using the default
257
+ Sphinx theme, for example, add the following
258
+ `custom CSS <https://alabaster.readthedocs.io/en/latest/customization.html#custom-stylesheet >`_:
259
+ ``.stderr {background-color: #FCC} ``.
255
260
256
- Note that output written to ``stderr `` is not displayed any differently than output written
257
- to ``stdout ``.
258
261
259
262
Controlling the execution environment
260
263
-------------------------------------
You can’t perform that action at this time.
0 commit comments