Publishing Guide
This guide covers how to publish the AI Agentic Framework documentation and package.
📚 Publishing Documentation
We use GitHub Pages to host the documentation. A GitHub Action is configured to automatically build and deploy the docs whenever you push to the main branch.
Automated Deployment
- Ensure the
.github/workflows/deploy_docs.ymlfile exists in your repository. - Go to your GitHub repository settings: Settings > Pages.
- Under Build and deployment, select Source as
Deploy from a branch. - Select
gh-pagesbranch and/ (root)folder (this branch is created automatically by the action). - Push changes to
main. The action will runpdoc, build the site, and deploy it.
Manual Build
To build the documentation locally:
# Generate API docs
uv run pdoc -o docs/api src/agentic_framework
# The docs are now available in docs/
# You can serve them locally with a simple HTTP server
python -m http.server -d docs
📦 Publishing Package to PyPI
To publish the package to the Python Package Index (PyPI), follow these steps.
Prerequisites
- A PyPI account.
uvinstalled.
Steps
Build the Package
uv buildThis will create
dist/*.whlanddist/*.tar.gzfiles.Publish to PyPI You can use
uvto publish (if configured) ortwine.Using
uv:uv publishUsing
twine(standard method):pip install twine twine upload dist/*Enter Credentials When prompted, enter your PyPI username (
__token__) and your API token as the password.
Versioning
Remember to update the version in pyproject.toml before publishing a new release.