-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(python): documentation improvements (#2028)
Improved the documentability of generated Python code by reducing the use of forward references through keeping track of types that were already emitted; and by emitting the kind of forward reference that `sphinx`' `autodoc` extension is able to resolve (forward references within a sub-package must be relative to that sub-package; and nested declarations can not use their surrounding type's name in forward references (those must be relative to the surrounding type's context). Additionally, removed duplicated headings that were generated for documentation segments (`see`, `returns`, ...), as those were causing redundant content to appear on the generated docsite. This completely removes `ForwardRef` instances from the Python reference documentation (as was checked by issuing a recursive `grep` on the generated documentation). Fixes #474 Related #1919 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information
1 parent
2046fb7
commit f38b1ce
Showing
11 changed files
with
1,355 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.