## Documenting
-To work with the documentation, make sure you have `mkdocs` and
-`mkdocs-material` installed on your environment:
+Documentation pages are located under the `docs/` folder.
-```shell
-$ pip install mkdocs mkdocs-material
-```
-
-To spawn the docs server run:
+To run the documentation site locally (useful for previewing changes), use:
```shell
-$ mkdocs serve
+$ nox -s serve
```
## Releasing
nox.options.stop_on_first_error = True
nox.options.reuse_existing_virtualenvs = True
+nox.options.keywords = "not serve"
source_files = ("httpx", "tools", "tests", "setup.py", "noxfile.py")
session.run("mkdocs", "build")
+@nox.session(reuse_venv=True)
+def serve(session):
+ session.install("--upgrade", "mkdocs", "mkdocs-material")
+
+ session.run("mkdocs", "serve")
+
+
@nox.session(python=["3.6", "3.7", "3.8"])
def test(session):
session.install("--upgrade", "-r", "test-requirements.txt")