From 658f29cc2e84abc7d4d6fe3e34eaed43555562ef Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 23 Feb 2015 15:49:14 +0100 Subject: [PATCH] Build index even for RST only change Build the index.html file also when only RST files changed. Change-Id: I50a59fad6a5ca5deda8c6aad6ad2667f9b16321a --- os_doc_tools/doctest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os_doc_tools/doctest.py b/os_doc_tools/doctest.py index 7bc9c874..570c42ec 100755 --- a/os_doc_tools/doctest.py +++ b/os_doc_tools/doctest.py @@ -1595,6 +1595,8 @@ def doctest(): # If only RST files are touched, there's nothing to do. if (not CONF.force and only_rst_touched()): print("Only RST files changed, nothing to do.\n") + if cfg.CONF.create_index: + generate_index_file() return if CONF.check_syntax or CONF.check_niceness or CONF.check_links: