Open bo-ku-ra opened 1 year ago
i may want to put 'bokura-config.d2' on a network drive when i share it with my colleagues.
doesn't it work on v0.6.0?
unfortunately not, didn't get to it
Just wanted to add a comment and say this is something I'd really appreciate from D2 as well, for similar reasons as the classes and style imports.
I'd also like to organize pieces of my diagrams in separate files, and then import them into the relevant diagram to avoid redundancies. Absolute imports would make this much easier and avoid the need to update relative paths if I were to change my directory structure
This will be in the next release, thank you all for patience
when importing d2-file that define 'style' and 'classes', absolute path is better than relative path.
move "cccc.d2" "./bar/cccc.d2"
├─d2 │ │ bokura-config.d2 │ │ │ └─foo │ │ aaaaa.d2 (classes{ ...@../bokura-config.classes }) │ │ bbbbb.d2 (classes{ ...@../bokura-config.classes }) │ │ (ccccc.d2) <-OK │ │ │ └─bar │ ccccc.d2 (classes{ ...@
../
bokura-config.classes }) <- NG (../../
<-OK)