Skip to content

v2.28.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 04:40
· 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.2 and /docs/3.0.1 are saved as v1.2/index.md and 3.0.1/index.md (they used to become v1.md and 3.0.md, so versions overwrote each other), segment names keep a leading or trailing _ (_modules used to become modules), 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 _con and 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.html and guide.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 next mcp-server start 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 search and mcp-server warn 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 turned noindex. They leave the Markdown, JSONL and search, and diff_crawl reports 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 new crawled_at when 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 as A, 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 JSONL url keeps it; pages differing only by query are still one page). The first incremental or resumed crawl after upgrading merges existing duplicates, and diff_crawl lists 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 next mcp-server start 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.