Skip to content

Commit

Permalink
Fix doc generation for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Jan 18, 2024
1 parent d078cda commit e5601cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codemodder/scripts/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def generate_docs(codemod):
raise KeyError(f"Must add {codemod.name} to METADATA") from exc

formatted_references = [
f"* [{ref['description']}]({ref['url']})" for ref in codemod.references
f"* [{ref.description or ref.url}]({ref.url})" for ref in codemod.references
]
markdown_references = "\n".join(formatted_references) or "N/A"

Expand Down

0 comments on commit e5601cb

Please sign in to comment.