Skip to content

Commit 2a7b850

Browse files
authored
Merge pull request #197 from carpentries/custom-carpentry
document custom logo
2 parents bc14b71 + 3376f44 commit 2a7b850

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

episodes/editing.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,25 @@ and organization
140140
These fields will be simple key-pair values of information used throughout the episode
141141

142142
carpentry
143-
: The code for the specific carpentry that the lesson belongs to (swc, dc, lc, cp)
143+
: The code for the specific carpentry that the lesson belongs to (swc, dc, lc, cp, incubator, lab)
144+
145+
carpentry_description
146+
: (Optional) Full organisation name. Not needed when carpentry is swc, dc, lc, cp, incubator, or lab.
147+
148+
::::::::::: callout
149+
150+
### Adding a custom logo
151+
152+
The "carpentry" variable works with the {varnish} package to control the logo displayed on your lesson. You can display your own logo by
153+
154+
1. Adding the logo file as SVG (e.g. 'ice-cream-logo.svg') to your fork of {varnish} in the `inst/pkgdown/assets/assets/images` folder.
155+
1. Setting "carpentry" to match the beginning of the name of your logo file. E.g. to use the `ice-cream-logo.svg` file given above, "carpentry" should be set to 'ice-cream'.
156+
1. Adding 'varnish: [YOUR-GITHUB-USERNAME]/varnish' to the Customization section of your lessons `config.yaml` file.
157+
158+
The rendered lesson will display your logo file with alternative text that matches the value of "carpentry". For more informative alternative text, you can set "carpentry_description" to your organisation's full name. E.g. "Ice Cream Carpentry" instead of "ice-cream".
159+
160+
:::::::::::::::::::
161+
144162

145163
title
146164
: The main title of the lesson

0 commit comments

Comments
 (0)