-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4293998
commit eb1b6ba
Showing
17 changed files
with
1,647 additions
and
858 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
.. | ||
Copyright (c) 2021 Pradyun Gedam | ||
Licensed under Creative Commons Attribution-ShareAlike 4.0 International License | ||
SPDX-License-Identifier: CC-BY-SA-4.0 | ||
=========== | ||
Admonitions | ||
=========== | ||
|
||
Sphinx provides several different types of admonitions. | ||
|
||
``topic`` | ||
========= | ||
|
||
.. topic:: This is a topic. | ||
|
||
This is what admonitions are a special case of, according to the docutils | ||
documentation. | ||
|
||
``admonition`` | ||
============== | ||
|
||
.. admonition:: The one with the custom titles | ||
|
||
It's got a certain charm to it. | ||
|
||
``attention`` | ||
============= | ||
|
||
.. attention:: | ||
|
||
Climate change is real. | ||
|
||
``caution`` | ||
=========== | ||
|
||
.. caution:: | ||
|
||
Cliff ahead: Don't drive off it. | ||
|
||
``danger`` | ||
========== | ||
|
||
.. danger:: | ||
|
||
Mad scientist at work! | ||
|
||
``error`` | ||
========= | ||
|
||
.. error:: | ||
|
||
Does not compute. | ||
|
||
``hint`` | ||
======== | ||
|
||
.. hint:: | ||
|
||
Insulators insulate, until they are subject to ______ voltage. | ||
|
||
``important`` | ||
============= | ||
|
||
.. important:: | ||
|
||
Tech is not neutral, nor is it apolitical. | ||
|
||
``note`` | ||
======== | ||
|
||
.. note:: | ||
|
||
This is a note. | ||
|
||
``seealso`` | ||
=========== | ||
|
||
.. seealso:: | ||
|
||
Other relevant information. | ||
|
||
``tip`` | ||
======= | ||
|
||
.. tip:: | ||
|
||
25% if the service is good. | ||
|
||
``todo`` | ||
======== | ||
|
||
.. todo:: | ||
|
||
This needs the ``sphinx.ext.todo`` extension. | ||
|
||
``warning`` | ||
=========== | ||
|
||
.. warning:: | ||
|
||
Reader discretion is strongly advised. | ||
|
||
``versionadded`` | ||
================ | ||
|
||
.. versionadded:: v0.1.1 | ||
|
||
Here's a version added message. | ||
|
||
``versionchanged`` | ||
================== | ||
|
||
.. versionchanged:: v0.1.1 | ||
|
||
Here's a version changed message. | ||
|
||
``deprecated`` | ||
============== | ||
|
||
.. deprecated:: v0.1.1 | ||
|
||
Here's a deprecation message. |
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,10 +1,29 @@ | ||
.. DOWNLOADED FROM sphinx-themes.org, DO NOT MANUALLY EDIT | ||
.. | ||
Copyright (c) 2021 Pradyun Gedam | ||
Licensed under Creative Commons Attribution-ShareAlike 4.0 International License | ||
SPDX-License-Identifier: CC-BY-SA-4.0 | ||
***************** | ||
API documentation | ||
***************** | ||
|
||
``asyncio`` | ||
=========== | ||
Using Sphinx's ``sphinx.ext.autodoc`` plugin, it is possible to auto-generate documentation of a Python module. | ||
|
||
.. tip:: | ||
Avoid having in-function-signature type annotations with autodoc, | ||
by setting the following options: | ||
|
||
.. code-block:: python | ||
# -- Options for autodoc ---------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration | ||
# Automatically extract typehints when specified and place them in | ||
# descriptions of the relevant function/method. | ||
autodoc_typehints = "description" | ||
# Don't show class signature with the class' name. | ||
autodoc_class_signature = "separated" | ||
.. automodule:: asyncio | ||
:members: run, gather, AbstractEventLoop | ||
.. automodule:: urllib.parse | ||
:members: |
Oops, something went wrong.