-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Add Tox environment for documentation preview #642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jorgepiloto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this, @Revathyvenugopal162. Just left one comment for adding this environment to the doc group and renaming it.
tox.ini
Outdated
| python -m build {toxinidir} | ||
| python -m build {toxinidir} | ||
|
|
||
| [testenv:doc-preview] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add this with the rest of the doc environments and rename it serve. This is the usual name:
[testenv:doc-{clean,links,html,pdf,serve}]
skip_install:
clean,serve: true
commands =
...
serve: stb serve "{toxinidir}/{env:BUILD_DIR}/html" --open-browser
jorgepiloto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left one suggestion regarding the deps.
tox.ini
Outdated
| deps= | ||
| serve: sphinx-theme-builder[cli] @ https://github.com/pradyunsg/sphinx-theme-builder/archive/d9f620b1a73839728c95b596343595d3952ec8bf.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required. The build system is already installing the STB tool.
This PR introduces a new Tox environment,
[testenv:doc-serve], to build and serve the documentation locally.