Skip to content

Commit 8bae534

Browse files
committed
use hooks to link to appropriate package HTML page
1 parent c519667 commit 8bae534

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

R/build_html_mans.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,15 @@ build_html_mans <- function(package_dirs, reposRoot) {
205205
dir.create(outdirs[i], recursive = TRUE)
206206
tools::pkg2HTML(
207207
dir = package_dirs[i],
208-
out = outfiles[i]
208+
out = outfiles[i],
209+
hooks = list(
210+
pkg_href = function(pkg) {
211+
sprintf(
212+
"../../%s/man/%s.html",
213+
pkg, pkg
214+
)
215+
}
216+
)
209217
)
210218
}
211219
outfiles

0 commit comments

Comments
 (0)