From 27290fd297d0bcf8ed1c82e4a21df82af494ba97 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Thu, 23 Apr 2020 22:21:04 -0700 Subject: Sphinx 3.0 removed deprecated extra args in add_directive() --- docs/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 472485380..613f38dca 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -379,9 +379,9 @@ def app_role(role, rawtext, text, lineno, inliner, options={}, content=[]): def setup(app): app.add_role('app', app_role) - app.add_directive('frontmatter', FrontMatter, 1, (0, 0, 0)) - app.add_directive('mainmatter', MainMatter, 1, (0, 0, 0)) - app.add_directive('backmatter', BackMatter, 1, (0, 0, 0)) + app.add_directive('frontmatter', FrontMatter) + app.add_directive('mainmatter', MainMatter) + app.add_directive('backmatter', BackMatter) app.connect('autodoc-process-signature', resig) -- cgit v1.2.3 From 0d52baa965addef225e88bd2132c577b3fccf58f Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Fri, 24 Apr 2020 00:40:28 -0700 Subject: Exclude duplicate members `response` and `session` from `request` module to avoid Sphinx warnings: src/pyramid/request.py:docstring of pyramid.request.Request.response:1: WARNING: duplicate object description of pyramid.request.Request.response, other instance in api/request, use :noindex: for one of them src/pyramid/request.py:docstring of pyramid.request.Request.session:1: WARNING: duplicate object description of pyramid.request.Request.session, other instance in api/request, use :noindex: for one of them --- docs/api/request.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/api/request.rst b/docs/api/request.rst index ed7f91e91..edd319864 100644 --- a/docs/api/request.rst +++ b/docs/api/request.rst @@ -14,7 +14,7 @@ model_url, resource_url, resource_path, set_property, effective_principals, authenticated_userid, unauthenticated_userid, has_permission, - invoke_exception_view, localizer + invoke_exception_view, localizer, response, session .. attribute:: context -- cgit v1.2.3