Skip to content

Commit be453e7

Browse files
authored
Capitalize project name in title (#89)
We also capitalize all words in the title to have a more titly feeling, and we expand shortened words, like app -> Application and lib -> Library.
2 parents 735ba32 + 8accbe7 commit be453e7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
* Add linting to the CI with `protolint` for API projects.
1616
* Bump SDK version to v0.22.0.
17+
* Capitalize project name in title and expand shortened words.
1718

1819
## Bug Fixes
1920

cookiecutter/local_extensions.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,18 @@ def title(cookiecutter: dict[str, str]) -> str:
9292
Returns:
9393
The default site name.
9494
"""
95+
name = cookiecutter["name"].capitalize()
9596
match cookiecutter["type"]:
9697
case "actor":
97-
return f"Frequenz {cookiecutter['name']} actor"
98+
return f"Frequenz {name} Actor"
9899
case "api":
99-
return f"Frequenz {cookiecutter['name']} API"
100+
return f"Frequenz {name} API"
100101
case "lib":
101-
return f"Freqenz {cookiecutter['name']} library"
102+
return f"Freqenz {name} Library"
102103
case "app":
103-
return f"Frequenz {cookiecutter['name']} app"
104+
return f"Frequenz {name} Application"
104105
case "model":
105-
return f"Frequenz {cookiecutter['name']} AI model"
106+
return f"Frequenz {name} AI Model"
106107
case _ as repo_type:
107108
assert False, f"Unhandled repository type {repo_type!r}"
108109

0 commit comments

Comments
 (0)