diff --git a/docs/_quarto.yml b/docs/_quarto.yml index f999e7c0e..be2036f18 100644 --- a/docs/_quarto.yml +++ b/docs/_quarto.yml @@ -29,7 +29,7 @@ website: - text: FAQ file: faq.qmd - text: Changelog - file: CHANGELOG.qmd + file: changelog.qmd - icon: github href: https://github.com/bambinos/bambi diff --git a/docs/post_render.py b/docs/post_render.py index 35feb510e..3a222bb01 100644 --- a/docs/post_render.py +++ b/docs/post_render.py @@ -1,4 +1,4 @@ import os # Remove CHANGELOG -os.remove("CHANGELOG.qmd") +os.remove("changelog.qmd") diff --git a/docs/pre_render.py b/docs/pre_render.py index 7929facc9..b7b9223fe 100644 --- a/docs/pre_render.py +++ b/docs/pre_render.py @@ -3,7 +3,7 @@ # Copy CHANGELOG file to 'docs' and change its extension to '.qmd' shutil.copyfile("../CHANGELOG.md", "CHANGELOG.md") -os.rename("CHANGELOG.md", "CHANGELOG.qmd") +os.rename("CHANGELOG.md", "changelog.qmd") # Remove TOC from it lines = """--- @@ -11,7 +11,7 @@ pagetitle: "Changelog" --- """ -with open("CHANGELOG.qmd", "r+") as file: +with open("changelog.qmd", "r+") as file: file_data = file.read() file.seek(0, 0) file.write(lines + "\n" + file_data)