You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will print a local URL that you can open in a browser to explore the HTML files.
147
146
147
+
You can also serve the documentation with live-reload using the following command:
148
+
149
+
```console
150
+
$ tox run -e docs-live
151
+
```
152
+
153
+
This command will build the documentation and watch for any changes to the `doc` folder and rebuild the documentation automatically.
154
+
148
155
### Change content and re-build
149
156
150
157
Now that you've built the documentation, edit one of the source files to see how the documentation updates with new builds.
@@ -162,7 +169,7 @@ These are then built and bundled with the theme (e.g., `scss` is turned into `cs
162
169
To compile the CSS/JS assets with `tox`, run the following command:
163
170
164
171
```console
165
-
$ tox run -e compile
172
+
$ tox run -e compile-assets
166
173
```
167
174
168
175
This will compile all assets and place them in the appropriate folder to be used with documentation builds.
@@ -174,12 +181,14 @@ The `sphinx-theme-builder` will bundle these assets automatically when we make a
174
181
175
182
## Run a development server
176
183
177
-
You can combine the above two actions (build the docs and compile JS/CSS assets) and run a development server so that changes to `src/` are automatically bundled with the package, and the documentation is immediately reloaded in a live preview window.
184
+
You can combine the above two actions (build the docs and compile JS/CSS assets) and run a development server so that
185
+
changes to `src/` are automatically bundled with the package, and the documentation is immediately reloaded in a live preview window.
178
186
179
187
To run the development server with `tox`, run the following command:
180
188
181
189
```console
182
-
$ tox run -e docs-live
190
+
# note the -m flag vs. other commands in this guide
191
+
$ tox run -m docs-live-server
183
192
```
184
193
185
194
When working on the theme, making changes to any of these directories:
0 commit comments