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

Including documentation from non-public modules. #2009

Open
moe-ad opened this issue Jan 13, 2025 · 1 comment
Open

Including documentation from non-public modules. #2009

moe-ad opened this issue Jan 13, 2025 · 1 comment
Assignees

Comments

@moe-ad
Copy link
Contributor

moe-ad commented Jan 13, 2025

In versions of the api reference that used sphinx-apidoc, documentation from private modules were being included via python domain directives. The 2 occurrences of this include:

The above logic works because apidoc executes imports, so it is still able to resolve the location of the documented python objects even though the */gate/ folder is excluded from the api documentation.

Due to switching to autoapi, this logic will not work when using equivalent autoapi directives because autoapi parses files and never executes imports, making it unable to resolve the location of the python objects.

This issue should address the best way forward to solve this problem.

@PProfizi
Copy link
Contributor

I think we should move the referenced objects to the core sub-package. The locations HAVE to be documented and available publicly as it is a cornerstone of how DPF works.
As for error, I think error types should be public too and documented as we then would be able to add explanations and examples to their docstrings.

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

No branches or pull requests

2 participants