Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

docs: fix giscus resolution being cached (switch to pathname based)

Martin Adámek120fad988527
diff --git a/website/src/css/custom.css b/website/src/css/custom.css
index 9d32fad46..7b383b718 100644
--- a/website/src/css/custom.css
+++ b/website/src/css/custom.css
@@ -390,3 +390,8 @@ html.plugin-typedoc-api .theme-doc-sidebar-menu > li:nth-child(5)::before {
content: 'Advanced';
padding-top: 60px;
}
+
+#giscus-comments {
+ display: block;
+ margin-top: 50px;
+}
diff --git a/website/src/theme/DocItem/Layout/index.js b/website/src/theme/DocItem/Layout/index.js
index d7b4ef566..416cf67bf 100644
--- a/website/src/theme/DocItem/Layout/index.js
+++ b/website/src/theme/DocItem/Layout/index.js
@@ -50,23 +50,22 @@ export default function DocItemLayout({ children }) {
<DocItemFooter/>
</article>
<DocItemPaginator/>
- </div>
- <Giscus
- id="comments"
- repo="apify/crawlee"
- repoId="MDEwOlJlcG9zaXRvcnk2NjY3MDgxOQ="
- category="Comments"
- categoryId="DIC_kwDOA_lQ484CQufN"
- mapping="title"
- reactionsEnabled="1"
- emitMetadata="0"
- inputPosition="top"
- theme="preferred_color_scheme"
- lang="en"
- strict="0"
- loading="lazy"
- />
+ <Giscus
+ id="giscus-comments"
+ repo="apify/crawlee"
+ repoId="MDEwOlJlcG9zaXRvcnk2NjY3MDgxOQ="
+ category="Comments"
+ categoryId="DIC_kwDOA_lQ484CQufN"
+ mapping="pathname"
+ reactionsEnabled="1"
+ emitMetadata="0"
+ inputPosition="top"
+ theme="preferred_color_scheme"
+ lang="en"
+ strict="0"
+ />
+ </div>
</div>
{docTOC.desktop && <div className="col col--3">{docTOC.desktop}</div>}