mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 16:13:25 +00:00
Change code block color scheme (#6945)
Adds contrast, makes code blocks more readable.
This commit is contained in:
parent
7d8830f707
commit
73831ef3d8
@ -7,7 +7,10 @@ const { ProvidePlugin } = require("webpack");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const examplesPath = path.resolve(__dirname, "..", "examples", "src");
|
const examplesPath = path.resolve(__dirname, "..", "examples", "src");
|
||||||
const snippetsPath = path.resolve(__dirname, "..", "snippets")
|
const snippetsPath = path.resolve(__dirname, "..", "snippets");
|
||||||
|
|
||||||
|
const baseLightCodeBlockTheme = require("prism-react-renderer/themes/vsLight");
|
||||||
|
const baseDarkCodeBlockTheme = require("prism-react-renderer/themes/vsDark");
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
@ -127,8 +130,20 @@ const config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
prism: {
|
prism: {
|
||||||
theme: require("prism-react-renderer/themes/vsLight"),
|
theme: {
|
||||||
darkTheme: require("prism-react-renderer/themes/vsDark"),
|
...baseLightCodeBlockTheme,
|
||||||
|
plain: {
|
||||||
|
...baseLightCodeBlockTheme.plain,
|
||||||
|
backgroundColor: "#F5F5F5",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
darkTheme: {
|
||||||
|
...baseDarkCodeBlockTheme,
|
||||||
|
plain: {
|
||||||
|
...baseDarkCodeBlockTheme.plain,
|
||||||
|
backgroundColor: "#222222",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
image: "img/parrot-chainlink-icon.png",
|
image: "img/parrot-chainlink-icon.png",
|
||||||
navbar: {
|
navbar: {
|
||||||
|
Loading…
Reference in New Issue
Block a user