From ef070eef59b2eb3e54b77b5fe600e6f6c900c8dd Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Sat, 1 Apr 2017 21:48:37 +0800 Subject: [PATCH] fix(index.html.mako): Added an assert to detect when docs need updating --- src/mako/index.html.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mako/index.html.mako b/src/mako/index.html.mako index 272797a1fe..cbb9f03d6c 100644 --- a/src/mako/index.html.mako +++ b/src/mako/index.html.mako @@ -91,9 +91,9 @@ function onCopy(e) { % for version in api.list[name]: <% - # We know type_names is just ["api", "cli"] - #type_names = tc.keys() type_names = ["api", "cli"] + assert set(type_names) == set(tc.keys()), "The type cache has changed, make sure to update the documentation accordingly" + with open(api_json_path(directories.api_base, name, version)) as fp: metadata = json.load(fp)