[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.
--- 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'