Converting a Full Documentation Site to Clean Markdown for RAG Without a Headless Browser
The article explains why raw HTML is a poor input for retrieval-augmented generation, since navigation, banners and footers waste tokens and code blocks lose formatting. It recommends reading a site's sitemap.xml to collect every page in one request, falling back to shallow link-following when none exists, and stripping everything outside the main article content. Each page is stored as Markdown with metadata and a content hash so that scheduled runs only re-process new or changed pages. The author describes a paid Apify crawler that performs this over plain HTTP, noting it can miss content in single-page apps that render in the browser; the author is the maintainer of that tool.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in