From 1ea836bb1bbeadb19a752c4f19345cd2c1661cbb Mon Sep 17 00:00:00 2001 From: Oddvar Lovaas Date: Wed, 21 Sep 2016 16:22:49 +0100 Subject: [PATCH] Remove howtos from build script --- scripts/gendoc.py | 11 ++++------- supporting-docs/projects/2015-04-03-vector-ios.md | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/gendoc.py b/scripts/gendoc.py index 816fd016..2d06d7c4 100755 --- a/scripts/gendoc.py +++ b/scripts/gendoc.py @@ -407,7 +407,7 @@ def main(targets, keep_intermediates, substitutions): target_defs = yaml.load(targ_file.read()) if targets == ["all"]: - targets = target_defs["targets"].keys() + ["howtos"] + targets = target_defs["targets"].keys() log("Building spec [target=%s]" % targets) @@ -415,11 +415,8 @@ def main(targets, keep_intermediates, substitutions): for target_name in targets: templated_file = "tmp/templated_%s.rst" % (target_name,) - if target_name == "howtos": - shutil.copy("../supporting-docs/howtos/client-server.rst", templated_file) - else: - target = get_build_target(target_defs, target_name) - build_spec(target=target, out_filename=templated_file) + target = get_build_target(target_defs, target_name) + build_spec(target=target, out_filename=templated_file) templated_files.append(templated_file) # we do all the templating at once, because it's slow @@ -458,7 +455,7 @@ def main(targets, keep_intermediates, substitutions): def list_targets(): with open("../specification/targets.yaml", "r") as targ_file: target_defs = yaml.load(targ_file.read()) - targets = target_defs["targets"].keys() + ["howtos"] + targets = target_defs["targets"].keys() print "\n".join(targets) diff --git a/supporting-docs/projects/2015-04-03-vector-ios.md b/supporting-docs/projects/2015-04-03-vector-ios.md index 8cf097d7..2d295483 100644 --- a/supporting-docs/projects/2015-04-03-vector-ios.md +++ b/supporting-docs/projects/2015-04-03-vector-ios.md @@ -2,7 +2,7 @@ layout: project title: Try Matrix Now! categories: projects client --- +---