forked from asciidoctor/asciidoctor-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91ae317
commit d036093
Showing
5 changed files
with
109 additions
and
96 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
= Diagrams | ||
:kroki-server-url: http://localhost:8000 | ||
// The `kroki-server-url` attribute must be defined as a document attribute | ||
// https://docs.asciidoctor.org/asciidoc/latest/attributes/custom-attributes/ must be placed at the top of the asciidoc file | ||
|
||
[plantuml,align=center] | ||
.... | ||
Alice -> Bob: Authentication Request | ||
Bob --> Alice: Authentication Response | ||
Alice -> Bob: Another authentication Request | ||
Alice <-- Bob: Another authentication Response | ||
.... | ||
|
||
|
||
[d2,width=450,align=center] | ||
.... | ||
D2 Parser: { | ||
shape: class | ||
# Default visibility is + so no need to specify. | ||
+reader: io.RuneReader | ||
readerPos: d2ast.Position | ||
# Private field. | ||
-lookahead: "[]rune" | ||
# Protected field. | ||
# We have to escape the # to prevent the line from being parsed as a comment. | ||
\#lookaheadPos: d2ast.Position | ||
+peek(): (r rune, eof bool) | ||
rewind() | ||
commit() | ||
\#peekn(n int): (s string, eof bool) | ||
} | ||
"github.com/terrastruct/d2parser.git" -> D2 Parser | ||
.... | ||
|
||
|
||
NOTE: We are using a local instance of Kroki! |
This file was deleted.
Oops, something went wrong.