Repository navigation
·
10 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Behavior changes
- Different page URLs no longer write the same Markdown file. Dotted names like
/docs/v1.2and/docs/3.0.1are saved asv1.2/index.mdand3.0.1/index.md(they used to becomev1.mdand3.0.md, so versions overwrote each other), segment names keep a leading or trailing_(_modulesused to becomemodules), and names that aren't portable get a short hash. Links to.pdf,.zip, images and similar files stay absolute. Some pages get new file names; the next crawl, fresh or incremental, removes the files under the old names. A page at the site root named like a generated file (/llms.txt,/pages.jsonl) gets a hashed name. A site keyed with a Windows device name (con,nul, ...) now writes to_conand so on, and a site key ending in a dot or holding control characters loses them. When two URLs of a crawl still save one file (guide.htmlandguide.htm, or URLs differing only in case on macOS and Windows), the crawl logs a warning naming both (#96, #60). state_dir/index.db, which holds crawl history and the search index, moves to schema 3. After upgrading, an older doc-scraper refuses to open it; going back means deleting it, which loses crawl history, and the older version rebuilds search from the JSONL at its nextmcp-serverstart or crawl (#82).
Fixes
- A crash or power loss while a finished crawl replaces the previous one can no longer leave the new pages next to the old crawl's change-detection state, or leave crawl history and search behind. The swap is journaled and the site's next crawl finishes it; until then
searchandmcp-serverwarn about the site. If the journal can't be applied, crawls of that site stop with an error naming it instead of overwriting anything (#139). - Incremental crawls now remove pages a fresh crawl wouldn't save: a page that redirects elsewhere (its new URL is saved), is disallowed by robots.txt, falls out of scope after a config change, is beyond
max_depth, is no longer HTML or turnednoindex. They leave the Markdown, JSONL and search, anddiff_crawlreports them removed. A removed 404 page is no longer fetched and counted as failed on every later run, unless a crawled page still links to it. A page that fails once keeps its content hash, so it isn't rewritten with a newcrawled_atwhen it comes back unchanged. Markdown files left under old names are deleted; files without doc-scraper front matter are never touched (#104). - A page linked as
/guide/and/guide/index.html, or asA,A?and%41, is now crawled once instead of once per form (mdBook roots were saved twice). Pages are requested at the URL they were linked under, so a start URL ending in/is no longer fetched without the slash, and a link's query string is sent instead of dropped (the JSONLurlkeeps it; pages differing only by query are still one page). The first incremental or resumed crawl after upgrading merges existing duplicates, anddiff_crawllists the dropped form as removed once. IPv6 URLs with an explicit default port keep their brackets (#98). - Code blocks from Docusaurus, Starlight and Nextra no longer get a blank line after every line or start with empty lines, so copied shell examples with
\continuations work, and Starlight terminal blocks no longer start with a "Terminal window" line. Pages from other generators convert as before. The first incremental crawl after upgrading rewrites every page once (#61). - Search picks up a page whose title changed while its content didn't; it used to keep the old title, even after
-full. The index now records which chunker version built each site, so a future change to how pages are split re-indexes every site once, at the nextmcp-serverstart or crawl (#82).
Performance
- Headings, links and images for the JSONL are found with a byte scanner instead of regexes, 12-18x faster per page with identical output. Crawls of large local sites finish slightly sooner (#116).
- Indexing pages for search after a crawl writes many rows per statement instead of one, so a first crawl's indexing takes about 3.4 s instead of 8.1 s for 2,000 pages and 6.1 s instead of 35.5 s for 40,000; the index is unchanged. The CLI now logs when indexing starts, its progress every 2 s, and what it indexed and removed (#117).
Dependencies
- github.com/PuerkitoBio/goquery 1.14.0.