Fortran-FOSS-Programmers / ford

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

Links to SUBMODULES #499

Closed francescotorsello closed 7 months ago

francescotorsello commented 1 year ago

Hello,

Does FORD support links to SUBMODULES?

Referencing a SUBMODULE (mod) subm of MODULE mod with [[subm]] , [[mod:subm]] or [[mod@subm]] does not work.

ZedThree commented 1 year ago

This is indeed missing I'm afraid. I think #410 looked at implementing links differently, which would be really nice to finish off and get in at some point.

For the time being, I think it might be as simple as expanding the dict of link types: https://github.com/Fortran-FOSS-Programmers/ford/blob/21d98e5349c048d53eda7a228147ada57755b855/ford/utils.py#L189-L190

to include "submodule": "submodules",. PRs welcome! :smile: