-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add a local build-docs make target #1264
base: main
Are you sure you want to change the base?
Conversation
elliotgunton
commented
Nov 13, 2024
- Make it easier to check doc changes locally before making a PR
- Also removed deprecated options in mkdocs.yml
* Make it easier to check doc changes before making a PR * Also remove deprecated options in mkdocs.yml Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1264 +/- ##
=====================================
Coverage 86.2% 86.2%
=====================================
Files 60 60
Lines 4113 4113
Branches 660 660
=====================================
Hits 3547 3547
Misses 393 393
Partials 173 173 ☔ View full report in Codecov by Sentry. |
@@ -124,6 +124,11 @@ init-files: | |||
examples: ## Generate documentation files for examples | |||
@(cd docs && poetry run python generate.py) | |||
|
|||
.PHONY: build-docs | |||
build-docs: ## Generate (and host) documentation locally | |||
@python -m pip install --exists-action=w --no-cache-dir -r docs/requirements.txt |
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.
Would it be worth making a separate venv for this so we don't accidentally disrupt the Poetry one?
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.
Not worth the effort for now as it's not supported natively by poetry https://stackoverflow.com/questions/70739858/how-to-create-a-brand-new-virtual-environment-or-duplicate-an-existing-one-in-po