diff --git a/.circleci/config.yml b/.circleci/config.yml index 00fbe35..da9895a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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/ diff --git a/docs/conf.py b/docs/conf.py index 9292089..75e43d2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/sphinx_togglebutton/__init__.py b/sphinx_togglebutton/__init__.py index e45de75..2ece8c4 100644 --- a/sphinx_togglebutton/__init__.py +++ b/sphinx_togglebutton/__init__.py @@ -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 @@ -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