Skip to content

Commit

Permalink
add auto-generated doc links (#652)
Browse files Browse the repository at this point in the history
* add auto-generated doc links
* prepare new `Clang.jl` patch
* add `api.md`
* update URLs
  • Loading branch information
t-bltg authored Sep 30, 2022
1 parent 3c57167 commit 5a9ed4e
Show file tree
Hide file tree
Showing 5 changed files with 4,470 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ makedocs(
"reference/topology.md",
"reference/io.md",
"reference/advanced.md",
"reference/api.md",
],
"refindex.md",
],
Expand Down
5 changes: 5 additions & 0 deletions docs/src/reference/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# API

```@autodocs
Modules = [MPI.API]
```
2 changes: 1 addition & 1 deletion gen/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
OpenMPI_jll = "fe0851c0-eecd-5654-98d4-656369965a5c"

[compat]
Clang = "0.16.2"
Clang = "0.16.3"
MPIPreferences = "0.1.3"
julia = "1.6"
7 changes: 7 additions & 0 deletions gen/src/MPIgenerator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ module MPIgenerator
mkpath(out)

options = load_options(joinpath(@__DIR__, "generator.toml")) # wrapper generator options
options["general"]["callback_documentation"] = node -> String[
"""
`$(node.id)` man page:
- [OpenMPI](https://www.open-mpi.org/doc/current/man3/$(node.id).3.php)
- [MPICH](https://www.mpich.org/static/docs/latest/www3/$(node.id).html)
"""
]

include_dir = normpath(artifact_dir, "include")

Expand Down
Loading

0 comments on commit 5a9ed4e

Please sign in to comment.