fix multi-file output

This commit is contained in:
Arik Jones
2024-12-06 17:02:31 -06:00
parent 9e9ac903e4
commit 9341a51d09
4 changed files with 163 additions and 49 deletions

View File

@@ -48,8 +48,8 @@ type SiteConfig struct {
// ExcludePaths lists paths that should not be scraped
ExcludePaths []string `yaml:"exclude_paths"`
// OutputAlias provides an alternative name for output files
OutputAlias string `yaml:"output_alias"`
// FileNamePrefix provides the base name for output files
FileNamePrefix string `yaml:"file_name_prefix"`
// PathOverrides allows for path-specific configurations
PathOverrides []PathOverride `yaml:"path_overrides"`

View File

@@ -27,7 +27,7 @@ sites:
- "/blog"
exclude_paths:
- "/admin"
output_alias: "example"
file_name_prefix: "example"
path_overrides:
- path: "/special"
css_locator: ".special-content"
@@ -71,7 +71,7 @@ burst_limit: 5
ExcludeSelectors: []string{".ads"},
AllowedPaths: []string{"/blog"},
ExcludePaths: []string{"/admin"},
OutputAlias: "example",
FileNamePrefix: "example",
PathOverrides: []PathOverride{
{
Path: "/special",