Skip to content

Commit 3929447

Browse files
committed
Formatting fixes
1 parent 671e3f7 commit 3929447

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,4 +563,3 @@ hide:
563563
</div>
564564

565565
</div>
566-

scripts/sync_readme_to_docs.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,17 @@ def rebuild_document(
294294
# Add sections in the specified order, followed by any other types alphabetically
295295
for type_value in type_order:
296296
if type_value in implementations_by_type:
297-
new_content += generate_type_section(type_value, implementations_by_type[type_value])
297+
new_content += generate_type_section(
298+
type_value, implementations_by_type[type_value]
299+
)
298300

299301
# Add any remaining types that weren't in the predefined order
300-
for type_value in sorted([t for t in implementations_by_type.keys() if t not in type_order]):
301-
new_content += generate_type_section(type_value, implementations_by_type[type_value])
302+
for type_value in sorted(
303+
[t for t in implementations_by_type if t not in type_order]
304+
):
305+
new_content += generate_type_section(
306+
type_value, implementations_by_type[type_value]
307+
)
302308

303309
return new_content
304310

@@ -409,7 +415,9 @@ def update_docs_index(implementations_by_type: Dict[str, List[Dict]]) -> None:
409415
# Replace the existing style block to include both dataset and type tags
410416
style_start = original_content.find("<style>")
411417
style_end = original_content.find("</style>", style_start) + len("</style>")
412-
original_content = original_content[:style_start] + css_for_tags + original_content[style_end:]
418+
original_content = (
419+
original_content[:style_start] + css_for_tags + original_content[style_end:]
420+
)
413421
else:
414422
# Add the CSS after the header area
415423
header_end_marker = "</div>"
@@ -426,8 +434,7 @@ def update_docs_index(implementations_by_type: Dict[str, List[Dict]]) -> None:
426434

427435
# Update the heading from "by Year" to "by Type"
428436
original_content = original_content.replace(
429-
"## Browse Implementations by Year",
430-
"## Browse Implementations by Type"
437+
"## Browse Implementations by Year", "## Browse Implementations by Type"
431438
)
432439

433440
# Create an entirely new document

0 commit comments

Comments
 (0)