You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## add *.cer to .gitignore to prevent certificates from being saved in repo
17
+
if! grep -Fxq '*.cer' ./.gitignore
18
+
then
19
+
echo"# .CER Certificates">> .gitignore
20
+
echo"*.cer">> .gitignore
21
+
fi
22
+
23
+
## add *.pem to .gitignore to prevent certificates from being saved in repo
24
+
if! grep -Fxq '*.pem' ./.gitignore
25
+
then
26
+
echo"# .PEM Certificates">> .gitignore
27
+
echo"*.pem">> .gitignore
28
+
fi
29
+
30
+
echo
31
+
echo -e "\e[1;92mReady!\e[0m"
32
+
33
+
echo -e "\n\e[1;94m**********\nOptional: if you plan on using gulp serve, don't forget to add the container certificate to your local machine. Please visit https://aka.ms/spfx-devcontainer for more information\n**********"
| Every SPFx version is optimally compatible with specific versions of Node.js. In order to be able to build this sample, you need to ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.|
16
+
|Refer to <https://aka.ms/spfx-matrix> for more information on SPFx compatibility. |

23
+

24
+
-Incompatible-red.svg"SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
25
+


15
28
16
29
## Applies to
17
30
@@ -27,24 +40,26 @@ Since the native **Markdown web part in SharePoint Online does not support Merma
27
40
| ------- | ---------------- | --------------- |
28
41
| 1.0 | March 16, 2025 | Initial release |
29
42
30
-
## Disclaimer
31
43
32
-
**THIS CODE IS PROVIDED _AS IS_ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
- Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/js-mermaid-diagram) then unzip it)
53
+
- From your command line, change your current directory to the directory containing this sample (`js-mermaid-diagram`, located under `samples`)
54
+
- in the command line run:
55
+
-`npm install`
56
+
-`gulp serve`
57
+
58
+
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit <https://aka.ms/spfx-devcontainer> for further instructions.
40
59
41
-
- Clone this repository
42
-
- Ensure that you are at the solution folder
43
-
- in the command-line run:
44
-
-**npm install**
45
-
-**gulp serve**
46
60
47
61
## Features
62
+
48
63
- Render **Mermaid.js** diagrams in SharePoint Online
49
64
- Supports flowcharts, sequence diagrams, Gantt charts, and more
50
65
- Easy integration with existing SharePoint pagesShare your web part with others through Microsoft 365 Patterns and Practices program to get visibility and exposure. More details on the community, open-source projects and other activities from http://aka.ms/m365pnp.
@@ -58,3 +73,26 @@ Happy diagramming!
58
73
-[Use Microsoft Graph in your solution](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/using-microsoft-graph-apis)
59
74
-[Publish SharePoint Framework applications to the Marketplace](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/publish-to-marketplace-overview)
60
75
-[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - Guidance, tooling, samples and open-source controls for your Microsoft 365 development
76
+
77
+
## Help
78
+
79
+
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
80
+
81
+
If you're having issues building the solution, please run [spfx doctor](https://pnp.github.io/cli-microsoft365/cmd/spfx/spfx-doctor/) from within the solution folder to diagnose incompatibility issues with your environment.
82
+
83
+
You can try looking at [issues related to this sample](https://github.com/pnp/sp-dev-fx-webparts/issues?q=label%3A%22sample%3A%20js-mermaid-diagram%22) to see if anybody else is having the same issues.
84
+
85
+
You can also try looking at [discussions related to this sample](https://github.com/pnp/sp-dev-fx-webparts/discussions?discussions_q=js-mermaid-diagram) and see what the community is saying.
86
+
87
+
If you encounter any issues using this sample, [create a new issue](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected%2Csample%3A%20js-mermaid-diagram&template=bug-report.yml&sample=js-mermaid-diagram&authors=@cfernandes-muhimbi&title=js-mermaid-diagram%20-%20).
88
+
89
+
For questions regarding this sample, [create a new question](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aquestion%2Csample%3A%20js-mermaid-diagram&template=question.yml&sample=js-mermaid-diagram&authors=@cfernandes-muhimbi&title=js-mermaid-diagram%20-%20).
90
+
91
+
Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aenhancement%2Csample%3A%20js-mermaid-diagram&template=suggestion.yml&sample=js-mermaid-diagram&authors=@cfernandes-muhimbi&title=js-mermaid-diagram%20-%20).
92
+
93
+
## Disclaimer
94
+
95
+
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
"title": "Mermaid Diagram Web Part for SharePoint Online",
6
+
"shortDescription": "I created this web part to add Mermaid diagram support in SharePoint Online as part of my tutorial series. While working on it, I found this discussion thread: Displaying Mermaid Diagrams in SharePoint Online Markdown Web Parts, which highlights the need for a proper solution.",
"I created this web part to add Mermaid diagram support in SharePoint Online as part of my tutorial series. While working on it, I found this discussion thread: Displaying Mermaid Diagrams in SharePoint Online Markdown Web Parts, which highlights the need for a proper solution."
"name": "Build your first SharePoint client-side web part",
53
+
"description": "Client-side web parts are client-side components that run in the context of a SharePoint page. Client-side web parts can be deployed to SharePoint environments that support the SharePoint Framework. You can also use modern JavaScript web frameworks, tools, and libraries to build them.",
0 commit comments