-
Notifications
You must be signed in to change notification settings - Fork 211
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
[infra] Move mkdocs
to use poetry as docs
group dep
#1486
Conversation
blocked on #1485 |
Makefile
Outdated
@@ -97,3 +97,9 @@ clean: ## Clean up the project Python working environment | |||
@find . -name "*.pyd" -exec echo Deleting {} \; -delete | |||
@find . -name "*.pyo" -exec echo Deleting {} \; -delete | |||
@echo "Cleanup complete" | |||
|
|||
docs: |
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.
Should we call this one docs-serve
for completeness?
.github/workflows/python-ci-docs.yml
Outdated
- name: Build | ||
working-directory: ./mkdocs | ||
run: mkdocs build --strict | ||
run: make install |
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 will probably slow down the runs of the docs builds (since we install everything), do you have any numbers?
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.
action run for this PR took only 1m 34s
https://github.com/apache/iceberg-python/actions/runs/12623916115?pr=1486
on main this action usually takes ~12m
https://github.com/apache/iceberg-python/actions/workflows/python-ci.yml?query=branch%3Amain
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.
im not sure if this is apple-to-apple.
alternatively, we can add the mkdoc deps as a new poetry group and just install those
poetry install --with docs
mkdocs
to use poetry as docs
group dep
moved to poetry as |
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.
I wasn't aware of the groups function in Poetry, but that seems to fit very nicely here. Thanks @kevinjqliu
Closes #923
docs
group dependenciespoetry add $(cat mkdocs/requirements.txt | grep -v #) --group docs
make docs-install
command to install libraries required to run mkdocsmake docs-serve
command to run mkdocs locallymake docs-build
command to build mkdocs