Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/badetitou/mermaidpharo
Pharo generate mermaid diagram
https://github.com/badetitou/mermaidpharo
mermaidjs pharo
Last synced: about 1 month ago
JSON representation
Pharo generate mermaid diagram
- Host: GitHub
- URL: https://github.com/badetitou/mermaidpharo
- Owner: badetitou
- Created: 2022-03-01T13:47:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T06:50:33.000Z (about 1 year ago)
- Last Synced: 2024-08-03T17:10:00.070Z (5 months ago)
- Topics: mermaidjs, pharo
- Language: Smalltalk
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MermaidPharo
[![CI](https://github.com/badetitou/MermaidPharo/actions/workflows/CI.yml/badge.svg)](https://github.com/badetitou/MermaidPharo/actions/workflows/CI.yml)
[![Coverage Status](https://coveralls.io/repos/github/badetitou/MermaidPharo/badge.svg?branch=main)](https://coveralls.io/github/badetitou/MermaidPharo?branch=main)You can use mle to generate [MermaidJS](https://mermaid-js.github.io) diagram from Pharo.
## Installation
```st
Metacello new
githubUser: 'badetitou' project: 'MermaidPharo' commitish: 'main' path: 'src';
baseline: 'MermaidPharo';
load
```## Example
```st
P2M new
pharoClasses: MeEntity allSubclasses;
generateClassDiagram
```## Moose Example
After loading the `moose` group, a common usage is:
```st
diagram := M2M new
metamodel: GLHModel resetMetamodel;
withoutBlock: [ :class | (class name endsWith: #Model)
or: [ class package name ~= GLHModel class package name
or: [ (class name endsWith: #Entity) ] ]];
generateClassDiagram.
```> The without block enable to only select the interesting entities of the metamodel