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: make giscus color mode based on the current one from docusaurus context

Martin Adámekbc1ddecb242d
diff --git a/package-lock.json b/package-lock.json
index 2fb14e7dc..ddf5d66b2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16503,7 +16503,6 @@
"@apify/ps-tree": "^1.1.4",
"@crawlee/types": "^3.0.3",
"cheerio": "1.0.0-rc.12",
- "content-type": "^1.0.4",
"got-scraping": "^3.2.9",
"tslib": "^2.4.0"
},
@@ -17365,7 +17364,7 @@
"content-type": "^1.0.4",
"got-scraping": "^3.2.9",
"iconv-lite": "^0.6.3",
- "mime-types": "*",
+ "mime-types": "^2.1.35",
"ow": "^0.28.1"
},
"dependencies": {
@@ -17613,7 +17612,6 @@
"@apify/ps-tree": "^1.1.4",
"@crawlee/types": "^3.0.3",
"cheerio": "1.0.0-rc.12",
- "content-type": "^1.0.4",
"got-scraping": "^3.2.9",
"tslib": "^2.4.0"
}
diff --git a/website/src/theme/DocItem/Layout/index.js b/website/src/theme/DocItem/Layout/index.js
index 416cf67bf..c3561178d 100644
--- a/website/src/theme/DocItem/Layout/index.js
+++ b/website/src/theme/DocItem/Layout/index.js
@@ -1,6 +1,6 @@
import React from 'react';
import clsx from 'clsx';
-import { useWindowSize } from '@docusaurus/theme-common';
+import { useWindowSize, useColorMode } from '@docusaurus/theme-common';
import { useDoc } from '@docusaurus/theme-common/internal';
import DocItemPaginator from '@theme/DocItem/Paginator';
import DocVersionBanner from '@theme/DocVersionBanner';
@@ -37,6 +37,7 @@ function useDocTOC() {
export default function DocItemLayout({ children }) {
const docTOC = useDocTOC();
+ const { colorMode } = useColorMode();
return (
<div className="row">
<div className={clsx('col', !docTOC.hidden && styles.docItemCol)}>
@@ -61,7 +62,7 @@ export default function DocItemLayout({ children }) {
reactionsEnabled="1"
emitMetadata="0"
inputPosition="top"
- theme="preferred_color_scheme"
+ theme={colorMode}
lang="en"
strict="0"
/>