gitpitch/docs/diagrams/cloud-architecture.md
2020-09-29 07:45:10 +01:00

1.7 KiB

Cloud Architecture Diagrams

?> GitPitch widgets greatly enhance traditional markdown rendering capabilities for slide decks.

The cloud widget is a special markdown syntax that can be used to render sophisticated cloud system architecture diagrams powered by Diagrams-as-Code.

Widget Paths

All paths to cloud description files specified within PITCHME.md markdown must be relative to the root directory of your local working directory or Git repository.

Widget Syntax

The following markdown snippet demonstrates cloud widget syntax:

@cloud[properties...](path/to/cloud.py)

?> The properties... list expects a comma-separated list of property key=value pairs.

Each cloud system archtecture diagram is defined using simple Python syntax within a dedicated source code file. The exact syntax is defined by the Diagrams As Code project. The following conventions are enforced:

  1. Diagram descriptions must be defined in a file within your local repository.
  2. Diagram description files must have a .py extension.
  3. The contents of your diagram description files must adhere to valid Diagrams As Code syntax.

Cloud Properties

Sample Slide

The following slide demonstrates a sample cloud architecture diagram rendered using cloud widget syntax. The markdown snippet used to create this slide takes advantage of grid native properties to position, size, and transform the diagram on the slide:

Sample slide demonstrating the cloud widget