Skip to content

Commit

Permalink
rename book_slug to repository_name
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Jan 31, 2024
1 parent 14a4220 commit d29d62b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ def _message_box(msg, color="green", doprint=True, print_func=print):

# Legacy support for old JB ToC format
if version < "0.11.0":
remove("{{cookiecutter.book_slug}}/_toc.yml")
remove("{{cookiecutter.repository_name}}/_toc.yml")
rename(
"{{cookiecutter.book_slug}}/_toc-legacy.yml",
"{{cookiecutter.book_slug}}/_toc.yml",
"{{cookiecutter.repository_name}}/_toc-legacy.yml",
"{{cookiecutter.repository_name}}/_toc.yml",
)
else:
remove("{{cookiecutter.book_slug}}/_toc-legacy.yml")
remove("{{cookiecutter.repository_name}}/_toc-legacy.yml")


# Check existence of GitHub user, else raise warning
Expand Down

0 comments on commit d29d62b

Please sign in to comment.