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:
parent
66bbc30893
commit
02c44a889e
4 changed files with 14 additions and 225 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue