Open nikitavoloboev opened 10 months ago
I tried changing getPageHtml
to
export function getPageHtml(page: Page) {
return page.evaluate((classNameStart) => {
const el = document.querySelector(
`[class^='${classNameStart}']`
) as HTMLElement | null;
return el?.innerText || "";
}, config.selector);
}
then in config passing:
selector: `layout_docsContent`,
but that failed :(
Want to index edgedb docs https://www.edgedb.com/docs/datamodel/index
Docs exist inside this class
layout_docsContent__JzhPH
whereJzhPH
changes page to page.Currently the selector wants fixed value. Would be nice to support
[class^="layout_docsContent__JzhPH"]
essentially.