-
Notifications
You must be signed in to change notification settings - Fork 6
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
Write Agent documentation best practices #221
Conversation
I've opened this as a draft for the moment. I've written up the best practices we discussed the other day. I tried applying them to the Aggregator Agent, and have tried organizing the Agent Reference page for the Aggregator a bit. One thing we didn't touch on really was the structure of these pages, but I'd also like to standardize these a bit, especially when it comes to things like the config examples and Agent API sections. I think presenting agent information in a consist way will be helpful for users trying to quickly find reference material. Thoughts on the structure I've applied to the Aggregator Agent page? My hope is to get a bit of feedback on this before updating the other core Agents' pages. socs Agent pages I used a bit for reference: |
aggregator.py:docstring of ocs.agent.aggregator.g3_cast:5: WARNING: Definition list ends without a blank line; unexpected unindent.
This follows the new guidelines for best practices in documenting tasks/processes. This renames start_aggregate to record to match the registered task name in ocs. Mark the stop process (also renamed) and other methods as private where appropriate.
Headings under "Configure File Examples" were inconsistent across Agents, and not all Agents had :latest listed as a Docker tag.
21b1bb3
to
2062087
Compare
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.
This looks great. Minor stuff inline.
Description
There was a long discussion in #13 about documenting the best practices for writing Agent Task/Process documentation. This attempts to capture the result of that discussion and document the requirements for writing Task/Process docs.
In addition to the example added to the Agents page of the developers guide (which itself needs some attention soon) I've applied these practices to the Aggregator Agent. Part of this started resolving issues in #138, so I've tried to address everything there too.
Motivation and Context
Fixes #13
How Has This Been Tested?
Not yet tested, should be read by someone else.
Types of changes
Checklist:
develop
branch.