-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcdocs.typ
64 lines (55 loc) · 1.47 KB
/
gcdocs.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#let gc-docs(title: [], version: str, logo: str, doc) = {
set text(font: "Arial",lang: "cs")
set page(footer: grid(
columns: (1fr, 1fr, 1fr),
align(left + horizon, version),
align(center + horizon, image(width: 80%, logo)),
align(right + horizon, datetime.today().display()),
))
show heading.where(level: 1): it => [
#pagebreak(weak: true)
#it
]
set heading(numbering: "1.")
align(center, text(25pt, strong(title)))
""
pagebreak(weak: true)
outline()
pagebreak(weak: true)
doc
}
#let gc-config(displayname, name, example, description) = locate(loc => {
block(breakable: false)[
#let level = query(selector(heading.where(outlined: true)).before(loc), loc).last().level
#heading(level: level + 1, displayname, outlined: false)
#label("gc-config-" + displayname.replace(regex("\s+"), "-"))
#block(
width: 100%,
radius: 5pt,
inset: 8pt,
fill: silver,
breakable: false,
table(
columns: 2,
stroke: none,
"Název:",
name,
"Příklad:",
if type(example) == str [#raw(example)] else [#example],
"Popis:",
description,
),
)
]
})
#let azure = (
func: "Azure Function",
app_service: "Azure App Service",
rg: "Resource Group",
event_grid: "Azure Event Grid",
event_hub: "Azure Event Hub",
kv: "Azure Key vault",
app_ins: "Azure Application Insights",
app_reg: "Azure App registration",
cosmos_db: "Azure Cosmos DB"
)