Docs deploy workflow fix#15
Conversation
|
Cursor Agent can help with this pull request. Just |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Review Summary
This PR successfully addresses the documentation workflow issues and placeholder replacements. The changes are well-structured and implement proper CI/CD practices.
✅ Approved Changes
GitHub Actions Workflow Improvements:
- ✅ Added
pull_requesttrigger for documentation build validation - ✅ Upgraded Python version from 3.12 to 3.13 (supported in pyproject.toml)
- ✅ Switched to
hynek/setup-cached-uv@v2for better caching and performance - ✅ Proper conditional deployment guards ensuring Pages deployment only occurs on main branch pushes
- ✅ Correct permissions configuration (
pages: write,id-token: write)
Documentation Updates:
- ✅ Systematic replacement of
PACKAGE_NAMEplaceholders with correct values:extended-data-typesfor repository/project referencesextended_data_typesfor Python import statements
- ✅ Updated quickstart example uses valid
json_utils.encode_jsonfunction (verified in__init__.py) - ✅ Consistent documentation structure maintained across all files
Infrastructure:
- ✅ Added
docs/_build/to.gitignoreto prevent build artifacts from being committed
🎯 Key Strengths
- Proper CI/CD Design: The workflow now validates documentation builds on PRs while only deploying from main branch
- Version Compatibility: Python 3.13 upgrade is properly supported by the project configuration
- Performance Optimization: Using cached uv setup will improve build times
- Code Accuracy: Documentation examples reference actual exported functions from the package
📋 Summary
This PR effectively resolves issue #6 by fixing the documentation deployment workflow and replacing all placeholder content with accurate project-specific information. The implementation follows GitHub Actions best practices and maintains proper separation between validation (PRs) and deployment (main branch only).
Recommendation: ✅ APPROVE - Ready for merge.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
| path: 'docs/_build/html' | ||
|
|
||
| deploy: | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' |
There was a problem hiding this comment.
Manual workflow dispatch cannot trigger deployment
The workflow_dispatch trigger is included in the workflow, but the conditional guards on the Setup Pages, Upload artifact, and deploy job only check for github.event_name == 'push'. When manually triggered via workflow_dispatch, the event name is 'workflow_dispatch', causing all deployment steps to be skipped. This breaks the ability to manually deploy documentation. The condition needs to also include github.event_name == 'workflow_dispatch' for manual deploys to work.
Pull Request
Summary
Fixes the
Deploy Documentation to PagesGitHub Actions workflow and updates documentation content placeholders.Related Issues
Type of Change
Changes Made
.github/workflows/docs.yml:pull_requesttrigger to validate documentation builds on PRs.3.13.hynek/setup-cached-uvfor improved caching and build speed.pages: writeandid-token: writepermissions.mainbranch pushes.PACKAGE_NAMEplaceholders: Updated all instances ofPACKAGE_NAMEwithextended-data-types(for repo/project name) orextended_data_types(for Python imports) across documentation files (index.rst,modules.rst,installation.md,quickstart.md,contributing.md).docs/_build/to.gitignore: Prevents documentation build artifacts from being committed.Testing
Test Details
uv run pytestanduvx ruff.Self-Review Checklist
Code Quality
Testing
Documentation
Commits
Screenshots/Videos
Additional Notes
Note
Ensures reliable docs builds and guarded deployments, and aligns docs with the actual package name.
docs.yml: addpull_requesttrigger; upgrade to Python3.13; switch tohynek/setup-cached-uv; gateconfigure-pages, artifact upload, and deploy to only run onpushtomain.PACKAGE_NAMEwithextended-data-types/extended_data_types; updateindex.rst, APIindex.rstandmodules.rst, installation/quickstart examples, and contributing guide.docs/_build/to.gitignoreto exclude Sphinx build artifacts.Written by Cursor Bugbot for commit 76842fc. This will update automatically on new commits. Configure here.