Skip to content

Add comprehensive documentation with Sphinx and GitHub Pages deployment - #6

Merged
asantini29 merged 5 commits into
mainfrom
copilot/add-documentation-to-package
Jan 23, 2026
Merged

asantini29 merged 5 commits into
mainfrom
copilot/add-documentation-to-package

Conversation

Copilot AI commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Adds complete documentation infrastructure including NumPy-style docstrings for all classes and kernels, Sphinx documentation system, and automated GitHub Pages deployment.

Documentation Enhancements

  • kernels.py: Added comprehensive docstrings to 22+ GPU/CPU kernels and helper functions with full parameter descriptions, return types, and implementation notes
  • akima.py: Enhanced all class docstrings (AkimaInterpolant1D, AkimaInterpolant1DMultiDim, AkimaInterpolant1DFlexible) with parameters, attributes, examples, and usage patterns
  • All docstrings follow NumPy documentation style for consistency with scientific Python ecosystem

Sphinx Infrastructure

  • Complete documentation system in docs/ with:
    • API reference auto-generated from docstrings via autodoc + Napoleon
    • Examples page with code snippets covering basic to advanced usage
    • Tutorial integration via nbsphinx (symlinked from examples/tutorial.ipynb)
    • Read the Docs theme for professional appearance
  • Build configuration with intersphinx linking to numpy, numba, and Python docs

Deployment

  • GitHub Actions workflow (.github/workflows/docs.yml) for automatic builds on push to main
  • Deploys to GitHub Pages with proper artifact handling
  • Includes all dependencies (sphinx, sphinx-rtd-theme, nbsphinx, pandoc)

Project Configuration

  • Added [project.optional-dependencies] docs extras in pyproject.toml
  • Updated .gitignore to exclude build artifacts
  • Included docs/README.md with local build instructions

To enable deployment, configure Settings → Pages → Source to "GitHub Actions". Documentation will be available at https://asantini29.github.io/CudAkima/.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • docs.python.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -M html source build (dns block)
  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)
  • numba.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -M html source build (dns block)
  • numpy.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -M html source build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add documentation</issue_title>
<issue_description>Add documentation to the package, both to the class interfaces and the numba functions and kernels. In the documentation page, include the example notebook. add a github workflow to build and deploy the documentation on push.

Modify docstrings and signatures if necessary.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 23, 2026 08:30
Co-authored-by: asantini29 <79840851+asantini29@users.noreply.github.com>
Co-authored-by: asantini29 <79840851+asantini29@users.noreply.github.com>
Co-authored-by: asantini29 <79840851+asantini29@users.noreply.github.com>
Co-authored-by: asantini29 <79840851+asantini29@users.noreply.github.com>
Copilot AI changed the title [WIP] Add documentation to package including examples and workflows Add comprehensive documentation with Sphinx and GitHub Pages deployment Jan 23, 2026
Copilot AI requested a review from asantini29 January 23, 2026 08:42
@asantini29
asantini29 marked this pull request as ready for review January 23, 2026 08:54
@asantini29
asantini29 merged commit 8512493 into main Jan 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation

2 participants