fix: Output markdown files should end in *.rollup.md

This commit is contained in:
Arik Jones
2024-09-19 10:56:00 -05:00
parent 197f3affc7
commit d3ba28d03b
3 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -22,3 +22,6 @@ go.work
# Ignore rollup config file
rollup.yml
# Ignore rollup executable
rollup

View File

@@ -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)

View File

@@ -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) {