Fortran-FOSS-Programmers / ford

Automatically generates FORtran Documentation from comments within the code.
https://forddocs.readthedocs.io
GNU General Public License v3.0
405 stars 131 forks source link

Fix some issues with code blocks and listing of source files #576

Closed ZedThree closed 10 months ago

ZedThree commented 10 months ago

Fixes #575

@zoziha Please could you check to see if this fixes your issues?

Fixes:

zoziha commented 10 months ago

Thanks @ZedThree , regarding "code highlighting, code blocks not wrapping", these two problems are almost solved, but it seems that the background of the code blocks is not rounded now, the boundaries aren't very clear, and the display seems to be not as refined as in ford-v6.0. For example:

ford-v6.0-screenshot ![image](https://github.com/Fortran-FOSS-Programmers/ford/assets/32035096/2aa342bb-a63d-40b4-92fe-f59ebbe2154b)
ford-v7.0-screenshot-1 ![image](https://github.com/Fortran-FOSS-Programmers/ford/assets/32035096/98e12d6b-e7dd-49da-ad90-70bd26f013f9)

Secondly, I noticed that the source code under the procedures option is not getting highlighted:

ford-v7.0-screenshot-2 ![image](https://github.com/Fortran-FOSS-Programmers/ford/assets/32035096/e5705380-8466-42c5-ac88-51b379728dc3)
ZedThree commented 10 months ago

Some of the fonts and colours have changed due to the upgrade of the Bootstrap CSS framework, and I'm afraid I don't have massive amounts of time to recreate everything, but I will try and fix the boundaries of the code blocks at least.

I probably just broke the procedures highlighting in this PR, I'll fix that now. Thanks!

I think I've now got a fix for the repeated files on Windows. Would you mind giving it a test?

zoziha commented 10 months ago

Thanks for fixing it so quickly @ZedThree , I tried this PR and all the previously mentioned issues were fixed, much appreciated :) No double counting of source files, procedures syntax highlighting works fine, I understand that style improvements take more time, thanks again!