Use first paragraph as summary by default (#22)

This commit is contained in:
Jared Dillard
2025-06-22 21:00:40 -07:00
committed by GitHub
parent b56d93d265
commit 46c2dec254
7 changed files with 120 additions and 12 deletions
+6 -4
View File
@@ -88,10 +88,12 @@ class FileWriter:
if description:
# Trim leading and trailing whitespace
description = description.strip()
# Replace newlines with newline + blockquote marker to maintain
# blockquote formatting
description = description.replace("\n", "\n> ")
f.write(f"> {description}\n\n")
if description:
# Only add blockquote if description is not empty
# Replace newlines with newline + blockquote marker to maintain
# blockquote formatting
description = description.replace("\n", "\n> ")
f.write(f"> {description}\n\n")
f.write("## Docs\n\n")
# Get base URL from config