Skip to content

Commit 8b5176f

Browse files
committed
Ignore status file as it is generated
1 parent d244dcc commit 8b5176f

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.hugo_build.lock
2+
content/status.md
23
public/
34
resources/_gen/
45
.DS_Store
5-
.env
6+
.env

content/status.md

Whitespace-only changes.

scripts/update_dashboard.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,21 @@ def get_project_translators(self, project_name: str) -> dict:
145145
return results
146146

147147

148+
def generate_md_file():
149+
"""Generate a markdown file for the dashboard."""
150+
script_path = Path(__file__).resolve()
151+
parent_dir = script_path.parent
152+
153+
content '''---
154+
title: Translations Status
155+
draft: false
156+
---
157+
'''
158+
new_file_path = parent_dir / "status.md"
159+
with open(new_file_path, "w") as f:
160+
f.write(content)
161+
162+
148163
def main() -> None:
149164
"""Main function to run the script."""
150165
try:

0 commit comments

Comments
 (0)