Skip to content

Commit

Permalink
(rv) fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 29, 2023
1 parent b1ca97a commit 15b9912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions road_vehicle/docgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def gen_docs(string_manager, rosters):

for i, roster in enumerate(rosters):
prefix = f"docs/road_vehicle/rosters"
with open(os.path.join(prefix, f"{roster.name(string_manager)}.md"), "w") as f:
with open(os.path.join(prefix, f"{roster.translation_name}.md"), "w") as f:
print(
f"""---
layout: default
title: {roster.name}
title: {roster.name(string_manager)}
parent: Rosters
grand_parent: ACRVS - Ahyangyi's Chinese Road Vehicle Set
nav_order: {i+1}
Expand All @@ -29,7 +29,7 @@ def gen_docs(string_manager, rosters):

for language in ["en-GB", "zh-CN"]:
langprefix = f"docs/_i18n/{language}/road_vehicle/rosters"
with open(os.path.join(langprefix, f"{roster.name(string_manager)}.md"), "w") as f:
with open(os.path.join(langprefix, f"{roster.translation_name}.md"), "w") as f:
print(
f"""
""",
Expand Down

0 comments on commit 15b9912

Please sign in to comment.