Remove stuff from 20_events.rst and replace with {{room_events}}. Update gendoc to call build.py for template vars.

This commit is contained in:
Kegan Dougal 2015-05-20 15:40:06 +01:00
parent 66bbc30893
commit 02c44a889e
4 changed files with 14 additions and 225 deletions

View file

@ -114,7 +114,9 @@ def main(file_stream=None, out_dir=None):
temp = Template(file_stream.read())
print "Creating output for: %s" % file_stream.name
output = create_from_template(temp, sections)
with open(os.path.join(out_dir, file_stream.name), "w") as f:
with open(
os.path.join(out_dir, os.path.basename(file_stream.name)), "w"
) as f:
f.write(output)
print "Output file for: %s" % file_stream.name