Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: JustinBeckwith/linkinator-action@v1
with:
retry: true
linksToSkip: "https://pypi.org/project/pelican-graphviz/, https://www.gnu.org/licenses/agpl-3.0.en.html"
linksToSkip: "https://pypi.org/project/pelican-graphviz/, https://www.gnu.org/licenses/agpl-3.0.en.html, https://www.w3.org/TR/WCAG22/"

- name: Set up Python & PDM
uses: pdm-project/setup-pdm@v4
Expand Down
8 changes: 0 additions & 8 deletions pelican/plugins/graphviz/mdx_graphviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@
from .run_graphviz import run_graphviz


class DotRuntimeError(RuntimeError):
"""Exception for dot program."""

def __init__(self, errmsg):
"""Emit the error message."""
super().__init__(f"dot exited with error:\n[stderr]\n{errmsg}")


class GraphvizProcessor(BlockProcessor):
"""Block processor for the Graphviz Markdown Extension."""

Expand Down
8 changes: 8 additions & 0 deletions pelican/plugins/graphviz/run_graphviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
from subprocess import PIPE, Popen


class DotRuntimeError(RuntimeError):
"""Exception for dot program."""

def __init__(self, errmsg):
"""Emit the error message."""
super().__init__(f"dot exited with error:\n[stderr]\n{errmsg}")


def run_graphviz(program, code, options=None, format="png"):
"""Run graphviz program and returns image data."""
if not options:
Expand Down
Loading