Commit 40438a52 authored by Stephan Botta's avatar Stephan Botta
Browse files

Update 102-test.adoc

parent 73715d3f
Pipeline #19911 passed with stages
in 54 seconds
...@@ -5,6 +5,15 @@ ...@@ -5,6 +5,15 @@
Asciidoctor bietet die Möglichkeit Quellcode in die Dokumentation einzufügen. Dies kann auch in Form einer sogenannten _include_ Anweisungen geschehen, bei der dann direkt der Quellcode verlinkt ist. Das hat den Vorteil, dass die Dokumentation immer den aktuellen Quellcode enthält! Asciidoctor bietet die Möglichkeit Quellcode in die Dokumentation einzufügen. Dies kann auch in Form einer sogenannten _include_ Anweisungen geschehen, bei der dann direkt der Quellcode verlinkt ist. Das hat den Vorteil, dass die Dokumentation immer den aktuellen Quellcode enthält!
.Beispiel: .Beispiel:
-----
[source, python]
----
include::https://gitlab.desy.de/fs-petra-upm/recovib/-/raw/master/config.py?inline=false[]
----
-----
.Ergebnis
[source, python] [source, python]
---- ----
include::https://gitlab.desy.de/fs-petra-upm/recovib/-/raw/master/config.py?inline=false[] include::https://gitlab.desy.de/fs-petra-upm/recovib/-/raw/master/config.py?inline=false[]
...@@ -13,6 +22,24 @@ include::https://gitlab.desy.de/fs-petra-upm/recovib/-/raw/master/config.py?inli ...@@ -13,6 +22,24 @@ include::https://gitlab.desy.de/fs-petra-upm/recovib/-/raw/master/config.py?inli
== Kroki Diagramme == Kroki Diagramme
=== Rackdiagrams === Rackdiagrams
----
[rackdiag,align="center"]
....
rackdiag {
16U;
1: UPS [2U];
3: DB Server;
4: Web Server;
5: Web Server;
6: Web Server;
7: Load Balancer;
8: L3 Switch;
}
....
----
[rackdiag,align="center"] [rackdiag,align="center"]
.... ....
rackdiag { rackdiag {
...@@ -28,6 +55,21 @@ rackdiag { ...@@ -28,6 +55,21 @@ rackdiag {
.... ....
=== Graphviz === Graphviz
----
[graphviz,align="center"]
....
digraph foo {
node [style=rounded]
node1 [shape=box]
node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
node3 [shape=record, label="{ a | b | c }"]
node1 -> node2 -> node3
}
....
----
[graphviz,align="center"] [graphviz,align="center"]
.... ....
digraph foo { digraph foo {
...@@ -41,6 +83,18 @@ digraph foo { ...@@ -41,6 +83,18 @@ digraph foo {
.... ....
=== WaveDrom 1 === WaveDrom 1
----
[wavedrom,align="center"]
....
{ signal: [
{ name: "clk", wave: "p.....|..." },
{ name: "Data", wave: "x.345x|=.x", data: ["head", "body", "tail", "data"] },
{ name: "Request", wave: "0.1..0|1.0" },
{},
{ name: "Acknowledge", wave: "1.....|01." }
]}
....
----
[wavedrom,align="center"] [wavedrom,align="center"]
.... ....
...@@ -55,6 +109,25 @@ digraph foo { ...@@ -55,6 +109,25 @@ digraph foo {
=== WaveDrom 2 === WaveDrom 2
----
[wavedrom,align="center"]
....
{ assign:[
["out",
["XNOR",
["NAND",
["INV", "In1"],
["NOR", "In2", ["BUF","In3"]]
],
["AND",
["XOR", "d", "e", ["OR","f","g"]],
"In4"
]
]
]
]}
....
----
[wavedrom,align="center"] [wavedrom,align="center"]
.... ....
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment