Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D2 Diagram suppport #23

Open
corradolupo73 opened this issue Feb 13, 2024 · 5 comments
Open

D2 Diagram suppport #23

corradolupo73 opened this issue Feb 13, 2024 · 5 comments

Comments

@corradolupo73
Copy link

It is possible add d2 diagram? Thank you

@danieleades
Copy link

this is now resolved. see #15

@NathanielBlairStahn
Copy link

NathanielBlairStahn commented Oct 17, 2024

D2 is not working in my installation. My .rst file has this directive:

.. kroki::
  :type: d2

  x -> y

And the build throws this warning and does not render the diagram:

Error in "kroki" directive:
invalid option value: (option: "type"; value: 'd2')
'dict_keys' object is not subscriptable.

.. kroki::
  :type: d2

  x -> y

This looks like the same error message in #21

Here are the packages installed in my build environment

Details


# packages in environment at /opt/homebrew/Caskroom/miniconda/base/envs/vresearch-kroki:
#
# Name                    Version                   Build  Channel
alabaster                 0.7.13                   pypi_0    pypi
babel                     2.16.0                   pypi_0    pypi
bzip2                     1.0.8                h99b78c6_7    conda-forge
ca-certificates           2024.8.30            hf0a4a13_0    conda-forge
certifi                   2024.8.30                pypi_0    pypi
charset-normalizer        3.4.0                    pypi_0    pypi
contourpy                 1.1.1                    pypi_0    pypi
cycler                    0.12.1                   pypi_0    pypi
docutils                  0.16                     pypi_0    pypi
fonttools                 4.54.1                   pypi_0    pypi
idna                      3.10                     pypi_0    pypi
imagesize                 1.4.1                    pypi_0    pypi
importlib-resources       6.4.5                    pypi_0    pypi
jinja2                    3.1.4                    pypi_0    pypi
kiwisolver                1.4.7                    pypi_0    pypi
libffi                    3.4.2                h3422bc3_5    conda-forge
libsqlite                 3.46.1               hc14010f_0    conda-forge
libzlib                   1.3.1                h8359307_2    conda-forge
markupsafe                2.1.5                    pypi_0    pypi
matplotlib                3.7.5                    pypi_0    pypi
ncurses                   6.5                  h7bae524_1    conda-forge
numpy                     1.24.4                   pypi_0    pypi
openssl                   3.3.2                h8359307_0    conda-forge
packaging                 24.1                     pypi_0    pypi
pillow                    10.4.0                   pypi_0    pypi
pip                       24.2               pyh8b19718_1    conda-forge
pygments                  2.18.0                   pypi_0    pypi
pyparsing                 3.1.4                    pypi_0    pypi
python                    3.8.20          h7d35d02_2_cpython    conda-forge
python-dateutil           2.9.0.post0              pypi_0    pypi
pytz                      2024.2                   pypi_0    pypi
pyyaml                    6.0.2                    pypi_0    pypi
readline                  8.2                  h92ec313_1    conda-forge
requests                  2.32.3                   pypi_0    pypi
setuptools                75.1.0             pyhd8ed1ab_0    conda-forge
six                       1.16.0                   pypi_0    pypi
snowballstemmer           2.2.0                    pypi_0    pypi
sphinx                    4.0.2                    pypi_0    pypi
sphinx-rtd-theme          0.5.2                    pypi_0    pypi
sphinxcontrib-applehelp   1.0.4                    pypi_0    pypi
sphinxcontrib-devhelp     1.0.2                    pypi_0    pypi
sphinxcontrib-htmlhelp    2.0.1                    pypi_0    pypi
sphinxcontrib-jsmath      1.0.1                    pypi_0    pypi
sphinxcontrib-kroki       1.3.0                    pypi_0    pypi
sphinxcontrib-qthelp      1.0.3                    pypi_0    pypi
sphinxcontrib-serializinghtml 1.1.5                    pypi_0    pypi
tk                        8.6.13               h5083fa2_1    conda-forge
urllib3                   2.2.3                    pypi_0    pypi
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h57fd34a_0    conda-forge
zipp                      3.20.2                   pypi_0    pypi

@danieleades
Copy link

this feature was merged, but has never been released. If you want to use this you'll need to depend directly on the git repo rather than the published version in pypi

@NathanielBlairStahn
Copy link

Thanks for the info, @danieleades. Do you know if there are any plans to do more releases, or if this package might be more actively maintained in the future?

@danieleades
Copy link

Thanks for the info, @danieleades. Do you know if there are any plans to do more releases, or if this package might be more actively maintained in the future?

I have no idea. Honestly I'm tempted to fork it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants