4.8 KB176 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
34 <pre class="mermaid" style="width: 100%; height: 20%">
35 %%{init: { "logLevel": "debug", "theme": "default" , "gitGraph" : {"showBranches":"false","rotateCommitLabel":"true"},"themeVariables": {
36 "gitBranchLabel0": "#ff0000",
37 "gitBranchLabel1": "#00ff00",
38 "gitBranchLabel2": "#0000ff",
39 "git0": "#550055"
40 } } }%%
41 gitGraph
42 commit
43 branch develop
44 commit
45 commit
46 branch release/1.0.0
47 checkout release/1.0.0
48 commit tag:"1.0.0-beta1"
49 checkout develop
50 commit
51 commit
52 commit
53 commit
54 checkout release/1.0.0
55 merge develop tag: "1.0.0-beta2"
56 </pre>
57 <pre class="mermaid2" style="width: 100%; height: 20%">
58 %%{init: { "logLevel": "debug", "theme": "default" , "gitGraph" : {"showBranches":"false"},"themeVariables": {
59 "gitBranchLabel0": "#ff0000",
60 "gitBranchLabel1": "#00ff00",
61 "gitBranchLabel2": "#0000ff",
62 "git0": "#550055"
63 } } }%%
64 gitGraph
65 accTitle: "Git Graph"
66 accDescr {
67 Git Graph description.
68 Multiline description
69 }
70 commit
71 branch develop
72 commit tag:"v1.0.0"
73 commit
74 checkout main
75 commit type: HIGHLIGHT
76 commit
77 merge develop
78 commit
79 branch featureA
80 commit
81 </pre>
82 <pre class="mermaid2" style="width: 100%; height: 20%">
83 gitGraph
84 commit type:HIGHLIGHT
85 branch hotfix
86 checkout hotfix
87 commit type:HIGHLIGHT
88 branch develop
89 checkout develop
90 commit id:"ash" tag:"abc" type:HIGHLIGHT
91 branch featureB
92 checkout featureB
93 commit type:HIGHLIGHT
94 checkout main
95 checkout hotfix
96 commit type:HIGHLIGHT
97 checkout develop
98 commit type:REVERSE
99 checkout featureB
100 commit type:HIGHLIGHT
101 checkout main
102 merge hotfix
103 checkout featureB
104 commit type:HIGHLIGHT
105 checkout develop
106 branch featureA
107 commit type:HIGHLIGHT
108 checkout develop
109 checkout featureA
110 commit
111 checkout featureB
112 commit
113 checkout develop
114 merge featureA
115 branch release
116 checkout release
117 commit type:HIGHLIGHT
118 checkout main
119 commit
120 checkout release
121 merge main
122 checkout develop
123 merge release
124 </pre>
125 <pre class="mermaid2" style="width: 100%; height: 20%">
126 gitGraph:
127 commit
128 commit
129 branch newbranch
130 commit
131 merge main
132 </pre>
133 <script type="module">
134 import mermaid from './mermaid.esm.mjs';
135 mermaid.parseError = function (err, hash) {
136 // console.error('Mermaid error: ', err);
137 };
138 mermaid.initialize({
139 //theme: 'dark',
140 themeVariables: {
141 commitLabelColor: '#9400D3',
142 commitLabelBackground: '#FFFFFF',
143 // darkMode: true,
144 // background: '#222',
145 // // textColor: 'white',
146 // // primaryTextColor: '#f4f4f4',
147
148 // // // nodeBkg: '#ff0000',
149 // // // mainBkg: '#0000ff',
150 // // // tertiaryColor: '#ffffcc',
151 },
152 // theme: 'forest',
153 // theme: 'neutral',
154 // theme: 'dark',
155 // arrowMarkerAbsolute: true,
156 // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
157 logLevel: 1,
158 gitGraph: { rotateCommitLabel: false },
159 flowchart: { curve: 'linear', htmlLabels: true },
160 // gantt: { axisFormat: '%m/%d/%Y' },
161 sequence: { actorMargin: 50, showSequenceNumbers: true },
162 // sequenceDiagram: { actorMargin: 300 } // deprecated
163 // fontFamily: '"arial", sans-serif',
164 // themeVariables: {
165 // fontFamily: '"arial", sans-serif',
166 // },
167 curve: 'linear',
168 securityLevel: 'loose',
169 });
170 function callback() {
171 alert('It worked');
172 }
173 </script>
174 </body>
175</html>
176