diff --git a/docs/contribute/setup.md b/docs/contribute/setup.md index da98e87e3b..956422b5cf 100644 --- a/docs/contribute/setup.md +++ b/docs/contribute/setup.md @@ -80,6 +80,14 @@ They will be placed in a `docs/_build/html` folder. If the docs have already been built, it will only build new pages that have been updated. You can open one of the HTML files there to preview the documentation locally. +Alternatively, you can invoke the built-in Python [http.server](https://docs.python.org/3/library/http.server.html#module-http.server) with: + +```console +$ python -m http.server -d _build/html/ +``` + +This will print a local URL that you can open in a browser to explore the HTML files. + ### Change content and re-build Now that you've built the documentation, edit one of the source files to see how the documentation updates with new builds.