Slides de référence

2024-11-19 - Benoit AVERTY

Référence de syntaxe et possibilités pour les slides

Notes

Cette slide contient des notes.

Code source

Avec Highlight.js

Typescript

async function toto(param: string): Promise<Any> {
    const resp = await fetch("http://perdu.com")
    return resp.json()
}

Surlignage

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

Laisser de la place

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

Laisser de la place

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

Diagrammes

PlantUML

Diagram

Mermaid

Diagram

Excalidraw

Diagram

Git graph (mermaid)

Diagram

More

Images

Basic

Asciidoctor

Avec option imagesdir

Utiliser l’option imagesdir pour simplifier les URLS

// à mettre au début du fichier
:imagesdir: images/reference

// Puis
image::one-ring.jpg
one ring

Merci

slides disponibles sur http://benoitaverty.com/confs