Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
Auto-generated via `{sandpaper}`
Source  : 1fc40d5
Branch  : main
Author  : Robert Davey <[email protected]>
Time    : 2024-11-12 12:15:11 +0000
Message : Merge pull request #207 from carpentries/linux-install

Update Linux install instructions
  • Loading branch information
actions-user committed Nov 12, 2024
1 parent 1dd2720 commit 45215db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
27 changes: 0 additions & 27 deletions editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,33 +225,6 @@ have rearranged themselves to reflect that.
::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::

### Configuring web analytics
The optional `analytics` field can be used to configure web analytics, e.g. with [Matomo](https://matomo.org/) or Google Analytics.
There are currently three options for `analytics`:

1. `NULL`: disables tracking for that lesson. This is the default behviour, and is equivalent to omitting the `analytics` field from `config.yaml` altogether.
2. `carpentries`: adds the tracking script needed for the lesson to be tracked by The Carpentries self-hosted Matomo system.
This option works only for The Carpentries lessons: community-owned lessons cannot be tracked in the same way.
3. `<user_string>`: allows the user to define their own tracker script string.
For legibility, use the `|` symbol to indicate that the value of the YAML field will be split across multiple indented lines ([known as a 'literal block' in YAML](https://stackoverflow.com/a/21699210)).
For example, to configure for Google Analytics:

```yaml
analytics: |
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src='https://www.googletagmanager.com/gtag/js?id={YOUR TRACKING ID}#' ></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{YOUR TRACKING ID}');
</script>
```

Tracking scripts configured with the `analytics` option are added to the footer element of the lesson website HTML.


## `episodes/`

This is the folder where all the action is. It contains all of the episodes,
Expand Down
2 changes: 1 addition & 1 deletion md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"links.md" "a7ea11385a9d821b8f57edb0951c83ca" "site/built/links.md" "2024-11-05"
"episodes/introduction.md" "b1ca0d51bfee1538beabc08f46b389cf" "site/built/introduction.md" "2024-11-05"
"episodes/episodes.Rmd" "4f9401544dcfcd6d0ba5b61dca806f04" "site/built/episodes.md" "2024-11-05"
"episodes/editing.md" "128cafa31bca6233e1b8f565f4e884d8" "site/built/editing.md" "2024-11-12"
"episodes/editing.md" "7b5d6a45cfe297d06bf61326bea97251" "site/built/editing.md" "2024-11-12"
"episodes/example.Rmd" "215e3c4ed500fef3410f040349fb0a73" "site/built/example.md" "2024-11-05"
"episodes/deployment.md" "f15377cac190ef5435a60d074aa8aeb3" "site/built/deployment.md" "2024-11-05"
"episodes/update.md" "e3939117fb9b893806c4f43e7f08594e" "site/built/update.md" "2024-11-05"
Expand Down

0 comments on commit 45215db

Please sign in to comment.