Skip to content

Commit afc563a

Browse files
author
joel@joellee.org
committed
feat: add docs
1 parent 73df32a commit afc563a

File tree

9 files changed

+101
-31
lines changed

9 files changed

+101
-31
lines changed

docs/source/api/api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
API
2+
======
3+
4+
.. autoclass:: gotrue._async.api.AsyncGoTrueAPI
5+
:inherited-members:
6+

docs/source/api/client.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Client
2+
======
3+
4+
The entrypoint to the library is the Client class. To interact with the Gotrue API, you make an instance of this class.
5+
6+
7+
.. autoclass:: gotrue.AsyncGoTrueClient
8+
:members:
9+
:inherited-members:

docs/source/api/index.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
API Reference
2+
=============
3+
4+
.. note::
5+
The library offers both synchronous and asynchronous clients.
6+
Note that the synchronous and asynchronous classes all provide the exact same interface.
7+
Only the async client and it's methods are documented here.
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: API Reference:
12+
13+
Client <client>
14+
API <api>

docs/source/conf.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,29 @@
1717
# -- Project information -----------------------------------------------------
1818

1919
project = "gotrue"
20-
copyright = "2021, Joel Lee"
21-
author = "Joel Lee"
20+
copyright = (
21+
"2022, Anand Krishna, Daniel Reinón García, Joel Lee, Leynier Gutiérrez González"
22+
)
23+
author = "Anand Krishna, Daniel Reinón García, Joel Lee, Leynier Gutiérrez González"
2224

2325
# -- General configuration ---------------------------------------------------
2426

2527
# Add any Sphinx extension module names here, as strings. They can be
2628
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2729
# ones.
28-
extensions = []
30+
extensions = [
31+
"sphinx.ext.autodoc",
32+
"sphinx.ext.napoleon",
33+
"sphinx.ext.extlinks",
34+
]
2935

3036
# Add any paths that contain templates here, relative to this directory.
3137
templates_path = ["_templates"]
3238

3339
# List of patterns, relative to source directory, that match files and
3440
# directories to ignore when looking for source files.
3541
# This pattern also affects html_static_path and html_extra_path.
36-
exclude_patterns = []
42+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
3743

3844
# -- Options for HTML output -------------------------------------------------
3945

docs/source/gotrue.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
gotrue package
2+
==============
3+
4+
Submodules
5+
----------
6+
7+
gotrue.constants module
8+
-----------------------
9+
10+
.. automodule:: gotrue.constants
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
gotrue.exceptions module
16+
------------------------
17+
18+
.. automodule:: gotrue.exceptions
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
gotrue.helpers module
24+
---------------------
25+
26+
.. automodule:: gotrue.helpers
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
gotrue.http\_clients module
32+
---------------------------
33+
34+
.. automodule:: gotrue.http_clients
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
gotrue.types module
40+
-------------------
41+
42+
.. automodule:: gotrue.types
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
Module contents
48+
---------------
49+
50+
.. automodule:: gotrue
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Welcome to gotrue's documentation!
1111
:maxdepth: 2
1212
:caption: Contents:
1313

14-
usage/client
15-
usage/admin
14+
API Reference </api/index>
15+
Examples </examples/index>
1616

1717

1818

docs/source/modules.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
gotrue-py
2+
=========
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
gotrue

docs/source/usage/admin.rst

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/source/usage/client.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)