Skip to content

Custom CSS file gets overwritten #149

@hagenw

Description

@hagenw

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions