🔧 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:
Gabriel Luiz Freitas Almeida 2023-07-26 17:26:31 -03:00
commit ea8865dc18
2 changed files with 8 additions and 1 deletions

View file

@ -27,7 +27,12 @@ module.exports = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme: "nord" }]],
beforeDefaultRemarkPlugins: [
[
remarkCodeHike,
{ theme: "monokai", showCopyButton: true, lineNumbers: true },
],
],
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
path: "docs",