-
Notifications
You must be signed in to change notification settings - Fork 0
overall doc review #210
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
base: main
Are you sure you want to change the base?
overall doc review #210
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #210 +/- ##
==========================================
- Coverage 84.99% 82.98% -2.02%
==========================================
Files 19 19
Lines 1193 1193
==========================================
- Hits 1014 990 -24
- Misses 179 203 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
File Operations | ||
=============== | ||
=================== | ||
Run file operations |
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.
I put the 00 and 01 prefixes in the file names of the examples in this section in an attempt to reorder them so that the "Run file operations" was first and "Run file operations asynchronously" was second. However, this did not reorder them. If I was correct in assuming that this would be the preferred order, please make whatever changes are necessary to accomplish this.
await client.start() | ||
|
||
######################################## | ||
# Create a AsyncDataTransferApi instance |
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.
Did you intend the use of this ReStructuredText formatting here? In the rendered doc, it looks odd within the code block.
@@ -27,7 +27,7 @@ | |||
Set and query permissions | |||
========================= | |||
|
|||
Example script to set and query permissions on files and |
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 ReStructuredText formatting within the script also looks odd in the rendered documentation and perhaps should be changed:
###################################
# Create a DataTransferApi instance
# =================================
@@ -62,7 +62,7 @@ def main( | |||
assert user_token is not None | |||
|
|||
########################## | |||
# Create a Client instance | |||
# Create a client instance |
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 ReStructuredText formatting within the script also looks odd in the rendered documentation and perhaps should be changed.
@@ -49,8 +47,8 @@ | |||
from typing_extensions import Annotated | |||
|
|||
################################################### | |||
# Necessary imports | |||
# ================= | |||
# Perform necessary imports |
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.
Given that this code block has a heading, put a heading before the preceding code block? This would allow the reader to use the right pane to jump to either of the two subheadings.
@@ -169,7 +167,7 @@ def main( | |||
|
|||
log.info("Connecting to the data transfer service client..") | |||
############################## | |||
# Create a ``client`` instance | |||
# Create a client instance |
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 ReStructuredText formatting within the script also looks odd in the rendered documentation and perhaps should be changed.
@@ -83,7 +83,7 @@ Raw testing | |||
^^^^^^^^^^^ | |||
|
|||
If required, from the command line, you can call style commands like | |||
`ruff`_. You can also call unit testing commands like `pytest`_. | |||
`Ruff`_. You can also call unit testing commands like `pytest`_. |
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.
We should respect the capitalization that the creators use for the name.
@@ -27,7 +27,7 @@ | |||
Set and query permissions | |||
========================= | |||
|
|||
Example script to set and query permissions on files and | |||
This example script sets and queries permissions on files and |
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.
It seems odd to me that so many sections only have one example. Is this because more are to be added soon? If not, should we come up with ways of grouping them?
@@ -20,7 +20,7 @@ | |||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
# SOFTWARE. | |||
|
|||
"""This module provides utilities for configuring OpenTelemetry (Otel) settings for the Ansys HPS Data Transfer Client. | |||
"""Provides utilities for configuring OpenTelemetry (Otel) settings for the Ansys HPS Data Transfer Client. |
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.
In the doc, the "Module detail" section isn't formatted correctly.
verify: Union[bool, str], optional | ||
timeout : float, default: 10.0 | ||
Timeout in seconds. | ||
verify: Union[bool, str] |
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.
The Returns section for this class is formatted oddly in the documentation. I removed the colon after Returns but pre-commit "fixed" it since it said the removal was an error. At the bottom of this page in the doc, there is also a "log" entry that appears to be a link but doesn't do anything. I'm not sure where that is coming from.
@@ -535,7 +535,7 @@ async def _monitor(self): | |||
|
|||
|
|||
class Client(ClientBase): | |||
"""Provide the Python client to the HPS data transfer APIs. | |||
"""Provides the Python client to the HPS data transfer APIs. |
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.
The example for this class isn't formatted to render properly in the doc.
@@ -19,7 +19,7 @@ | |||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
# SOFTWARE. | |||
"""This module provides the base class for all client and server HPS-related errors.""" | |||
"""Provides the base class for all client and server HPS-related errors.""" |
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.
In the Summary for the exceptions, four of them have the same description: "Provides client-side related errors." Is this what you want?
Performing overall doc review post-release.
I can't find the source for the index page of the "API reference" section to edit it to reflect the text we currently use. Where is it coming from? Also, there are a lot of descriptions missing from this section, especially in regard to attribute tables.
I moved the default to where the data type of a parameter is defined. However, the format isn't quite what usually shows. The default and often the value are in bold.