async function toto(param: string): Promise<Any> {
const resp = await fetch("http://perdu.com")
return resp.json()
}
2024-11-19 - Benoit AVERTY
Syntaxe de base asciidoctor : https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/
Asciidoctor-reveal doc : https://docs.asciidoctor.org/reveal.js-converter/latest/converter/features/
Cette slide contient des notes.
Avec Highlight.js
async function toto(param: string): Promise<Any> {
const resp = await fetch("http://perdu.com")
return resp.json()
}
apiVersion: apps/v1
kind: StatefulSet
spec:
serviceName: zookeeper
selector:
matchLabels:
app: zookeeper
replicas: 3
template:
metadata:
labels:
app: zookeeper
spec:
containers:
- name: zookeeper
image: confluentinc/cp-zookeeper:5.0.1
ports:
- containerPort: 2181
name: client
volumeMounts:
- name: datadir
mountPath: /var/lib/zookeeper/data
volumeClaimTemplates:
- metadata:
name: datadir
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
Ici j’ai de la place pour un paragraphe
apiVersion: apps/v1
kind: StatefulSet
spec:
serviceName: zookeeper
selector:
matchLabels:
app: zookeeper
replicas: 3
template:
metadata:
labels:
app: zookeeper
spec:
containers:
- name: zookeeper
image: confluentinc/cp-zookeeper:5.0.1
ports:
- containerPort: 2181
name: client
volumeMounts:
- name: datadir
mountPath: /var/lib/zookeeper/data
volumeClaimTemplates:
- metadata:
name: datadir
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
Ici j’ai beaucoup de place
Au dessus
apiVersion: apps/v1
kind: StatefulSet
spec:
serviceName: zookeeper
selector:
matchLabels:
app: zookeeper
replicas: 3
template:
metadata:
labels:
app: zookeeper
spec:
containers:
- name: zookeeper
image: confluentinc/cp-zookeeper:5.0.1
ports:
- containerPort: 2181
name: client
volumeMounts:
- name: datadir
mountPath: /var/lib/zookeeper/data
volumeClaimTemplates:
- metadata:
name: datadir
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
Et en dessous
Avec Kroki.io
Utiliser l’option imagesdir
pour simplifier les URLS
// à mettre au début du fichier
:imagesdir: images/reference
// Puis
image::one-ring.jpg
slides disponibles sur http://benoitaverty.com/confs