Skip to content

Commit

Permalink
Fix autogenerated links to OpenMPI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Aug 6, 2024
1 parent 627d56e commit 125f170
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/MPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@ end


function _doc_external(fname)
"""
- `$fname` man page: [OpenMPI](https://www.open-mpi.org/doc/current/man3/$fname.3.php), [MPICH](https://www.mpich.org/static/docs/latest/www3/$fname.html)
"""
mpich = "[MPICH](https://www.mpich.org/static/docs/latest/www3/$(fname).html)"
# All the *_c functions are undocumented in OpenMPI website
if !endswith(string(fname), "_c")
openmpi = "[OpenMPI](https://docs.open-mpi.org/en/main/man-openmpi/man3/$(fname).3.html)"
return """
- `$fname` man page: $(openmpi), $(mpich)
"""
else
return """
- `$fname` man page: $(mpich)
"""
end
end

"""
Expand Down

0 comments on commit 125f170

Please sign in to comment.