RobertWeinmeister / dokuwiki-mermaid

A plugin for DokuWiki to support Mermaid.
GNU General Public License v2.0
3 stars 0 forks source link

gantt diagramm does not work with "length" als enddate #33

Open cultcom opened 2 weeks ago

cultcom commented 2 weeks ago

Description When I add an item to a gantt diagramm with a startdate and a length it does not appear in the rendering

gantt
    dateFormat  YYYY-MM-DD
    Dell Server Support   : 2019-06-01, 7y

Actual behaviour A diagramm without the task is rendered. grafik

Expected behaviour Regarding the mermaid documentation it should calculate the enddate by adding the length to the startdate.

grafik

Versions DokuWiki: Release 2024-02-06b "Kaos" Plugin: 2024-10-15 Mermaid: remotely latest version

It appears to me that it works when I use months instead of years but it is not very readable to see: Dell Server Support : 2019-06-01, 84m

RobertWeinmeister commented 1 week ago

I cannot replicate this. Using your diagram description, I get this on my wiki:

image

Would also seem odd that there is a difference between specifying the length in years or months. Maybe some other plugin is interfering?

You can try to debug this on your server. For this plugin, change error to debug in line 96 of action.php: https://github.com/RobertWeinmeister/dokuwiki-mermaid/blob/cdd73a02c6d46c55ca5e6d5d8087f4cac3f2d834/action.php#L96

Open the developer console of your browser and navigate to your page. It will then show you the code as processed by Mermaid, which should be unchanged.

image