Skip to main content

Plugin for lookatme providing support for graph-easy.

Project description

lookatme.contrib.grapheasy

This lookatme extension adds graph support to code blocks.

Setup

Prerequisites

  • graphviz
  • graph-easy

Installation

pip3 install lookatme.contrib.grapheasy

Usage

Add grapheasy into the extensions header in your file:

---
title: Making of The Pan Galactic Gargle Blaster
author: Zaphod Beeblebrox
date: 2022-01-25
extensions:
  - grapheasy
---

Then define some code blocks:

# Graph::Easy

http://bloodgate.com/perl/graph/manual/

```grapheasy
[ Ol' Janx Spirit ] - to -> [ Santraginus V Water ]
```

---

# Graphviz

http://www.graphviz.org/

```dot
digraph {
    subgraph cluster_0 {
        a0 -> a1 -> a2 -> a3;
        label = "process \#1";
    }

    subgraph cluster_1 {
        b0 -> b1 -> b2 -> b3;
        label = "process \#2";
    }

    start -> a0;
    start -> b0;
    a1 -> b3;
    b2 -> a3;
    a3 -> a0;
    a3 -> end;
    b3 -> end;
}
```

---

# VCG & GDL

Not tested but sopposedly supported by easy-graph:

- https://www.rw.cdl.uni-saarland.de/people/sander/private/html/gsvcg1.html
- https://www.absint.com/aisee/

Develpoment

Pull requests welcome. Some notes for future reference:

pip3 install .                              # install directly
python3 setup.py sdist bdist_wheel          # package for release
twine upload --repository testpypi dist/*   # upload to test.pypi.org
twine upload dist/*                         # publish to pypi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lookatme.contrib.grapheasy-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page