Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] don't append CSS files to the end of html_static_path list #153

Merged
merged 1 commit into from
Mar 16, 2022

Commits on Mar 11, 2022

  1. [fix] don't append CSS files to the end of html_static_path list

    html_static_path is a list of paths that contain custom static files.  They are
    copied to the output’s _static directory **after** the theme’s static files, so a
    file named default.css will overwrite the theme’s default.css [1]
    
    Without this patch a tabs.css can't be overwritten by the `conf.py` file:
    
       html_static_path = [ 'static/tabs.css', ]
    
    The /static folder from sphinx-tabs needs to be added in front of
    html_static_path since the last item in the list will be written last to
    /_static.
    
    [1] https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_static_path
    
    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    887062b View commit details
    Browse the repository at this point in the history