Commit 0b5256b7 authored by FulcrandG's avatar FulcrandG
Browse files

Using jinja templates instead of wrappers in builder

parent 86f06aca
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -106,11 +106,6 @@ def create_job_doc(job):
  license = get_license(job_path, job)
  user = get_user(job_path, job, conf["code-owner"])

  ### TO REMOVE
  from pprint import pprint
  pprint(changelogs)
  ###

  # Write final file
  with open(mkdocs_file_path, 'w+') as file:
    env = Environment(loader=FileSystemLoader(builder_dir + "/" + template_dir))
+7 −4
Original line number Diff line number Diff line
@@ -10,9 +10,12 @@
# Changelog
* **[latest]({{ latest.url }})** (current -> `{{ latest.version }}`)
{% for version in changelogs %}
* **Tag `{{ version.version }}`**: {{ version.url }}
  {% for line in version.changelog -%}
??? {{ version.version }}
    `{{ version.url }}`
  {% for line in version.changelog %}
    {% if line %}
    {{ line }}
    {% endif %}
  {% endfor %}
{% endfor %}