From 454f098f58dc51779b5603796b9a75d008394d72 Mon Sep 17 00:00:00 2001 From: shayandrg Date: Wed, 9 Mar 2022 18:43:22 +0330 Subject: [PATCH] implanting mermaid and mermaid example page --- components/mermaid.vue | 18 ++++++++++++++++++ content/en/mermaid example.md | 20 ++++++++++++++++++++ nuxt.config.js | 18 ++++++++++++++++-- package.json | 27 ++++++++++++++------------- 4 files changed, 68 insertions(+), 15 deletions(-) create mode 100644 components/mermaid.vue create mode 100644 content/en/mermaid example.md diff --git a/components/mermaid.vue b/components/mermaid.vue new file mode 100644 index 0000000..60935c3 --- /dev/null +++ b/components/mermaid.vue @@ -0,0 +1,18 @@ + + + \ No newline at end of file diff --git a/content/en/mermaid example.md b/content/en/mermaid example.md new file mode 100644 index 0000000..a090bf1 --- /dev/null +++ b/content/en/mermaid example.md @@ -0,0 +1,20 @@ +--- +title: mermaid-example +description: '' +position: 1 +category: '' +--- + + + sequenceDiagram + participant Alice + participant Bob + Alice->>John: Hello John, how are you? + loop Healthcheck + John->>John: Fight against hypochondria + end + Note right of John: Rational thoughts
prevail! + John-->>Alice: Great! + John->>Bob: How about you? + Bob-->>John: Jolly good! +
\ No newline at end of file diff --git a/nuxt.config.js b/nuxt.config.js index 1c97c51..8c9c3f1 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,7 +1,21 @@ import theme from '@nuxt/content-theme-docs' export default theme({ + server: { + host: '0.0.0.0', + posrt: 3000 + }, + + colorMode: { + preference: 'dark', + fallback: 'dark', + }, + docs: { - primaryColor: '#E24F55' - } + primaryColor: '#00cd81' + }, + + content: { + + }, }) diff --git a/package.json b/package.json index 2048989..b6fb300 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,16 @@ { - "name": "doc-init", - "version": "1.0.0", - "private": true, - "scripts": { - "dev": "nuxt", - "build": "nuxt build", - "start": "nuxt start", - "generate": "nuxt generate" - }, - "dependencies": { - "@nuxt/content-theme-docs": "^0.11.0", - "nuxt": "^2.15.8" - } + "name": "doc-init", + "version": "1.0.0", + "private": true, + "scripts": { + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start", + "generate": "nuxt generate" + }, + "dependencies": { + "@nuxt/content-theme-docs": "^0.11.0", + "mermaid": "^8.14.0", + "nuxt": "^2.15.8" + } }