diff --git a/cmd/root.go b/cmd/root.go index bd82f3f..6149fa5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -131,8 +131,8 @@ func runRollup() error { } else { codeGenList = strings.Split(codeGenPatterns, ",") } - if cfg != nil && len(cfg.Ignore) > 0 { - ignoreList = cfg.Ignore + if cfg != nil && cfg.IgnorePatterns != nil && len(cfg.IgnorePatterns) > 0 { + ignoreList = cfg.IgnorePatterns } else { ignoreList = strings.Split(ignorePatterns, ",") } diff --git a/cmd/web.go b/cmd/web.go index 5d7fcc2..849ecb2 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -128,10 +128,11 @@ func extractAndConvertContent(urlStr string) (string, error) { // Use the CSS locator from the config cssLocator := cfg.Scrape.CSSLocator if cssLocator != "" { - content, err = scraper.ExtractContentWithCSS(content, cssLocator) - if err != nil { - return "", fmt.Errorf("error extracting content with CSS selector: %v", err) - } + // TODO: Implement content extraction with CSS selector + // content, err = scraper.ExtractContentWithCSS(content, cssLocator) + // if err != nil { + // return "", fmt.Errorf("error extracting content with CSS selector: %v", err) + // } } // Create a new converter