From 272f8869ad1353e9457c380e4d7dcbc064864a94 Mon Sep 17 00:00:00 2001 From: chenp Date: Sun, 27 Jun 2021 10:49:54 +0800 Subject: [PATCH] demo01 --- .gitignore | 3 ++- puml/skinparam.puml | 3 ++- samples/demo01.md | 2 ++ samples/demo01.puml | 11 +++++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 samples/demo01.puml diff --git a/.gitignore b/.gitignore index 983e762..614a577 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ dist/ .temp/ .idea/ .DS_Store -*.pdf \ No newline at end of file +*.pdf +*.svg \ No newline at end of file diff --git a/puml/skinparam.puml b/puml/skinparam.puml index 3e4d7e3..d0ffd0a 100644 --- a/puml/skinparam.puml +++ b/puml/skinparam.puml @@ -12,7 +12,8 @@ skinparam ComponentStyle uml2 skinparam Shadowing false skinparam Default { - FontName "'Input Mono','Microsoft YaHei Mono',Menlo, Monaco, 'Courier New', monospace" + 'FontName "'Input Mono','Microsoft YaHei Mono',Menlo, Monaco, 'Courier New', monospace" + FontName "'Noto Sans SC', sans-serif" FontColor Black FontSize 14 FontStyle plain diff --git a/samples/demo01.md b/samples/demo01.md index 69049ce..e2c2fda 100644 --- a/samples/demo01.md +++ b/samples/demo01.md @@ -14,6 +14,8 @@ export_on_save: ```plantuml @startuml +!include https://deep-tek.com/puml/core.puml + 用户 -> 认证中心: 登录操作 认证中心 -> 缓存: 存放(key=token+ip,value=token)token diff --git a/samples/demo01.puml b/samples/demo01.puml new file mode 100644 index 0000000..927ef1d --- /dev/null +++ b/samples/demo01.puml @@ -0,0 +1,11 @@ +@startuml +!include ../puml/core.puml + +autonumber + +张三 -> Bob: Authentication Request +Bob --> 张三: Authentication Response + +张三 -> Bob: Another authentication Request +张三 <-- Bob: another authentication Response +@enduml \ No newline at end of file