From be17cc13a47e857918a2e95f59d010f730ce3a05 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Mon, 6 Jun 2016 10:35:00 +0200 Subject: [PATCH] Add readme to index --- docs/conf.py | 10 ++++++++++ docs/index.rst | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 59f9fdc..7749248 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/docs/index.rst b/docs/index.rst index 556496e..35c6365 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,7 +6,11 @@ Welcome to djangocms-blog's documentation! ========================================== -Contents: +.. include:: ../README.rst + + +Contents +-------- .. toctree:: :maxdepth: 2