-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into use-anchor-for-search-previews
- Loading branch information
Showing
23 changed files
with
395 additions
and
97 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
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
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
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,15 @@ | ||
import os | ||
import sys | ||
|
||
sys.path.insert(0, os.path.abspath('.')) | ||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.napoleon', | ||
'sphinx.ext.intersphinx' | ||
] | ||
|
||
# Python inventory is manually created in the test | ||
# in order to avoid creating a real HTTP connection | ||
intersphinx_mapping = {} | ||
intersphinx_cache_limit = 0 | ||
intersphinx_disabled_reftypes = [] |
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,8 @@ | ||
test-ext-napoleon | ||
================= | ||
|
||
.. automodule:: pkg.bar | ||
:members: | ||
|
||
.. automodule:: pkg.foo | ||
:members: |
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,10 @@ | ||
class Bar: | ||
"""The bar.""" | ||
def list(self) -> None: | ||
"""A list method.""" | ||
|
||
@staticmethod | ||
def int() -> float: | ||
"""An int method.""" | ||
return 1.0 | ||
|
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,27 @@ | ||
class Foo: | ||
"""The foo.""" | ||
def do( | ||
self, | ||
*, | ||
keyword_paramtype, | ||
keyword_kwtype, | ||
kwarg_paramtype, | ||
kwarg_kwtype, | ||
kwparam_paramtype, | ||
kwparam_kwtype, | ||
): | ||
"""Some method. | ||
:keyword keyword_paramtype: some param | ||
:paramtype keyword_paramtype: list[int] | ||
:keyword keyword_kwtype: some param | ||
:kwtype keyword_kwtype: list[int] | ||
:kwarg kwarg_paramtype: some param | ||
:paramtype kwarg_paramtype: list[int] | ||
:kwarg kwarg_kwtype: some param | ||
:kwtype kwarg_kwtype: list[int] | ||
:kwparam kwparam_paramtype: some param | ||
:paramtype kwparam_paramtype: list[int] | ||
:kwparam kwparam_kwtype: some param | ||
:kwtype kwparam_kwtype: list[int] | ||
""" |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
* :manpage:`man(1)` | ||
* :manpage:`ls.1` | ||
* :manpage:`sphinx` | ||
* :manpage:`mailx(1) <bsd-mailx/mailx.1>` | ||
* :manpage:`!man(1)` | ||
The :manpage:`cp(1)` | ||
-------------------- | ||
* :manpage:`man(1)` | ||
* :manpage:`ls.1` | ||
* :manpage:`sphinx` | ||
* :manpage:`mailx(1) <bsd-mailx/mailx.1>` | ||
* :manpage:`!man(1)` |
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
Oops, something went wrong.