From d3ba28d03b849353c0b7155b8b921cefbeafed73 Mon Sep 17 00:00:00 2001 From: Arik Jones Date: Thu, 19 Sep 2024 10:56:00 -0500 Subject: [PATCH] fix: Output markdown files should end in *.rollup.md --- .gitignore | 3 +++ cmd/root.go | 2 +- cmd/web.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5aca2fc..438eb78 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ go.work # Ignore rollup config file rollup.yml + +# Ignore rollup executable +rollup diff --git a/cmd/root.go b/cmd/root.go index 506a1d4..0edabb9 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -159,7 +159,7 @@ func runRollup() error { // Generate the output file name timestamp := time.Now().Format("20060102-150405") - outputFileName := fmt.Sprintf("%s-rollup-%s.md", projectName, timestamp) + outputFileName := fmt.Sprintf("%s-rollup-%s.rollup.md", projectName, timestamp) // Open the output file outputFile, err := os.Create(outputFileName) diff --git a/cmd/web.go b/cmd/web.go index 12a9568..fc3ed21 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -122,7 +122,7 @@ func writeMultipleFiles(content map[string]string) error { func generateDefaultFilename(urls []string) string { timestamp := time.Now().Format("20060102-150405") - return fmt.Sprintf("rollup-web-%s.md", timestamp) + return fmt.Sprintf("web-%s.rollup.md", timestamp) } func scrapeRecursively(urlStr string, depth int) (string, error) {