Skip to content

Commit

Permalink
Merge pull request #10 from choldgraf/stylesheet
Browse files Browse the repository at this point in the history
fixing css warning and blackifying
  • Loading branch information
choldgraf committed Mar 30, 2020
2 parents 9d5172b + 5a11cc7 commit a1c8b58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- run:
name: Build docs to store
command: |
cd docs
make html
sphinx-build -W -b html docs docs/_build/
- store_artifacts:
path: docs/_build/html/
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
# html_static_path = ["_static"]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down
4 changes: 2 additions & 2 deletions sphinx_togglebutton/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def st_static_path(app):

def add_to_context(app, config):
# Update the global context
config.html_context.update({'togglebutton_hint': config.togglebutton_hint})
config.html_context.update({"togglebutton_hint": config.togglebutton_hint})


# This function reads in a variable and inserts it into JavaScript
Expand Down Expand Up @@ -58,7 +58,7 @@ def setup(app):
app.connect("builder-inited", st_static_path)

# Add relevant code to headers
app.add_stylesheet("togglebutton.css")
app.add_css_file("togglebutton.css")

# Add the string we'll use to select items in the JS
# Tell Sphinx about this configuration variable
Expand Down

0 comments on commit a1c8b58

Please sign in to comment.