Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from pathlib import Path
import stat
import shutil
Expand Down Expand Up @@ -46,6 +47,14 @@
files_to_be_removed.extend(BUMPVERSION_FILES)
{% endif %}

{% if cookiecutter.client_name != "ds" %}
with open("branding/branding.json", "r") as f:
branding = json.load(f)
branding["name"] = '{{ cookiecutter.client_name }}'
with open("branding/branding.json", "w") as f:
json.dump(branding, f, indent=4)
{% endif %}

print("Cleaning files... 🌀")
for path in files_to_be_removed:
path = Path(path)
Expand Down
7 changes: 7 additions & 0 deletions {{ cookiecutter.repo_name }}/branding/branding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "deepsense.ai",
"primaryColor": "#1B54FF",
"secondColor": "#1A1A1A",
"thirdColor": "#FFFFFF",
"logo_path": "ds_square_logo.png"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.