File: serve.md

package info (click to toggle)
sphinx-theme-builder 0.2.0b2-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 448 kB
  • sloc: python: 2,227; sh: 19; makefile: 3
file content (42 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# `stb serve`

Serve the provided documentation path, with livereload on changes.

## Usage

This start a long-running server with live-reload that watches for changes in
the theme or documentation sources (using {pypi}`sphinx-autobuild`).

When a change is made, it will rebuild the assets of the theme, rebuild the
documentation using Sphinx and reload any open browser tabs that are viewing an
HTML page served by the server.

## Options

### `--builder`

The Sphinx builder to build the documentation with.

Allowed values: `html` (default), `dirhtml`

### `--host`

hostname to serve documentation on (default: 127.0.0.1)

### `--port`

The port to start the server on. Uses a random free port by default.

Allowed values: INTEGER

### `--pdb`

Run pdb if the Sphinx build fails with an exception.

### `--open-browser / --no-open-browser`

Open the browser after starting live-reload server. This is done by default.

### `--override-theme / --no-override-theme`

Override the `html_theme` value set in `conf.py`. This is not done by default.