Skip to content

Commit a1c8b58

Browse files
authored
Merge pull request #10 from choldgraf/stylesheet
fixing css warning and blackifying
2 parents 9d5172b + 5a11cc7 commit a1c8b58

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
- run:
2424
name: Build docs to store
2525
command: |
26-
cd docs
27-
make html
26+
sphinx-build -W -b html docs docs/_build/
2827
2928
- store_artifacts:
3029
path: docs/_build/html/

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
# Add any paths that contain custom static files (such as style sheets) here,
8888
# relative to this directory. They are copied after the builtin static files,
8989
# so a file named "default.css" will overwrite the builtin "default.css".
90-
html_static_path = ["_static"]
90+
# html_static_path = ["_static"]
9191

9292
# Custom sidebar templates, must be a dictionary that maps document names
9393
# to template names.

sphinx_togglebutton/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def st_static_path(app):
1313

1414
def add_to_context(app, config):
1515
# Update the global context
16-
config.html_context.update({'togglebutton_hint': config.togglebutton_hint})
16+
config.html_context.update({"togglebutton_hint": config.togglebutton_hint})
1717

1818

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

6060
# Add relevant code to headers
61-
app.add_stylesheet("togglebutton.css")
61+
app.add_css_file("togglebutton.css")
6262

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

0 commit comments

Comments
 (0)