Skip to content

Commit 2f887b5

Browse files
authored
Docs: fix Sphinx warnings for better ReadTheDocs generation (#807)
* Fix list of current features for 3.2.0 * Renamed travis-ci.org icon URLs * Force fixing the warnings in the docs generation * Removed unused folder reference * Added orphean documents into summary. * Fix docstring formatting example in contributing page. * Removed unused argument from documentation * Fix sphinx warning resulting in loss of formatting in RTD. * Force setuptools until pypa/setuptools#3118 is fixed * Prevent linux redirection in travis instructions * Add graphviz/dot command to generate docs frmo Travis
1 parent d4bafd9 commit 2f887b5

File tree

18 files changed

+134
-133
lines changed

18 files changed

+134
-133
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
allow_failures:
2323
- python: "3.11-dev"
2424
before_install:
25-
- python -m pip install --upgrade pip setuptools
25+
- sudo apt-get install graphviz
26+
- python -m pip install --upgrade pip "setuptools<60.9"
2627
- python -m pip install tox coveralls
2728
- if [ "$TOXENV" == "pypy3" ]; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env ; fi
2829
script: tox

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ OAuthLib - Python Framework for OAuth1 & OAuth2
44
*A generic, spec-compliant, thorough implementation of the OAuth request-signing
55
logic for Python 3.6+.*
66

7-
.. image:: https://travis-ci.org/oauthlib/oauthlib.svg?branch=master
8-
:target: https://travis-ci.org/oauthlib/oauthlib
7+
.. image:: https://app.travis-ci.com/oauthlib/oauthlib.svg?branch=master
8+
:target: https://app.travis-ci.com/oauthlib/oauthlib
99
:alt: Travis
1010
.. image:: https://coveralls.io/repos/oauthlib/oauthlib/badge.svg?branch=master
1111
:target: https://coveralls.io/r/oauthlib/oauthlib

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS = -v
5+
SPHINXOPTS = -v -W
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
# Add any paths that contain custom static files (such as style sheets) here,
128128
# relative to this directory. They are copied after the builtin static files,
129129
# so a file named "default.css" will overwrite the builtin "default.css".
130-
html_static_path = ['_static']
130+
#html_static_path = ['_static']
131131

132132
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
133133
# using the given strftime format.

docs/contributing.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,12 @@ the autogenerated documentation read more cleanly:
272272

273273
Consolidated example
274274

275+
.. code-block:: python
276+
275277
def foo(self, request, client, bar=None, key=None):
276278
"""
279+
This method defines framework for `MAC Access Authentication`_ RFC.
280+
277281
This method checks the `key` against the `client`. The `request` is
278282
passed to maintain context.
279283
@@ -283,15 +287,18 @@ Consolidated example
283287
nonce="1336363200:dj83hs9s",
284288
mac="bhCQXTVyfj5cmA9uKkPFx1zeOXM="
285289
286-
.. _`MAC Access Authentication`: https://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01
287-
288290
:param request: OAuthlib request.
289291
:type request: oauthlib.common.Request
290-
:param client: Client object set by you, see ``.authenticate_client``.
291-
:param bar:
292-
:param key: MAC given provided by token endpoint.
292+
:param client: User's defined Client object, see ``.authenticate_client``.
293+
:param bar: Another example.
294+
:param key: Another param.
295+
:return: Explaination of return value and type
296+
297+
.. _`MAC Access Authentication`: https://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01
293298
"""
294299
300+
301+
295302
How pull requests are checked, tested, and done
296303
===============================================
297304

docs/feature_matrix.rst

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ the request.
3030
OAuth 2.0
3131
.........
3232

33-
OAuth 2.0 client and provider support for:
33+
OAuth 2.0 full client and provider supports for:
3434

3535
- `RFC 6749 section-4.1`_: Authorization Code Grant
3636
- `RFC 6749 section-4.2`_: Implicit Grant
@@ -40,23 +40,28 @@ OAuth 2.0 client and provider support for:
4040
- `RFC 6750`_: Bearer Tokens
4141
- `RFC 7009`_: Token Revocation
4242
- `RFC 7636`_: Proof Key for Code Exchange by OAuth Public Clients (PKCE)
43-
- `RFC 8628`_: OAuth2.0 Device Authorization Grant
4443
- `RFC Draft`_ Message Authentication Code (MAC) Tokens
4544

46-
Partial implementations (any help/PR are welcomed to complete the list):
45+
Only OAuth2.0 Provider has been implemented:
46+
47+
- `OpenID Connect Core`_
48+
- `RFC 7662`_: Token Introspection
49+
- `RFC 8414`_: Authorization Server Metadata
50+
51+
Only OAuth2.0 Client has been implemented:
52+
53+
- `RFC 8628`_: Device Authorization Grant
54+
55+
Missing features:
4756

48-
- OAuth2.0 Provider: `OpenID Connect Core`_
49-
- OAuth2.0 Provider: `RFC 7662`_: Token Introspection
50-
- OAuth2.0 Provider: `RFC 8414`_: Authorization Server Metadata
51-
- OAuth2.0 **Client**: `OpenID Connect Core`_
52-
- OAuth2.0 **Client**: `RFC 7662`_: Token Introspection
53-
- OAuth2.0 **Client**: `RFC 8414`_: Authorization Server Metadata
5457
- SAML2
5558
- Bearer JWT as Client Authentication
5659
- Dynamic client registration
5760
- OpenID Discovery
5861
- OpenID Session Management
59-
- ...and more
62+
63+
Any help are welcomed and will be carefully reviewed and integrated to the project. Don't hesitate to be part of the community !
64+
6065

6166
Platforms
6267
.........

docs/oauth2/clients/client.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ to use them please browse the documentation for each client type below.
1414
mobileapplicationclient
1515
legacyapplicationclient
1616
backendapplicationclient
17+
deviceclient
1718

1819
**Existing libraries**
1920
If you are using the `requests`_ HTTP library you may be interested in using

docs/oauth2/oidc/grants.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ checks the presence of `openid` scope in the parameters.
3939
authcode
4040
implicit
4141
hybrid
42+
refresh_token

docs/oauth2/oidc/id_tokens.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ See examples below.
1111

1212
.. _`ID Tokens`: http://openid.net/specs/openid-connect-core-1_0.html#IDToken
1313

14-
.. autoclass:: oauthlib.oauth2.RequestValidator
14+
.. autoclass:: oauthlib.openid.RequestValidator
15+
:noindex:
1516
:members: finalize_id_token
1617

1718

docs/oauth2/oidc/refresh_token.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OpenID Authorization Code
1+
OpenID Refresh Grant
22
-------------------------
33

44
.. autoclass:: oauthlib.openid.connect.core.grant_types.RefreshTokenGrant

0 commit comments

Comments
 (0)