From df7424712838c1d21f11baa9727e3c8c3c850403 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Fri, 7 Apr 2017 15:33:39 -0700 Subject: [PATCH] Allow for toplevel module as Sphinx extension Instead of requiring: extensions = ['autoapi.extension'] This allows for the toplevel: extensions = ['autoapi'] This is more intuitive for users, as extension is an internal concept. --- autoapi/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoapi/__init__.py b/autoapi/__init__.py index 6fb01dd..c8e150e 100644 --- a/autoapi/__init__.py +++ b/autoapi/__init__.py @@ -1,3 +1,5 @@ """ -AutoAPI Top-level Comment +Sphinx AutoAPI """ + +from .extension import setup