mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-12 22:23:16 +00:00
fix: Output markdown files should end in *.rollup.md
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -22,3 +22,6 @@ go.work
|
||||
|
||||
# Ignore rollup config file
|
||||
rollup.yml
|
||||
|
||||
# Ignore rollup executable
|
||||
rollup
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user