-
Notifications
You must be signed in to change notification settings - Fork 8
Add comprehensive Sphinx-compatible documentation #117
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
Add comprehensive Sphinx-compatible documentation #117
Conversation
- 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.
|
Should there be a github action workflow with this to build the site? |
|
Also getting some feedback that no one, even sphinx users write in rst anymore. Could we target md (markdown instead)? 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: |
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.
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': [ |
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.
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.
|
Addressed comments, please check again. |
wildintellect
left a comment
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.
Great, let's merge this and generate the website so we can see how it looks.
Add NumPy-style docstrings to all main modules:
Create Sphinx documentation structure:
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