Skip to content

Commit

Permalink
add mermaid support
Browse files Browse the repository at this point in the history
Signed-off-by: Musilah <[email protected]>
  • Loading branch information
Musilah committed Dec 20, 2024
1 parent c9a8f5f commit 6292316
Show file tree
Hide file tree
Showing 4 changed files with 1,282 additions and 16 deletions.
14 changes: 8 additions & 6 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

const config: Config = {
Expand All @@ -25,7 +25,7 @@ const config: Config = {
'classic',
{
docs: {
routeBasePath: '/',
routeBasePath: '/',
sidebarPath: 'sidebars.ts',
editUrl:
'https://github.com/absmach/supermq-docs/blob/main',
Expand Down Expand Up @@ -54,10 +54,12 @@ const config: Config = {
plugins: [
'docusaurus-plugin-drawio',
],
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],

themeConfig: {
// Replace with your project's social card - what is a social card?
// image: 'img/docusaurus-social-card.jpg',
navbar: {
logo: {
alt: 'SuperMQ Logo',
Expand All @@ -71,7 +73,7 @@ const config: Config = {
position: 'left',
label: 'Docs',
},
{to: '/blog', label: 'Blog', position: 'left'},
{ to: '/blog', label: 'Blog', position: 'left' },
{
href: 'https://github.com/absmach/supermq',
label: 'GitHub',
Expand Down
Loading

0 comments on commit 6292316

Please sign in to comment.