Add readme to index

This commit is contained in:
Iacopo Spalletti 2016-06-06 10:35:00 +02:00
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 import djangocms_blog
cms_helper.setup() 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 ------------------------------------------------ # -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here. # If your documentation needs a minimal Sphinx version, state it here.

View file

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