diff --git a/src/codemodder/scripts/generate_docs.py b/src/codemodder/scripts/generate_docs.py index 70e0bb9e..032d143e 100644 --- a/src/codemodder/scripts/generate_docs.py +++ b/src/codemodder/scripts/generate_docs.py @@ -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"