VitePress
How doc-scraper recognizes it
Section titled “How doc-scraper recognizes it”VitePress sets <meta name="generator" content="VitePress vX">, which alone is enough for a high-confidence match. Without it, the .vp-doc class or the #VPContent id match on structure.
Content selector: .vp-doc, main.main, #VPContent.
Add a site
Section titled “Add a site”$ doc-scraper add -config config.yaml -dry-run https://vitepress.dev/guide/what-is-vitepressProbing https://vitepress.dev/guide/what-is-vitepress ...Detected: vitepress (vitepress v2.0.0-alpha.21) via generator, confidence highCorpus: ~16 pages (sitemap)
Drafted entry:
vitepress_docs: start_urls: - https://vitepress.dev/guide/what-is-vitepress allowed_domain: vitepress.dev allowed_path_prefix: /guide/ content_selector: '.vp-doc, main.main, #VPContent' max_depth: 3
# content_selector: vitepress detected via generator (high confidence), validated on the fetched page # allowed_path_prefix: /guide/ covers 16 of 272 sitemap URLs # max_depth: 3 from sitemap path depth under the prefix
Preview of the fetched page: 5555 chars of markdown, 87% of page text, code blocks 0/0, 5 headings
| # What is VitePress? [](#what-is-vitepress) | | VitePress is a [Static Site Generator](https://en.wikipedia.org/wiki/Static_site_generator) (SSG) designed for building fast, content-centric websites. In a nutshell, VitePress takes your source content written in [Markdown](https://en.wikipedia.org/wiki/Markdown), applies a theme to it, and generates static HTML pages that can be easily deployed anywhere. ...
Dry run: nothing written.Output from doc-scraper 2.24.0 against https://vitepress.dev/guide/what-is-vitepress, 2026-10-26. Exit code 2.
Crawl it
Section titled “Crawl it”sites: vitepress_docs: start_urls: - https://vitepress.dev/guide/what-is-vitepress allowed_domain: vitepress.dev allowed_path_prefix: /guide/ content_selector: '.vp-doc, main.main, #VPContent' max_depth: 3doc-scraper crawl -site vitepress_docsCaveats
Section titled “Caveats”-
The drafted scope is the section you started in. Starting from
/guide/draftsallowed_path_prefix: /guide/, which covers 16 of the 272 sitemap URLs and leaves out/reference/(17 pages). To crawl both, runaddon the site root instead: it draftsallowed_path_prefix: /and one pattern for the seven translation directories (/es/,/ja/,/zh/, …), which hold 238 of the sitemap URLs:allowed_path_prefix: /disallowed_path_patterns:- '^/(?:ar|bn|cs|da|de|el|en|es|fa|fi|fr|he|hi|hu|id|it|ja|ko|nl|no|pl|pt|ro|ru|sk|sv|th|tr|uk|vi|zh)(?:[-_][a-zA-Z]{2,4})?/'The pattern covers every locale code
addrecognizes, so a translation added later is excluded too, and it leaves the 34 English pages.The root is the VitePress home layout, whose
.vp-docholds only a short intro, soaddchecks the selector on the first guide page the home page links to (/guide/what-is-vitepress) instead, drafts.vp-doc, main.main, #VPContentfrom there, and previews that page. A crawl from the root saves the home page with just that intro.