-
Notifications
You must be signed in to change notification settings - Fork 48
Documentation API description #1141
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
41a66fa
Update conf.py
lee1043 adf7510
Update and rename utils.rst to api.rst
lee1043 837733c
Merge pull request #1142 from PCMDI/lee1043-patch-2
lee1043 61ff114
Update resources.rst
lee1043 b3f3ca4
Update dev.yml
lee1043 9162158
Update conf.py
lee1043 368d278
Update conf.py
lee1043 78259e5
Update documentation.yaml
lee1043 0a2f881
Update conf.py
lee1043 82f68ae
Update documentation.yaml
lee1043 9b75c64
Update documentation.yaml
lee1043 b935330
Update api.rst
lee1043 92d8eeb
Update api.rst
lee1043 de4b4a9
remove readthedocs components
lee1043 9ff48bf
add import pcmdi_metrics
lee1043 1591361
run only when PR merged; add steps to get pcmdi_metrics installed so …
lee1043 f5b9c6e
refer dev.yml when generating conda env
lee1043 02825d6
update
lee1043 a57d7cd
combined to build_workflow.yml
lee1043 3540742
clean up
lee1043 901fd59
orgarnize functions into categories
lee1043 bf3d378
separate ci.yml from dev.yml to make lighter env for build
lee1043 5dc94cb
add docstrings
lee1043 f3468f6
add more functions to the list
lee1043 0130387
add docstrings
lee1043 867620c
add more functions to the list
lee1043 d99cf17
rewrite docstring to scipy style
lee1043 9ea275a
clean up
lee1043 79e5355
test
lee1043 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| API Reference | ||
| ============= | ||
|
|
||
| API Functions for Developpers | ||
| ----------------------------- | ||
|
|
||
| Below is a list of some API functions that are available in ``pcmdi_metrics.utils`` for developpers. | ||
|
|
||
| .. autosummary:: | ||
| :toctree: generated/ | ||
|
|
||
| check_daily_time_axis | ||
| check_monthly_time_axis | ||
| create_land_sea_mask | ||
| apply_landmask | ||
| apply_oceanmask | ||
| regrid | ||
|
|
||
| .. automodule:: pcmdi_metrics.utils | ||
| :members: check_daily_time_axis, check_monthly_time_axis, create_land_sea_mask, apply_landmask, apply_oceanmask, regrid | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,5 +7,5 @@ Resources | |
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| utils | ||
| resources_legacy | ||
| api | ||
| resources_legacy | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Actually, you will need the
pushstill becausepushis considered merging a pull request tomainvia a commit.A few issues I found:
documentation.yamlwill rebuild the documentation every time, which overwrites the latest stable version -- set this job to only run whenpushis initiated (example in e3sm_diags)sphinx-multiversionwhich involves a complex setup processOther suggestions:
documentation.yamlintobuild_workflow.yamlby creating a separatepublish-docsjob that only runs withpush(example in e3sm_diags)