🔧 chore(docs): update docusaurus.config.js to use monokai theme for code highlighting, show copy button, and display line numbers
📝 docs(sidebars.js): add "guidelines/custom-component" and "components/custom" to the sidebar for better navigation and discoverability
This commit is contained in:
parent
bb247af614
commit
ea8865dc18
2 changed files with 8 additions and 1 deletions
|
|
@ -27,7 +27,12 @@ module.exports = {
|
||||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||||
({
|
({
|
||||||
docs: {
|
docs: {
|
||||||
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme: "nord" }]],
|
beforeDefaultRemarkPlugins: [
|
||||||
|
[
|
||||||
|
remarkCodeHike,
|
||||||
|
{ theme: "monokai", showCopyButton: true, lineNumbers: true },
|
||||||
|
],
|
||||||
|
],
|
||||||
routeBasePath: "/",
|
routeBasePath: "/",
|
||||||
sidebarPath: require.resolve("./sidebars.js"),
|
sidebarPath: require.resolve("./sidebars.js"),
|
||||||
path: "docs",
|
path: "docs",
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ module.exports = {
|
||||||
"guidelines/collection",
|
"guidelines/collection",
|
||||||
"guidelines/prompt-customization",
|
"guidelines/prompt-customization",
|
||||||
"guidelines/chat-interface",
|
"guidelines/chat-interface",
|
||||||
|
"guidelines/custom-component",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -30,6 +31,7 @@ module.exports = {
|
||||||
items: [
|
items: [
|
||||||
"components/agents",
|
"components/agents",
|
||||||
"components/chains",
|
"components/chains",
|
||||||
|
"components/custom",
|
||||||
"components/embeddings",
|
"components/embeddings",
|
||||||
"components/llms",
|
"components/llms",
|
||||||
"components/loaders",
|
"components/loaders",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue