From 64550b005e1fdc1c5e4ea2d7da5fe0d399ce843d Mon Sep 17 00:00:00 2001 From: Charlotte Wickham Date: Tue, 1 Apr 2025 13:59:26 -0700 Subject: [PATCH 1/2] Add code-links examples --- docs/manuscripts/components.qmd | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/manuscripts/components.qmd b/docs/manuscripts/components.qmd index 3896cc4ae4..0c0f1118cc 100644 --- a/docs/manuscripts/components.qmd +++ b/docs/manuscripts/components.qmd @@ -114,11 +114,21 @@ There are also two special values you can pass as items to `code-links`: `repo` -: Add a link to "GitHub Repo" under "Code Links" that points at the GitHub repository of your manuscript. +: Add a link to "GitHub Repo" under "Code Links" that points at the GitHub repository of your manuscript: + + ```{.yaml filename="_quarto.yml"} + manuscript: + code-links: repo + ``` `binder` -: Add a link to “Launch Binder” under "Code Links" if your manuscript is configured to [Use Binder](#using-binder). +: Add a link to “Launch Binder” under "Code Links" if your manuscript is configured to [Use Binder](#using-binder): + + ```{.yaml filename="_quarto.yml"} + manuscript: + code-links: binder + ``` ## Including Other Resources From 9d250888470d826dd7e15a57bcd41fca081ca80a Mon Sep 17 00:00:00 2001 From: Charlotte Wickham Date: Tue, 1 Apr 2025 14:28:56 -0700 Subject: [PATCH 2/2] Fix typo --- docs/manuscripts/components.qmd | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/manuscripts/components.qmd b/docs/manuscripts/components.qmd index 0c0f1118cc..2460e8e50f 100644 --- a/docs/manuscripts/components.qmd +++ b/docs/manuscripts/components.qmd @@ -89,13 +89,11 @@ manuscript: Use `code-links` to add links that will appear on your manuscript webpage under the heading "Code Links". For example, the following adds a link to a Python script: ``` {.yaml filename="_quarto.yml"} ---- manuscript: code-links: - text: Data Import Code icon: file-code href: data-import.py ---- ``` You can provide the following options for items in `code-links`: