Add readme to index

This commit is contained in:
Iacopo Spalletti 2016-06-06 10:35:00 +02:00
parent 5b41070a98
commit be17cc13a4
No known key found for this signature in database
GPG Key ID: BDCBC2EB289F60C6
2 changed files with 15 additions and 1 deletions

View File

@ -27,6 +27,16 @@ import cms_helper
import djangocms_blog
cms_helper.setup()
import sphinx.environment
from docutils.utils import get_source_line
def _warn_node(self, msg, node, *args, **kwargs):
if not msg.startswith('nonlocal image URI found:'):
self._warnfunc(msg, '%s:%s' % get_source_line(node))
sphinx.environment.BuildEnvironment.warn_node = _warn_node
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.

View File

@ -6,7 +6,11 @@
Welcome to djangocms-blog's documentation!
==========================================
Contents:
.. include:: ../README.rst
Contents
--------
.. toctree::
:maxdepth: 2