Skip to content
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

doc: use sphinx-autoapi for API reference #1952

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

moe-ad
Copy link
Contributor

@moe-ad moe-ad commented Dec 4, 2024

This PR is related to ansys-internal/pyansys-planning#100. The migration of the API documentation migration is being handled here.

@jorgepiloto jorgepiloto changed the title Feat: first commit that results in sucessful documentation build doc: use sphinx-autoapi for API reference Dec 4, 2024
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.96%. Comparing base (af30b32) to head (7d80e67).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1952      +/-   ##
==========================================
- Coverage   88.37%   85.96%   -2.41%     
==========================================
  Files          89       89              
  Lines       10251    10251              
==========================================
- Hits         9059     8812     -247     
- Misses       1192     1439     +247     

@moe-ad
Copy link
Contributor Author

moe-ad commented Dec 4, 2024

@jorgepiloto, something I need to mention (already discussed with Revathy about this too).
If you try to build with sphinx 7.1.0 (which is the current default on this repo) while having autoapi enabled, the build fails. We narrowed it down to app.confdir being a str object in sphinx 7.1.0 and a path object in sphinx 8.1.3.

In ansys-sphinx-theme 1.2.2 (which is the current default on this repo), the autoapi extension treats app.confdir correctly (as a path object) but using sphinx 7.1.0 will result in an error because of the above reason.

In order words, we need sphinx 8.1.3 to be enforced moving forward.

@jorgepiloto
Copy link
Member

jorgepiloto commented Dec 4, 2024

Thanks for the research, @moe-ad. Then, let's focus on updating the rules for the moment. After that, we can update the examples to Jupytext. This should allow us to revisit the complete set of examples, making sure they run without random failures. Luckly, we can migrate to the latest Sphinx after that and merge this.

@moe-ad moe-ad marked this pull request as ready for review December 13, 2024 15:12
@moe-ad moe-ad force-pushed the feat/migration-from-autodoc-to-autoapi branch from dccf82b to ed2b6e8 Compare December 13, 2024 15:34
@moe-ad moe-ad force-pushed the feat/migration-from-autodoc-to-autoapi branch from a9edf40 to f23c959 Compare December 14, 2024 13:43
@moe-ad moe-ad force-pushed the feat/migration-from-autodoc-to-autoapi branch 3 times, most recently from 6c2b587 to 578e582 Compare December 14, 2024 18:38
@moe-ad moe-ad force-pushed the feat/migration-from-autodoc-to-autoapi branch from 578e582 to c8765df Compare December 14, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants