Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

overall doc review #210

wants to merge 5 commits into from

Conversation

PipKat
Copy link
Member

@PipKat PipKat commented Apr 24, 2025

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.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Apr 24, 2025
@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.98%. Comparing base (6323797) to head (c1ab437).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

File Operations
===============
===================
Run file operations
Copy link
Member Author

@PipKat PipKat Apr 24, 2025

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
Copy link
Member Author

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
Copy link
Member Author

@PipKat PipKat Apr 24, 2025

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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`_.
Copy link
Member Author

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
Copy link
Member Author

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.
Copy link
Member Author

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]
Copy link
Member Author

@PipKat PipKat Apr 24, 2025

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.
Copy link
Member Author

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."""
Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants