Skip to content

Custom CSS issue #147

@GBrachetta

Description

@GBrachetta

Describe the problem

I'm trying to modify the default css and the build doesn't reflect my changes.

My setup is with separate folders for source and build, and I'm using the defaults in conf.py.

However, my modified copybutton.css file is not built.

If I create any other file, say test.css, that one is indeed built.

Seems like the build process executes my modified file before the original one, so mine gets overwritten?

Link to your repository or website

No response

Steps to reproduce

  1. Add modified copybutton.css to source/_static.
  2. Add a test file test.css to same location.
  3. Create HTML either with make html or sphinx-autobuild source build/html.
  4. The file test.css is present in build/html/_static.
  5. The modified copybutton.css is not, just the default one.
  6. There are no error messages in the terminal.

The version of Python you're using

3.9.9

Your operating system

MacOS Monterey

Versions of your packages

[...]
Sphinx==4.3.1
sphinx-autobuild==2021.3.14
sphinx-copybutton==0.4.0
[...]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions