fix(cheat_sheet.py): change snake_case to PascalCase

pull/755/head
Collin Brown 3 years ago
parent 134b98d24d
commit b93102d8ac

File diff suppressed because it is too large Load Diff

@ -20,7 +20,7 @@ def generate_markdown_table(resource_paths):
for img_path in resource_paths: for img_path in resource_paths:
path = Path(img_path) path = Path(img_path)
import_path = '.'.join(path.parts[1:-1]).replace("-", "_") import_path = '.'.join(path.parts[1:-1]).replace("-", "_")
module_name = path.parts[-1].replace(".png", "").replace("-", "_") module_name = path.parts[-1].replace("-", " ").title().replace(" ", "").replace(".Png", "")
table_entry = f"| ![module_name]({path}) | `from {import_path} import {module_name}` |\n" table_entry = f"| ![module_name]({path}) | `from {import_path} import {module_name}` |\n"
md_file.write(table_entry) md_file.write(table_entry)

Loading…
Cancel
Save