gama-platform / gama

Main repository for developing the 2024+ versions of GAMA
https://gama-platform.org
GNU General Public License v3.0
17 stars 5 forks source link

Documentation embedded in the hover popup is broken in some cases #260

Closed lesquoyb closed 6 days ago

lesquoyb commented 2 months ago

Describe the bug I noticed that the documentation of the image layer in the popup window that appears on hovering the image keyword seems broken: It includes the titles of the usage parts of the documentation without the actual examples, which is really weird: image

To Reproduce Steps to reproduce the behavior:

  1. write an image layer in a display
  2. hover over the image keyword with your mouse
  3. See error

Expected behavior Either the Usage part is completely ignored, or it is displayed including the examples. Another alternative would be to write the documentation a bit differently so it won't feel weird to only have the value of usage and not the examples, but I think in that case there's probably a lot of statements and operators to redo.

AlexisDrogoul commented 2 weeks ago

Should be fixed by https://github.com/gama-platform/gama/pull/307/commits/45808cb0898097afaba0a56c5810be9f9185d35f . Please test.