Quick start
Create a minimal config.yaml in the project root:
output_base_dir: "./crawled_docs"state_dir: "./crawler_state"sites: rust_cli_book: start_urls: - "https://rust-cli.github.io/book/index.html" allowed_domain: "rust-cli.github.io" allowed_path_prefix: "/book/" content_selector: "#content, main" max_depth: 2 # seed plus one level; set 0 for the whole bookRun the crawl:
./doc-scraper crawl -site rust_cli_book -loglevel infoThe Markdown, plus pages.jsonl, llms.txt, and llms-full.txt, lands under ./crawled_docs/rust_cli_book/ (output is organized by site key). A small book like this finishes in a few seconds; large sites can take minutes, so start with a low max_depth to gauge size before removing the bound.
Next steps
Section titled “Next steps”- Add your own site with
doc-scraper add <url>, which detects the framework and drafts the config entry for you. - See every option in the configuration reference.