From dace5aeaeecc10f6c1bba9eda9f40eeb55b095a4 Mon Sep 17 00:00:00 2001 From: Toby Harradine Date: Mon, 13 Aug 2018 17:49:40 +1000 Subject: Move conditional RTD dependencies to 'docs' extra --- docs/conf.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index bc2aab17..a9c214f7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,8 +16,6 @@ import sys import os import re -on_rtd = os.getenv('READTHEDOCS') == 'True' - # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -36,15 +34,11 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', + 'sphinx.ext.napoleon', 'sphinxcontrib.asyncio', 'details' ] -if on_rtd: - extensions.append('sphinxcontrib.napoleon') -else: - extensions.append('sphinx.ext.napoleon') - autodoc_member_order = 'bysource' extlinks = { -- cgit v1.2.3