mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 06:53:18 +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
|
# Ignore rollup config file
|
||||||
rollup.yml
|
rollup.yml
|
||||||
|
|
||||||
|
# Ignore rollup executable
|
||||||
|
rollup
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ func runRollup() error {
|
|||||||
|
|
||||||
// Generate the output file name
|
// Generate the output file name
|
||||||
timestamp := time.Now().Format("20060102-150405")
|
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
|
// Open the output file
|
||||||
outputFile, err := os.Create(outputFileName)
|
outputFile, err := os.Create(outputFileName)
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ func writeMultipleFiles(content map[string]string) error {
|
|||||||
|
|
||||||
func generateDefaultFilename(urls []string) string {
|
func generateDefaultFilename(urls []string) string {
|
||||||
timestamp := time.Now().Format("20060102-150405")
|
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) {
|
func scrapeRecursively(urlStr string, depth int) (string, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user