Skip to content

Commit 785e03c

Browse files
committed
更新sample和readme文件,上传到npm cdn,方便引用
1 parent 0b5112d commit 785e03c

23 files changed

+154
-126
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
samples/
2+
dist/
3+
.vscode/

c4.puml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@startuml c4-core
22

3-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/core.puml
3+
!include https://unpkg.com/plantuml-style-c4@latest/core.puml
44
' uncomment the following line and comment the first to use locally
5-
!include core.puml
5+
'!include ./core.puml
66

7-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/c4_theme.puml
7+
!include https://unpkg.com/plantuml-style-c4@latest/c4_theme.puml
88
' uncomment the following line and comment the first to use locally
9-
!include c4_theme.puml
9+
'!include ./c4_theme.puml
1010

1111
' Colors
1212
' ##################################

c4_component.puml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@startuml c4_component
2-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/c4_container.puml
2+
!include https://unpkg.com/plantuml-style-c4@latest/c4_container.puml
33
' uncomment the following line and comment the first to use locally
4-
!include c4_container.puml
4+
'!include ./c4_container.puml
55

66
' Scope: A single container.
77
' Primary elements: Components within the container in scope.

c4_container.puml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@startuml c4_container
2-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/c4_context.puml
2+
!include https://unpkg.com/plantuml-style-c4@latest/c4_context.puml
33
' uncomment the following line and comment the first to use locally
4-
!include c4_context.puml
4+
'!include ./c4_context.puml
55

66
' Scope: A single software system.
77
' Primary elements: Containers within the software system in scope.

c4_context.puml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@startuml c4_context
2-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/c4.puml
2+
!include https://unpkg.com/plantuml-style-c4@latest/c4.puml
33
' uncomment the following line and comment the first to use locally
4-
!include c4.puml
4+
'!include ./c4.puml
55

66
' Scope: A single software system.
77
' Primary elements: The software system in scope.

c4_theme.puml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
@startuml c4-theme-default
2-
3-
'includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/colors.puml
2+
!include https://unpkg.com/plantuml-style-c4@latest/colors.puml
43
' uncomment the following line and comment the first to use locally
5-
!include colors.puml
4+
'!include ./colors.puml
65

76
' Colors
87
' ##################################

colors.puml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@startuml corlor-define
22

3-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/material-colors.puml
3+
!include https://unpkg.com/plantuml-style-c4@latest/material-colors.puml
44
' uncomment the following line and comment the first to use locally
5-
!include material-colors.puml
5+
'!include ./material-colors.puml
66
' Colors
77
' ##################################
88
!define Black #222222

core.puml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@startuml core
2-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/colors.puml
2+
!include https://unpkg.com/plantuml-style-c4@latest/colors.puml
33
' uncomment the following line and comment the first to use locally
4-
!include colors.puml
4+
'!include ./colors.puml
55

6-
'!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/skinparam.puml
6+
!include https://unpkg.com/plantuml-style-c4@latest/skinparam.puml
77
' uncomment the following line and comment the first to use locally
8-
!include skinparam.puml
8+
'!include ./skinparam.puml
99

1010
!define TECHN_FONT_SIZE 12
1111

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('plantuml-style-c4');

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "plantuml-style-c4",
3+
"version": "1.1.3",
4+
"description": "自定义PlantUml和C4 Model样式\r ---\r ![流程图](https://www.plantuml.com/plantuml/png/RLAnRjim4Dtv5TSfzc1fwIGNQ8eW3RgqWJ9qB5ZgP14vaIhl65T_7rACR1WG1u6wU-_ntIFlMNIGE19e8_RDodnmU3wm7YT2zSawGx7360W6aOcRkWxwN9si3F5lP0p6Eq4dbV5Z_JzgDsCzaNPPyS0o4nxCvthKB1XgumDMK-geEuWkCSR411aGUa_apzQTWAn3qAw3cxODd7OU8YEGDvfeLdUhERZgggVsyV7ddszj--ktKcgPJJKFPCth2uOtGgc694xOuh-8BBlzKJLfNfZq2O_Azh1xJhlAknSqCQGq7WOqh_limi5EGiIzWhIQ3zWFPnUHNCjiozzzEElGVLqvpXT6OGLla1boQi4J5-9ApbNh8i9KO2cF3PcoMFnqAQ3hR7yZPVdPirpOC_8jVVMVKDd_bwiKCPRJjk1FcD7Rvrv0RIfZABWLKsHxJPm2BALii_CGiBC1pORNPcsjUHmNcP9r8VSbxEqvcu-hW50k-wYs1soAuUKDWE0uaHQyCRzyrHBvVVg98xq3)",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/xuanye/plantuml-style-c4.git"
12+
},
13+
"author": "xuanye wong",
14+
"license": "MIT",
15+
"bugs": {
16+
"url": "https://github.com/xuanye/plantuml-style-c4/issues"
17+
},
18+
"homepage": "https://github.com/xuanye/plantuml-style-c4#readme"
19+
}

0 commit comments

Comments
 (0)