Bugfix
This commit is contained in:
@ -152,6 +152,8 @@ def render_rst(directory, name, meta_parser, template):
|
|||||||
# publish the spec with docutils
|
# publish the spec with docutils
|
||||||
parts = publish_parts(source=rendered_content, source_path=directory, writer_name="html")
|
parts = publish_parts(source=rendered_content, source_path=directory, writer_name="html")
|
||||||
meta = meta_parser(parts['meta'])
|
meta = meta_parser(parts['meta'])
|
||||||
|
|
||||||
|
if (directory == PROPOSAL_DIR):
|
||||||
meta['num'] = int(name[:3])
|
meta['num'] = int(name[:3])
|
||||||
|
|
||||||
return render_template(template, title=parts['title'], toc=toc, body=parts['fragment'], name=name, meta=meta)
|
return render_template(template, title=parts['title'], toc=toc, body=parts['fragment'], name=name, meta=meta)
|
||||||
|
Reference in New Issue
Block a user