Skip to content

Conversation

@sujen1412
Copy link
Contributor

  • Add NumPy-style docstrings to all main modules:

    • maap.py: Core MAAP client class with all methods documented
    • Result.py: Result, Granule, and Collection classes
    • dps_job.py: DPSJob class for job management
    • Profile.py: User profile management
    • AWS.py: AWS credential management
    • Secrets.py: User secrets management
    • config_reader.py: Configuration management
  • Create Sphinx documentation structure:

    • docs/conf.py: Sphinx configuration with Napoleon for NumPy docstrings
    • docs/index.rst: Main documentation index
    • docs/api/*.rst: API reference pages for all modules
  • Update package init.py with module-level documentation

Documentation follows NumPy docstring format compatible with Sphinx autodoc and napoleon extensions for API documentation generation.

Github Issue: #44

- Add NumPy-style docstrings to all main modules:
  - maap.py: Core MAAP client class with all methods documented
  - Result.py: Result, Granule, and Collection classes
  - dps_job.py: DPSJob class for job management
  - Profile.py: User profile management
  - AWS.py: AWS credential management
  - Secrets.py: User secrets management
  - config_reader.py: Configuration management

- Create Sphinx documentation structure:
  - docs/conf.py: Sphinx configuration with Napoleon for NumPy docstrings
  - docs/index.rst: Main documentation index
  - docs/api/*.rst: API reference pages for all modules

- Update package __init__.py with module-level documentation

Documentation follows NumPy docstring format compatible with Sphinx
autodoc and napoleon extensions for API documentation generation.
@wildintellect
Copy link

Should there be a github action workflow with this to build the site?

@wildintellect
Copy link

Also getting some feedback that no one, even sphinx users write in rst anymore. Could we target md (markdown instead)?
https://myst-parser.readthedocs.io/en/latest/intro.html#enable-myst-in-sphinx

Could also consider using mkdocs which is the popular current choice.

Since Claude was used to do this, shouldn't be a big lift to change.

maap/maap.py Outdated
algorithm_description: Process satellite data
docker_container_url: registry/image:tag
script_command: python run.py
algorithm_params:
Copy link
Member

@grallewellyn grallewellyn Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

algorithm_params field instead needs to be

inputs:
  config: []
  file: []
  positional: []

maap/maap.py Outdated
... 'algorithm_description': 'Processes satellite data',
... 'docker_container_url': 'registry/image:tag',
... 'script_command': 'python run.py',
... 'algorithm_params': [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

algorithm_params instead needs to be "inputs": {'file': [{"name":"test"}], "config": [{"name":"test"}], "positional": [{"name":"test"}]}

Update registerAlgorithm and register_algorithm_from_yaml_file
docstrings to use the correct 'inputs' structure with 'file',
'config', and 'positional' arrays instead of the deprecated
'algorithm_params' format.

Addresses PR review comments from grallewellyn.
- Add .github/workflows/docs.yml for automated doc building and
  deployment to GitHub Pages
- Convert all .rst documentation files to Markdown format
- Add MyST parser to Sphinx configuration for Markdown support
- Add docs/requirements.txt with sphinx, sphinx-rtd-theme, myst-parser
- Add docs/Makefile for local doc builds

Addresses PR feedback from wildintellect requesting GitHub Actions
workflow and Markdown format instead of reStructuredText.
@sujen1412
Copy link
Contributor Author

Addressed comments, please check again.

@grallewellyn grallewellyn self-requested a review December 11, 2025 20:37
Copy link

@wildintellect wildintellect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, let's merge this and generate the website so we can see how it looks.

@sujen1412 sujen1412 merged commit 5f53d4e into develop Dec 19, 2025
2 checks passed
@sujen1412 sujen1412 deleted the claude/document-maap-py-library-01FDnRcUZGCLgBgdFGpzy2a5 branch December 19, 2025 17:23
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.

5 participants