Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit ed672c6

Browse files
Update documentation for theme changes in project_template index.rst
1 parent eafd290 commit ed672c6

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

  • runestone/common/project_template/_sources

runestone/common/project_template/_sources/index.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,14 @@ Now feel free to modify this file to start creating your own interactive page.
8484
Section 4: Theme
8585
:::::::::::::::::::
8686

87-
You can override the style rules in the default theme by adding css rules to a file named **theme-overrides.css** (the filename is important - this will replace an existing file). Make sure the file's directory is part of the ``html_static_path``. You can do so by placing it in a folder **_static**, then modifying ``html_static_path`` in conf.py to include that folder:
88-
89-
.. code::
90-
91-
html_static_path = runestone_static_dirs() + ['_static']
87+
You can add your own CSS or JS files to every page of a book by modifying ``setup.custom_css_files`` or ``setup.custom_js_files`` in conf.py.
9288

89+
If you want to do more significant changes to the theme, you should copy the files you wish to modify from
90+
the runestone/common/project/template/sphinx_bootstrap to a directory like ``_templates/``. Then make sure
91+
the ``templates_path`` points to them in your conf.py.
9392

94-
If you want to do more significant changes to the theme, you should copy the files in the runestone/common/project/template/sphinx_bootstrap to a directory like ``_templates/my_theme``. Then make sure these values are set in conf.py:
93+
conf.py:
9594

9695
.. code::
9796
98-
html_theme_path = ["_templates"]
99-
html_theme = 'my_theme'
97+
templates_path = ["_templates"]

0 commit comments

Comments
 (0)