3.6 KB142 lines
Blame
1<html>
2 <head>
3 <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
4 <link
5 rel="stylesheet"
6 href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/font-awesome.min.css"
7 />
8 <link
9 href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
10 rel="stylesheet"
11 />
12 <style>
13 body {
14 /* background: rgb(221, 208, 208); */
15 /* background:#111; */
16 /* background:#333; */
17 font-family: 'Arial';
18 }
19 /* h1 { color: white;} */
20 .mermaid2 {
21 display: none;
22 }
23 .customCss > rect,
24 .customCss {
25 fill: #ff0000 !important;
26 stroke: #ffff00 !important;
27 stroke-width: 4px !important;
28 }
29 </style>
30 </head>
31 <body>
32 <h1>info below</h1>
33 <pre class="mermaid2" style="width: 100%; height: 20%">
34 gitGraph:
35 commit "Ashish"
36 branch newbranch
37 checkout newbranch
38 commit id:"1111"
39 commit tag:"test"
40 checkout main
41 commit type: HIGHLIGHT
42 commit
43 merge newbranch
44 commit
45 branch b2
46 commit
47 </pre>
48 <pre class="mermaid" style="width: 100%; height: 20%">
49 %%{init: { "gitGraph": { "showBranches": true, "mainBranchName": "APA" }}}%%
50 gitGraph
51 commit
52 branch hotfix
53 checkout hotfix
54 commit
55 branch develop
56 checkout develop
57 commit id:"An id" tag:"A tag"
58 branch featureB
59 checkout featureB
60 commit type:HIGHLIGHT
61 checkout APA
62 checkout hotfix
63 commit type:NORMAL
64 checkout develop
65 commit type:REVERSE
66 checkout featureB
67 commit
68 checkout APA
69 merge hotfix
70 checkout featureB
71 commit
72 checkout develop
73 branch featureA
74 commit
75 checkout develop
76 merge hotfix
77 checkout featureA
78 commit
79 checkout featureB
80 commit
81 checkout develop
82 merge featureA
83 branch release
84 checkout release
85 commit
86 checkout APA
87 commit
88 checkout release
89 merge APA
90 checkout develop
91 merge release
92 </pre>
93 <pre class="mermaid2" style="width: 100%; height: 20%">
94 gitGraph:
95 commit
96 commit
97 branch newbranch
98 commit
99 merge main
100 </pre>
101 <script type="module">
102 import mermaid from './mermaid.esm.mjs';
103 mermaid.parseError = function (err, hash) {
104 // console.error('Mermaid error: ', err);
105 };
106 mermaid.initialize({
107 theme: 'default',
108 themeVariables: {
109 // primaryColor: '#9400D3',
110 // darkMode: false,
111 // background: '#222',
112 // textColor: 'white',
113 // primaryTextColor: '#f4f4f4',
114 // nodeBkg: '#ff0000',
115 // mainBkg: '#0000ff',
116 // tertiaryColor: '#ffffcc',
117 },
118 // theme: 'forest',
119 // theme: 'neutral',
120 // theme: 'dark',
121 // arrowMarkerAbsolute: true,
122 // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
123 logLevel: 1,
124 flowchart: { curve: 'linear', htmlLabels: true },
125 // gitGraph: { showCommitLabel: false },
126 // gantt: { axisFormat: '%m/%d/%Y' },
127 sequence: { actorMargin: 50, showSequenceNumbers: true },
128 // sequenceDiagram: { actorMargin: 300 } // deprecated
129 // fontFamily: '"arial", sans-serif',
130 // themeVariables: {
131 // fontFamily: '"arial", sans-serif',
132 // },
133 curve: 'linear',
134 securityLevel: 'loose',
135 });
136 function callback() {
137 alert('It worked');
138 }
139 </script>
140 </body>
141</html>
142