backstage-plugin-techdocs-addon-mermaid 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,13 +9,19 @@ Backstage v1.2+
9
9
  ## Getting started
10
10
 
11
11
  1. Follow [the official documentation for TechDocs Addons](https://backstage.io/docs/features/techdocs/addons#installing-and-using-addons) to enable addons for techdocs.
12
- 2. Install this plugin in your backstage app. Run the following command from the root of your backstage installation:
12
+ 2. For your backstage instance, make sure you have installed `mkdocs-techdocs-core` >= 1.0.2. Older versions will not render mermaid correctly!
13
+ ```sh
14
+ pip3 install mkdocs-techdocs-core==1.0.2
15
+ ```
16
+
17
+ 3. Install this plugin in your backstage app. Run the following command from the root of your backstage installation:
13
18
  ```
14
19
  yarn add --cwd packages/app backstage-plugin-techdocs-addon-mermaid
15
20
  ```
16
- 3. Enable the addon in your application
21
+ 4. Enable the addon within techdocs viewer's within `App.tsx` and `EntityPage.tsx`
17
22
  ```typescript jsx
18
23
  // packages/app/src/App.tsx
24
+ // packages/app/src/components/catalog/EntityPage.tsx
19
25
  import { Mermaid } from 'backstage-plugin-techdocs-addon-mermaid';
20
26
 
21
27
  // ...
@@ -41,3 +47,18 @@ graph TD;
41
47
  C-->D;
42
48
  ```
43
49
  ~~~
50
+
51
+ ## Auto-Detection vs. Manual Detection
52
+
53
+ By default, this plugin will autodetect diagrams based on the starting token of the code block. In some cases, however, this auto-detection is not sufficient, for example because of an unrecognized
54
+ diagram type or the use of front matter. In these cases, you can force the use of mermaid on blocks by adding configuration like this to your `mkdocs.yaml` file:
55
+
56
+ ```yaml
57
+ markdown_extensions:
58
+ pymdownx.extra:
59
+ pymdownx.superfences:
60
+ custom_fences:
61
+ - name: mermaid
62
+ class: mermaid
63
+ format: !!python/name:pymdownx.superfences.fence_code_format
64
+ ```
package/dist/index.esm.js CHANGED
@@ -24,12 +24,28 @@ function selectConfig(backstagePalette, properties) {
24
24
  return properties.darkConfig || {};
25
25
  }
26
26
  let diagramId = 0;
27
+ const makeDiagram = (el, diagramText, backstagePalette, properties) => {
28
+ var _a;
29
+ el.style.display = "none";
30
+ const diagramElement = document.createElement("div");
31
+ diagramElement.className = "mermaid";
32
+ (_a = el.parentNode) == null ? void 0 : _a.insertBefore(diagramElement, el.nextSibling);
33
+ const id = `mermaid-${diagramId++}`;
34
+ const config = selectConfig(backstagePalette, properties);
35
+ if (config) {
36
+ mermaid.initialize(config);
37
+ }
38
+ mermaid.render(id, diagramText, (svgGraph) => {
39
+ diagramElement.innerHTML = svgGraph;
40
+ });
41
+ };
27
42
  const MermaidAddon = (properties) => {
28
43
  const highlightTables = useShadowRootElements([".highlighttable"]);
44
+ const highlightDivs = useShadowRootElements([".highlight"]);
45
+ const mermaidPreBlocks = useShadowRootElements([".mermaid"]);
29
46
  const theme = useTheme();
30
47
  useEffect(() => {
31
48
  highlightTables.forEach((highlightTable) => {
32
- var _a;
33
49
  if (!highlightTable.classList.contains("language-text")) {
34
50
  return;
35
51
  }
@@ -44,20 +60,45 @@ const MermaidAddon = (properties) => {
44
60
  if (!isMermaidCode(diagramText)) {
45
61
  return;
46
62
  }
47
- highlightTable.style.display = "none";
48
- const diagramElement = document.createElement("div");
49
- diagramElement.className = "mermaid";
50
- (_a = highlightTable.parentNode) == null ? void 0 : _a.insertBefore(diagramElement, highlightTable.nextSibling);
51
- const id = `mermaid-${diagramId++}`;
52
- const config = selectConfig(theme.palette.type, properties);
53
- if (config) {
54
- mermaid.initialize(config);
55
- }
56
- mermaid.render(id, diagramText, (svgGraph) => {
57
- diagramElement.innerHTML = svgGraph;
58
- });
63
+ makeDiagram(highlightTable, diagramText, theme.palette.type, properties);
59
64
  });
60
65
  }, [highlightTables, properties, theme.palette.type]);
66
+ useEffect(() => {
67
+ highlightDivs.forEach((highlightDiv) => {
68
+ if (!highlightDiv.classList.contains("language-text")) {
69
+ return;
70
+ }
71
+ if (highlightDiv.style.display === "none") {
72
+ return;
73
+ }
74
+ const table = highlightDiv.querySelector("table");
75
+ if (!table) {
76
+ return;
77
+ }
78
+ const codeBlock = highlightDiv.querySelector("code");
79
+ if (!codeBlock) {
80
+ return;
81
+ }
82
+ const diagramText = codeBlock.innerText;
83
+ if (!isMermaidCode(diagramText)) {
84
+ return;
85
+ }
86
+ makeDiagram(highlightDiv, diagramText, theme.palette.type, properties);
87
+ });
88
+ }, [highlightDivs, properties, theme.palette.type]);
89
+ useEffect(() => {
90
+ mermaidPreBlocks.forEach((mermaidPreBlock) => {
91
+ if (mermaidPreBlock.style.display === "none") {
92
+ return;
93
+ }
94
+ const codeBlock = mermaidPreBlock.querySelector("code");
95
+ if (!codeBlock) {
96
+ return;
97
+ }
98
+ const diagramText = codeBlock.innerText;
99
+ makeDiagram(mermaidPreBlock, diagramText, theme.palette.type, properties);
100
+ });
101
+ }, [mermaidPreBlocks, properties, theme.palette.type]);
61
102
  return null;
62
103
  };
63
104
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/Mermaid/hooks.ts","../src/Mermaid/Mermaid.tsx","../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst mermaidStart =\n /^(\\s*)(graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|journey|gantt|pie|requirementDiagram|gitGraph|C4Context)/;\n\nexport const isMermaidCode = (code: string): boolean => {\n if (code.startsWith('%%{init')) {\n const codeSplitByDirectiveStart = code.split('%%');\n\n if (codeSplitByDirectiveStart.length > 2)\n return code.split('%%')[2].match(mermaidStart) !== null;\n }\n\n return code.match(mermaidStart) !== null;\n};\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect } from 'react';\nimport { PaletteType, useTheme } from '@material-ui/core';\n\nimport { useShadowRootElements } from '@backstage/plugin-techdocs-react';\nimport mermaid from 'mermaid'\nimport { isMermaidCode } from './hooks';\nimport { MermaidProps } from './props';\nimport { BackstageTheme } from '@backstage/theme';\nimport { MermaidConfig } from 'mermaid';\n\nexport function selectConfig(backstagePalette: PaletteType, properties: MermaidProps): MermaidConfig {\n // Theme set directly in the Mermaid configuration takes\n // precedence for backwards-compatibility\n if(properties.config) {\n return properties.config;\n }\n\n if(backstagePalette === 'light') {\n return properties.lightConfig || {};\n }\n\n return properties.darkConfig || {};\n}\n\n/**\n * Show report issue button when text is highlighted\n */\n\nlet diagramId = 0\n\nexport const MermaidAddon = (properties: MermaidProps) => {\n const highlightTables = useShadowRootElements<HTMLDivElement>(['.highlighttable']);\n const theme = useTheme<BackstageTheme>();\n\n useEffect(() => {\n highlightTables.forEach(highlightTable => {\n if (!highlightTable.classList.contains('language-text')) {\n return;\n }\n\n // Skip already processed\n if (highlightTable.style.display === 'none') {\n return\n }\n\n const codeBlock = highlightTable.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.innerText\n\n // Ideally we could detect mermaid based on some annotation, but use a regex for now\n if (!isMermaidCode(diagramText)) {\n return\n }\n\n highlightTable.style.display = 'none'\n\n const diagramElement = document.createElement('div')\n diagramElement.className = \"mermaid\"\n\n highlightTable.parentNode?.insertBefore(diagramElement, highlightTable.nextSibling);\n\n const id = `mermaid-${diagramId++}`\n\n const config = selectConfig(theme.palette.type, properties);\n if(config) {\n mermaid.initialize(config);\n }\n\n mermaid.render(id, diagramText, (svgGraph: string) => {\n diagramElement.innerHTML = svgGraph\n });\n });\n }, [highlightTables, properties, theme.palette.type]);\n\n return null;\n};\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPlugin } from '@backstage/core-plugin-api';\nimport {\n createTechDocsAddonExtension,\n TechDocsAddonLocations,\n} from '@backstage/plugin-techdocs-react';\n\nimport { MermaidAddon } from './Mermaid';\nimport type { MermaidProps } from './Mermaid';\n\n/**\n * The TechDocs addons mermaid plugin\n *\n * @public\n */\n\n\nexport const techdocsAddonMermaidPlugin = createPlugin({\n id: 'techdocs-addon-mermaid',\n});\n\n/**\n * TechDocs addon that lets you render Mermaid diagrams\n *\n * @public\n */\n\n export const Mermaid = techdocsAddonMermaidPlugin.provide(\n createTechDocsAddonExtension<MermaidProps>({\n name: 'MermaidDiagram',\n location: TechDocsAddonLocations.Content,\n component: MermaidAddon,\n }),\n);\n"],"names":[],"mappings":";;;;;;AAAA,MAAM,YAAY,GAAG,qIAAqI,CAAC;AACpJ,MAAM,aAAa,GAAG,CAAC,IAAI,KAAK;AACvC,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;AAClC,IAAI,MAAM,yBAAyB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACvD,IAAI,IAAI,yBAAyB,CAAC,MAAM,GAAG,CAAC;AAC5C,MAAM,OAAO,IAAI,CAAC,KA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AAC,OAAO;AAC5C,IAAI,SAAS,EAAE,YAAY;AAC3B,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/Mermaid/hooks.ts","../src/Mermaid/Mermaid.tsx","../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst mermaidStart =\n /^(\\s*)(graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|journey|gantt|pie|requirementDiagram|gitGraph|C4Context)/;\n\nexport const isMermaidCode = (code: string): boolean => {\n if (code.startsWith('%%{init')) {\n const codeSplitByDirectiveStart = code.split('%%');\n\n if (codeSplitByDirectiveStart.length > 2)\n return code.split('%%')[2].match(mermaidStart) !== null;\n }\n\n return code.match(mermaidStart) !== null;\n};\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect } from 'react';\nimport { PaletteType, useTheme } from '@material-ui/core';\n\nimport { useShadowRootElements } from '@backstage/plugin-techdocs-react';\nimport mermaid from 'mermaid'\nimport { isMermaidCode } from './hooks';\nimport { MermaidProps } from './props';\nimport { BackstageTheme } from '@backstage/theme';\nimport { MermaidConfig } from 'mermaid';\n\nexport function selectConfig(backstagePalette: PaletteType, properties: MermaidProps): MermaidConfig {\n // Theme set directly in the Mermaid configuration takes\n // precedence for backwards-compatibility\n if(properties.config) {\n return properties.config;\n }\n\n if(backstagePalette === 'light') {\n return properties.lightConfig || {};\n }\n\n return properties.darkConfig || {};\n}\n\n/**\n * Show report issue button when text is highlighted\n */\n\nlet diagramId = 0\n\nconst makeDiagram = (el: HTMLDivElement | HTMLPreElement, diagramText: string, backstagePalette: PaletteType, properties: MermaidProps) => {\n el.style.display = 'none'\n\n const diagramElement = document.createElement('div')\n diagramElement.className = \"mermaid\"\n\n el.parentNode?.insertBefore(diagramElement, el.nextSibling);\n\n const id = `mermaid-${diagramId++}`\n\n const config = selectConfig(backstagePalette, properties);\n if(config) {\n mermaid.initialize(config);\n }\n\n mermaid.render(id, diagramText, (svgGraph: string) => {\n diagramElement.innerHTML = svgGraph\n });\n}\n\nexport const MermaidAddon = (properties: MermaidProps) => {\n const highlightTables = useShadowRootElements<HTMLDivElement>(['.highlighttable']);\n const highlightDivs = useShadowRootElements<HTMLDivElement>(['.highlight']);\n const mermaidPreBlocks = useShadowRootElements<HTMLPreElement>(['.mermaid']);\n const theme = useTheme<BackstageTheme>();\n\n useEffect(() => {\n highlightTables.forEach(highlightTable => {\n if (!highlightTable.classList.contains('language-text')) {\n return;\n }\n\n // Skip already processed\n if (highlightTable.style.display === 'none') {\n return\n }\n\n const codeBlock = highlightTable.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.innerText\n\n // Ideally we could detect mermaid based on some annotation, but use a regex for now\n if (!isMermaidCode(diagramText)) {\n return\n }\n\n makeDiagram(highlightTable, diagramText, theme.palette.type, properties)\n });\n }, [highlightTables, properties, theme.palette.type]);\n\n useEffect(() => {\n highlightDivs.forEach(highlightDiv => {\n if (!highlightDiv.classList.contains('language-text')) {\n return;\n }\n\n // Skip already processed\n if (highlightDiv.style.display === 'none') {\n return\n }\n\n // skip mkdocs-material < 9 code blocks (handled above)\n const table = highlightDiv.querySelector('table')\n if (!table) {\n return\n }\n\n const codeBlock = highlightDiv.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.innerText\n\n // Ideally we could detect mermaid based on some annotation, but use a regex for now\n if (!isMermaidCode(diagramText)) {\n return\n }\n\n makeDiagram(highlightDiv, diagramText, theme.palette.type, properties)\n });\n }, [highlightDivs, properties, theme.palette.type]);\n\n useEffect(() => {\n mermaidPreBlocks.forEach(mermaidPreBlock => {\n // Skip already processed\n if (mermaidPreBlock.style.display === 'none') {\n return\n }\n\n const codeBlock = mermaidPreBlock.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.innerText\n\n makeDiagram(mermaidPreBlock, diagramText, theme.palette.type, properties)\n });\n }, [mermaidPreBlocks, properties, theme.palette.type]);\n\n return null;\n};\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPlugin } from '@backstage/core-plugin-api';\nimport {\n createTechDocsAddonExtension,\n TechDocsAddonLocations,\n} from '@backstage/plugin-techdocs-react';\n\nimport { MermaidAddon } from './Mermaid';\nimport type { MermaidProps } from './Mermaid';\n\n/**\n * The TechDocs addons mermaid plugin\n *\n * @public\n */\n\n\nexport const techdocsAddonMermaidPlugin = createPlugin({\n id: 'techdocs-addon-mermaid',\n});\n\n/**\n * TechDocs addon that lets you render Mermaid diagrams\n *\n * @public\n */\n\n export const Mermaid = techdocsAddonMermaidPlugin.provide(\n createTechDocsAddonExtension<MermaidProps>({\n name: 'MermaidDiagram',\n location: TechDocsAddonLocations.Content,\n component: Mermaid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AAG,EAAE,CAAC,aAAa,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACtD,EAAE,SAAS,CAAC,MAAM;AAClB,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAAe,KAAK;AAClD,MAAM,IAAI,eAAe,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,EAAE;AACpD,QAAQ,OAAO;AACf,OAAO;AACP,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAC9D,MAAM,IAAI,CAAC,SAAS,EAAE;AACtB,QAAQ,OAAO;AACf,OAAO;AACP,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,SAAS,CAAC;AAC9C,MAAM,WAAW,CAAC,eAAe,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AAChF,KAAK,CAAC,CAAC;AACP,GAAG,EAAE,CAAC,gBAAgB,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACzD,EAAE,OAAO,IAAI,CAAC;AACd,CAAC;;ACrFW,MAAC,0BAA0B,GAAG,YAAY,CAAC;AACvD,EAAE,EAAE,EAAE,wBAAwB;AAC9B,CAAC,EAAE;AACS,MAAC,OAAO,GAAG,0BAA0B,CAAC,OAAO;AACzD,EAAE,4BAA4B,CAAC;AAC/B,IAAI,IAAI,EAAE,gBAAgB;AAC1B,IAAI,QAAQ,EAAE,sBAAsB,CAAC,OAAO;AAC5C,IAAI,SAAS,EAAE,YAAY;AAC3B,GAAG,CAAC;AACJ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backstage-plugin-techdocs-addon-mermaid",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
@@ -64,5 +64,9 @@
64
64
  },
65
65
  "files": [
66
66
  "dist"
67
- ]
67
+ ],
68
+ "repository": {
69
+ "type": "git",
70
+ "url": "https://github.com/johanneswuerbach/backstage-plugin-techdocs-addon-mermaid"
71
+ }
68
72
  }