Skip to content

Commit fd5d675

Browse files
#105 add ids and links (#106)
1 parent 18e08ef commit fd5d675

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

vignettes/adxx.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ Steps involved to create an `ADXX` ADaM.
2727

2828
ADaM | Sourcing Command
2929
---- | --------------
30-
ADXX | `admiral::use_ad_template("ADXX", package = "admiraltemplate")`
30+
[`ADXX`](templates.html#adxx) | `admiral::use_ad_template("ADXX", package = "admiraltemplate")`

vignettes/articles/templates.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ for (file_path in template_files) {
4747
# Construct collapsible block
4848
cat(paste0(
4949
"<details style='margin-bottom: 10px; border: 1px solid #ccc; border-radius: 5px; padding: 5px;'>\n",
50-
" <summary style='cursor: pointer; font-weight: bold;'>", file_name, "</summary>\n",
50+
" <summary id=\"", stringr::str_match(file_name, "ad_(?<dataset>\\w+)\\.R")[1, "dataset"],
51+
"\" style='cursor: pointer; font-weight: bold;'>", file_name, "</summary>\n",
5152
" <pre style='max-height: 90vh'><code>", escaped_code, "</code></pre>\n",
5253
"</details>\n\n"
5354
))

0 commit comments

Comments
 (0)