1 Commits

Author SHA1 Message Date
XZH
482d62a0f6 fix(web-source): scope crawl seeds to their parent directory
Sibling pages of a page seed now count as internal: /intro/home seeds
/intro/*, so nav-relative links on docs sites are no longer dropped.
A root URL still scopes the whole host, and a trailing-slash seed stays
scoped to its own directory.

Derived with pure URL-path rules instead of pathlib: Path("/intro/")
.parent is "/", which would silently widen a section seed to the entire
host, and WindowsPath renders "\" separators that break prefix matching.

Adds regression tests for sibling scope, root scope, cross-directory
rejection, and directory-index scope.

Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 14:45:39 -07:00