@@ -229,12 +229,55 @@ To modify the SCSS files, follow these steps:
229
229
230
230
1. Navigate to the ``src/ansys_sphinx_theme/assets/styles/ `` directory.
231
231
2. Edit the relevant SCSS files as needed.
232
- 3. Build the SCSS files using the following command:
232
+ 3. Build the library using the following command along with the documentation dependencies :
233
233
234
234
.. code-block :: bash
235
235
236
236
python -m pip install -e ' .[doc]'
237
- stb serve doc/source
237
+
238
+ This command installs the library in editable mode and builds the SCSS files.
239
+
240
+ .. important ::
241
+
242
+ The built SCSS files are stored in the
243
+ ``src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/styles/ `` directory.
244
+ These files are regenerated during each build process, so avoid editing them directly.
245
+
246
+ 4. Build the documentation and serve it locally using any of the following commands:
247
+
248
+ .. tab-set ::
249
+
250
+ .. tab-item :: using Tox (recommended)
251
+
252
+ **Linux/macOS/UNIX/Windows **
253
+
254
+ .. code-block :: bash
255
+
256
+ python -m tox -e doc-serve
257
+
258
+ .. tab-item :: using Makefile
259
+
260
+ .. tab-set ::
261
+
262
+ .. tab-item :: Linux or macOS
263
+
264
+ .. code-block :: bash
265
+
266
+ make -C doc serve
267
+
268
+ .. tab-item :: Windows
269
+
270
+ .. code-block :: bash
271
+
272
+ doc\m ake.bat serve
273
+
274
+ .. tab-item :: using stb
275
+
276
+ **Linux/macOS/UNIX/Windows **
277
+
278
+ .. code-block :: bash
279
+
280
+ stb serve doc/source
238
281
239
282
After the build completes, the documentation is served on ``localhost `` and automatically opens
240
283
in the default web browser. SCSS file changes are monitored, and the documentation rebuilds automatically.
@@ -250,11 +293,7 @@ To modify the SCSS files, follow these steps:
250
293
This command builds the documentation, opens it in the default browser, and monitors the source files for changes to
251
294
trigger automatic rebuilds.
252
295
253
- .. important ::
254
296
255
- The built SCSS files are stored in the
256
- ``src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/styles/ `` directory.
257
- These files are regenerated during each build process, so avoid editing them directly.
258
297
259
298
260
299
Build the documentation
0 commit comments