I tried to add a custom.css file as described in the documentation with:
html_static_path = ['_static']
html_css_files = ['css/custom.css']
But the CSS files are imported in the wrong order in the resulting HTML header and custom.css gets overwritten by jupyter-sphinx.css:
<head>
<!--[...]-->
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/copybutton.css" type="text/css" />
<link rel="stylesheet" href="_static/css/custom.css" type="text/css" />
<link rel="stylesheet" href="_static/jupyter-sphinx.css" type="text/css" />
<!--[...]-->
</head>
I tried to add a
custom.cssfile as described in the documentation with:But the CSS files are imported in the wrong order in the resulting HTML header and
custom.cssgets overwritten byjupyter-sphinx.css: