Add noxfile and workflow to test docsite PRs (#1794)

* add noxfile with mkdocs build session

* add nox build check

* include reusable nox in ci workflow
This commit is contained in:
Don Naro
2024-03-27 18:29:38 +00:00
committed by GitHub
parent 07b8120788
commit dc0e86b823
3 changed files with 48 additions and 0 deletions

20
noxfile.py Normal file
View File

@@ -0,0 +1,20 @@
import nox
@nox.session
def build(session: nox.Session):
"""
Build the AWX Operator docsite.
"""
session.install(
"-r",
"docs/requirements.in",
"-c",
"docs/requirements.txt",
)
session.run(
"mkdocs",
"build",
"--strict",
*session.posargs,
)