-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python API documentation for plugins
Add Python API documentation in the dev section for the JupyterHub plugins. Do a proofreading pass on that rendered documentation and clean up some cross-references. Unfortunately, there doesn't seem to be a way to reference one package installed by Nublado from another package installed by Nublado in a way that Sphinx understands well enough to generate cross-references, so the mention of GafaelfawrAuthenticator in the NubladoSpawner documentation is not a link.
- Loading branch information
Showing
9 changed files
with
119 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
########################## | ||
Internal authenticator API | ||
########################## | ||
|
||
The module ``rubin.nublado.authenticator`` provides an implementation of the `JupyterHub Authenticator API <https://jupyterhub.readthedocs.io/en/stable/reference/authenticators.html>`__ that uses Gafaelfawr_ to authenticate users. | ||
|
||
This authenticator class is registered as ``gafaelfawr`` in the ``jupyterhub.authenticators`` entry point. | ||
|
||
.. automodapi:: rubin.nublado.authenticator | ||
:include-all-objects: |
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,12 @@ | ||
#################### | ||
Python internal APIs | ||
#################### | ||
|
||
Nublado provides a :doc:`REST API </api>` for external users and does not provide Python libraries intended for use outside of Nublado. | ||
The Python API is therefore only of interest to Nublado developers. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
authenticator | ||
spawner |
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 @@ | ||
#################### | ||
Internal spawner API | ||
#################### | ||
|
||
The module ``rubin.nublado.spawner`` provides an implementation of the `JupyterHub Spawner API <https://jupyterhub.readthedocs.io/en/stable/reference/spawners.html>`__ that uses the Nublado controller to manage user labs. | ||
|
||
This authenticator class is registered as ``nublado`` in the ``jupyterhub.spawners`` entry point. | ||
|
||
.. automodapi:: rubin.nublado.spawner | ||
:include-all-objects: |
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
"""JupyterHub spawner that uses the Nublado controller to manage labs.""" | ||
|
||
from ._exceptions import ControllerWebError, InvalidAuthStateError | ||
from ._internals import NubladoSpawner | ||
|
||
__all__ = ["NubladoSpawner"] | ||
__all__ = [ | ||
"ControllerWebError", | ||
"InvalidAuthStateError", | ||
"NubladoSpawner", | ||
] |
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