Use yaml syntax
See original GitHub issueThe goal of this issue is to implement a data driven approach to the graph.
This approach will allow a structured syntax to handle layouts, layout properties, shapes, shape properties, lines and line properties. Here’s an example:
---
graph:
layout: hierarchical
properties:
layout_direction: TD
edge_weight: 100
node_spacing: 100
vertices:
- name: myCircle
shape: circle
color: blue
- name: myClass
shape: class
color: blue
class_vars:
- int foo
- str bar
edges:
- A: myCircle
Z: myClass
A_end: circle
Z_end: arrow
line: dashed
text: something interesting
mermaid code language would still be used. The above codeblock is using yml to provide syntax highlighting
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
YAML Tutorial: Everything You Need to Get Started in Minutes
This YAML tutorial will demonstrate the language syntax with a guide and some simple coding examples in Python.
Read more >YAML Syntax - Ansible Documentation
This page provides a basic overview of correct YAML syntax, which is how Ansible playbooks (our configuration management language) are expressed. We use...
Read more >What is YAML? A beginner's guide - CircleCI
YAML is a digestible data serialization language often used to create configuration files with any programming language. Designed for human ...
Read more >YAML Tutorial : A Complete Language Guide with Examples
Basic YAML Syntax · Maps/Dictionaries (YAML calls it mapping): The content of a mapping node is an unordered set of key/value node pairs,...
Read more >YAML Syntax | Grav Documentation
YAML stands for "YAML Ain't Markup Language" and it is used extensively in Grav for its configuration files, blueprints, and also in page...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think what sets this tool apart is its inclusion in markdown rendering. These three types of diagrams are roughly similar:
They could be drawn using the current implementation (DSL) or drawn using a generic implementation (this issue).
This issue would provide development to address the above examples in a generic manner and also address the following issues(not a complete list): #822 #827 #825 #821 #820 #815 #814 #811 #806 #760 #770 #780
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.