[doc] Do not rely on lgc's sphinx_ext 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Tue, 02 Oct 2018 16:04:52 +0200
branch3.26
changeset 12352 1a0159426def
parent 12351 a6c7716841ce
child 12354 addfdabaa35f
[doc] Do not rely on lgc's sphinx_ext This module is broken (getting an ImportError) and I don't want to fix it. The only usage we make of it is for the "autodocstring" directive, and I don't know what it does. Based on the context, replacing autodocstring with either automodule or autoclass and removing sphinx_ext from required Sphinx extensions.
cubicweb/web/views/autoform.py
doc/book/admin/config.rst
doc/book/devrepo/repo/hooks.rst
doc/conf.py
--- a/cubicweb/web/views/autoform.py	Thu Sep 06 13:44:06 2018 +0200
+++ b/cubicweb/web/views/autoform.py	Tue Oct 02 16:04:52 2018 +0200
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """
-.. autodocstring:: cubicweb.web.views.autoform::AutomaticEntityForm
+.. autoclass:: AutomaticEntityForm
 
 Configuration through uicfg
 ```````````````````````````
--- a/doc/book/admin/config.rst	Thu Sep 06 13:44:06 2018 +0200
+++ b/doc/book/admin/config.rst	Tue Oct 02 16:04:52 2018 +0200
@@ -28,7 +28,7 @@
 Cubicweb resources configuration
 --------------------------------
 
-.. autodocstring:: cubicweb.cwconfig
+.. automodule:: cubicweb.cwconfig
 
 
 .. _DatabaseInstallation:
--- a/doc/book/devrepo/repo/hooks.rst	Thu Sep 06 13:44:06 2018 +0200
+++ b/doc/book/devrepo/repo/hooks.rst	Tue Oct 02 16:04:52 2018 +0200
@@ -4,7 +4,7 @@
 Hooks and Operations
 ====================
 
-.. autodocstring:: cubicweb.server.hook
+.. automodule:: cubicweb.server.hook
 
 
 Example using dataflow hooks
--- a/doc/conf.py	Thu Sep 06 13:44:06 2018 +0200
+++ b/doc/conf.py	Tue Oct 02 16:04:52 2018 +0200
@@ -54,7 +54,6 @@
 extensions = [
   'sphinx.ext.autodoc', 
   'sphinx.ext.viewcode',
-  'logilab.common.sphinx_ext',
   ]
 
 autoclass_content = 'both'