Enhance README article links to include JSON file references

This commit is contained in:
2025-05-10 10:01:31 +02:00
parent 5658f88abf
commit a0d61427e2
3 changed files with 297 additions and 295 deletions

View File

@ -218,7 +218,9 @@ def add_articles_to_readme(articles: dict[Any, Any] | None = None) -> None:
article_id: str = str(article.get("articleId", ""))
article_title: str = article.get("articleTitle", "No Title")
article_url: str = f"https://wutheringwaves.kurogames.com/en/main/news/detail/{article_id}"
new_lines.append(f"- [{article_title}]({article_url})\n")
new_lines.append(
f"- [{article_title}]({article_url}) [[json]](articles/{article_id}.json)\n",
)
# Add articles directory section
new_lines.append("\n## Articles Directory\n")