fix(index.html.mako): Added an assert to detect when docs need updating

This commit is contained in:
Michael-F-Bryan
2017-04-01 21:48:37 +08:00
parent de6528be98
commit ef070eef59

View File

@@ -91,9 +91,9 @@ function onCopy(e) {
% for version in api.list[name]:
<tr>
<%
# 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)