Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autogenerated links to OpenMPI/MPICH docs #859

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

giordano
Copy link
Member

@giordano giordano commented Aug 6, 2024

OpenMPI docs are hosted on a new website, and the docs for all the *_c functions are not available for that this MPI library. Also, MPICH docstrings are available at the moment for most functions only in the v4.0 website, not v4.1+. Extracted out of #856.

OpenMPI docs are hosted on a new website, and the docs for all the `*_c`
functions are not available for that this MPI library.  Also, MPICH docstrings
are available at the moment for most functions only in the v4.0 website, not
v4.1+.
Comment on lines +22 to +30
# Ideally we'd like to use the "latest" version of the docs, but MPICH v4.0
# at the moment seems to be the last version with all the docstrings.
mpich = "[MPICH](https://www.mpich.org/static/docs/v4.0/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)"
# Few docstrings aren't available for MPICH
if fname in (:MPI_Status_c2f, :MPI_Status_f2c) || startswith(string(fname), "MPI_Type_create_f90_")
return """
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of all these super ad-hoc checks, but the alternative is to have broken links 🤷

@giordano
Copy link
Member Author

giordano commented Aug 6, 2024

I sampled the links for a few docstrings in the preview of this PR and they are all working as expected. I'm going to merge this so that at least we have no more broken links, but if someone knows better and more reliable links to use we can always fix them afterwards.

@giordano giordano merged commit 6bea63a into master Aug 6, 2024
51 of 54 checks passed
@giordano giordano deleted the mg/docstring-links branch August 6, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant