asciidoctor / asciidoctor-diagram

:left_right_arrow: Asciidoctor diagram extension, with support for AsciiToSVG, BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag), Ditaa, Erd, GraphViz, Mermaid, Msc, PlantUML, Shaape, SvgBob, Syntrax, UMLet, Vega, Vega-Lite and WaveDrom.
http://asciidoctor.org
MIT License
445 stars 109 forks source link

Gnuplot set working dir to document dir to resolve relative paths correctly #437

Closed ManDay closed 1 year ago

ManDay commented 1 year ago

If I understood it correctly, this is a sister issue to https://github.com/asciidoctor/asciidoctor-diagram/issues/410 , for Gnuplot, such that instructions like load "file_in_document_directory" do not depend on whence asciidoctor is invoked. Currently, the path resolves to the PWD in which I executed the asciidoctor binary.

pepijnve commented 1 year ago

This should be the case already. Would you mind providing a more detailed description of the file layout and contents so I can try to reproduce this locally?

ManDay commented 1 year ago

The script test.sh here will reproduce it (asciidoctor-diagram 2.0.5).

pepijnve commented 1 year ago

Looks like I was mistaken. The fix I did for #410 was only for D2. PR #438 is a first attempt at fixing this for all types including gnuplot.

pepijnve commented 1 year ago

Should be fixed in 2.2.13