Commit 253d2a52 authored by Thomas Boni's avatar Thomas Boni
Browse files

Merge branch '57-reverse-changelog-display-in-documentation' into 'latest'

Resolve "Reverse changelog display in documentation"

Closes #57

See merge request go2scale/hub!21
parents ca987226 0fb46a1a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,9 +62,9 @@ def add_changelog(job_path, job_name, mkdocs_job_content):
  latest_release = listdir(job_path + "/" + job_changelog_dir)[-1][0:-3]
  mkdocs_job_content = mkdocs_job_content.replace("<LATEST_RELEASE>", latest_release)

  for release in listdir(job_path + "/" + job_changelog_dir)[::-1]:
  for release in listdir(job_path + "/" + job_changelog_dir):
    with open(job_path + "/" + job_changelog_dir + "/" + release) as file:
      mkdocs_job_content += file.read()
      mkdocs_job_content += file.read() + "\n"
      # TODO replace <TAG_URL> by the link to the release
  
  # Adding a new line for consistency
+0 −1
Original line number Diff line number Diff line
* **[python_test-0.0.1](<include tag>)** (initial version)
+0 −1
Original line number Diff line number Diff line
* **[python_test-0.0.2](<include tag>)**
+1 −0
Original line number Diff line number Diff line
* **[python_test-0.1.0](<include tag>)** (initial version)
+1 −0
Original line number Diff line number Diff line
* **[python_test-0.1.1](<include tag>)**