File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 883. Creates a PR with updated documentation if changes are detected
994. Adds a notice section to the documentation about the update
1010"""
11+
1112from __future__ import annotations
1213
1314import argparse
@@ -450,9 +451,9 @@ def check_and_update_docs(
450451 print (f"Skipping { api_version } - not yet enabled" )
451452 return False
452453
453- print (f"\n { '=' * 60 } " )
454+ print (f"\n { '=' * 60 } " )
454455 print (f"Checking { api_version .upper ()} documentation" )
455- print (f"{ '=' * 60 } " )
456+ print (f"{ '=' * 60 } " )
456457
457458 # Load version metadata
458459 version_metadata = load_version_metadata (config ["version_file" ])
@@ -611,8 +612,8 @@ def check_and_update_docs(
611612
612613This PR was automatically created by the documentation update workflow.
613614
614- **Source**: [{ api_version .upper ()} API Documentation]({ config [' url' ]} )
615- **Detected Update**: { timestamp or ' Unknown timestamp' }
615+ **Source**: [{ api_version .upper ()} API Documentation]({ config [" url" ]} )
616+ **Detected Update**: { timestamp or " Unknown timestamp" }
616617**Changes**: { diff_summary }
617618
618619### What Changed
@@ -726,9 +727,9 @@ def main():
726727 results [version ] = False
727728
728729 # Summary
729- print (f"\n { '=' * 60 } " )
730+ print (f"\n { '=' * 60 } " )
730731 print ("Summary" )
731- print (f"{ '=' * 60 } " )
732+ print (f"{ '=' * 60 } " )
732733 for version , updated in results .items ():
733734 status = "Updated" if updated else "No changes"
734735 print (f"{ version .upper ()} : { status } " )
You can’t perform that action at this time.
0 commit comments