-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add contents entries for domain objects #10807
Merged
Merged
Changes from 11 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
90c473f
Remove `traverse_in_section()`, use `node.findall()`
AA-Turner 22b639d
Update type signature for `build_toc()`
AA-Turner 9028cae
Factor out `_make_anchor_name()`
AA-Turner 6f64b9b
Add processing for signature description nodes
AA-Turner 70d8da9
Support content in `py:module` and `js:module`
AA-Turner 64d5993
Add CHANGES entry
AA-Turner 241b556
Add tests
AA-Turner a3aa81b
Remove class name from Python methods
AA-Turner 770df1b
Update test for output format
AA-Turner 610c73f
Remove `literal` styling
AA-Turner 61edbf6
Remove `literal` styling
AA-Turner 1d578d2
Update documentation for modules
AA-Turner 7c29739
Add configuration for ToC qualification control
AA-Turner ee09e2c
Delegate name formatting to domains
AA-Turner 8d877f1
Fix for objects which do not call `ObjectDescription.run()`
AA-Turner 081eeac
Typo
AA-Turner 27bbd09
Ignore W503
AA-Turner 285ae68
Reinstate `literal` styling
AA-Turner a4bacc0
Merge branch '5.x' into auto-toc
AA-Turner 6acced9
Update parent rendering control
AA-Turner a8e6196
Update documentation
AA-Turner a20ba85
Implement RST domain
AA-Turner 3a4778f
Add the `noindexentry` and `noindex` flags to more domains
AA-Turner b9b24ff
Process entries per signature node
AA-Turner 0ba7b5c
Indentation
AA-Turner ac58158
Update test
AA-Turner c35ce00
Fix `_object_hierarchy_parts` for invalid input
AA-Turner 12bd9ec
Merge branch '5.x' into auto-toc
AA-Turner ac47b35
Merge branch '5.x' into auto-toc
AA-Turner 08775b6
Merge branch '5.x' into auto-toc
AA-Turner fc82407
Fix parens dot
AA-Turner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
test-domain-objects | ||
=================== | ||
|
||
.. py:module:: hello | ||
|
||
.. py:function:: world() -> str | ||
|
||
Prints "Hello, World!" to stdout | ||
|
||
.. py:class:: HelloWorldPrinter | ||
|
||
Controls printing of hello world | ||
|
||
.. py:method:: set_language() | ||
|
||
Sets the language of the HelloWorldPrinter instance | ||
|
||
.. py:attribute:: output_count | ||
|
||
Count of outputs of "Hello, World!" | ||
|
||
.. py:method:: print_normal() | ||
:async: | ||
:classmethod: | ||
|
||
Prints the normal form of "Hello, World!" | ||
|
||
.. py:method:: print() | ||
|
||
Prints "Hello, World!", including in the chosen language | ||
|
||
.. py:function:: exit() | ||
:module: sys | ||
|
||
Quits the interpreter | ||
|
||
.. js:function:: fetch(resource) | ||
|
||
Fetches the given resource, returns a Promise |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. toctree:: | ||
:numbered: | ||
:caption: Table of Contents | ||
:name: mastertoc | ||
|
||
domains |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Glad to see this fixed here too. I didn't look into it too deeply, but should
PyModule
just use the same mechanisms as the other Py* classes (subclassing fromPyObject
)?Also I suppose the docs should be updated for this.
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.
Was this addressed (documenting the change to
py:module
)?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.
Yes:
A