+
Skip to content

tomooda/Micromaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micromaid

Micromaid is a small subset of Mermaid for Pharo 13 and later.

Installation

On Iceberg

Clone github repository with tomooda / Micromaid.

Screenshot-Micromaid-Iceberg

Screenshot-Micromaid-Metacello

On Playground

EpMonitor disableDuring: [
	Metacello new
		onConflictUseLoaded;
		onWarningLog;
		repository: 'github://tomooda/Micromaid:main/';
		baseline: 'Micromaid';
		load ] 

Viewing mermaid diagrams embedded in markdown documents on Pharo

The following is the REPL flowchart embedded as a mermaid script.

flowchart TD
R[Read]
E[Eval]
P[Print]
A([Init]) --> R
R -->  E
E -->|quit| Q([quit])
E --> P
P --> R
Loading

On Pharo, you can view this document like the below.

document-browser

Embedding micromaid diagrams in Microdown documents

You can embed a micromaid script in Microdown documents, including class comments. For example, if your class has a comment as below,

I am a REPL interpreter.
```mermaid
flowchart TD
R[Read]
E[Eval]
P[Print]
A([Init]) --> R
R -->  E
E -->|quit| Q([quit])
E --> P
P --> R
```

you'll have the following presentation on the browser.

class-comment

Authoring Micromaid/Mermaid scripts with Spec UI

MicromaidLiveEditorPresenter provides the following UI for live authoring.

live-authoring

The diagram on the right will be update as you type in the left source pane.

Supported diagrams

Subsets of the following diagrams from mermaid are supported in Micromaid.

ClassDiagram

About

A simple Mermaid-like chart generator for Pharo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载