Skip to content

Commit

Permalink
Merge branch 'main' into sync-with-carpentries
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft authored Aug 5, 2024
2 parents 1f1e219 + 9cb4167 commit 561db58
Show file tree
Hide file tree
Showing 46 changed files with 56,654 additions and 305 deletions.
Empty file removed .Rhistory
Empty file.
8 changes: 8 additions & 0 deletions .github/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Automatically sync fork with upstream
version: "1"
rules:
- base: carpentries-main
upstream: carpentries:main
mergeUnstable: false
label: ":arrow_heading_down: pull"
conflictLabel: "merge-conflict"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.Rproj.user
node_modules/*
docs
.Rhistory
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: varnish
Title: Front-end for The Carpentries Lesson Infrastructure
Version: 1.0.3
Version: 1.0.3.9000-1
Authors@R: c(
person(given = "Robert",
family = "Davey",
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# {varnish}: Template for The Carpentries Workbench <img src='man/figures/logo.png' align='right' alt='' width=120 />
# Template for Carpentries Lessons (with L2D themes)


[![varnish status badge](https://carpentries.r-universe.dev/badges/varnish)](https://carpentries.r-universe.dev)

Expand Down Expand Up @@ -30,7 +31,7 @@ uglifyjs. Their sources live in the [`source/`](source/) folder with directives
to include their dependencies (bootstrap, jquery, feather).

The minified versions are built via GitHub actions any time one of the source
files is changed.
files is changed.

To build this locally, you need to make sure to have a working version of
`node` and `npm`, which can be installed [via the node version manager, nvm](https://github.com/nvm-sh/nvm#intro).
Expand Down Expand Up @@ -121,7 +122,7 @@ template:
Each of these parameters can be accessed via the `{{ yaml }}` mustache context.
For example, this adds a paragraph describing the license provided that the
`{{ license }}` parameter is present in the yaml:
`{{ license }}` parameter is present in the yaml:

```html
{{#yaml}}{{#license}}
Expand All @@ -138,8 +139,9 @@ For example, this adds a paragraph describing the license provided that the

- `{{ instructor }}`: a boolean indicating instructor view
- `{{ aio }}`: a boolean indicating that the aio page should be included
- `{{ aio_pdf }}`: a boolean indicating that the aio PDF page should be included
- `{{ this_page }}`: The file-only HTML path of the current page (e.g. `index.html` or `introduction.html`).
- `{{{ schedule }}}`: The HTML sidebar of the schedule of episodes.
- `{{{ schedule }}}`: The HTML sidebar of the schedule of episodes.
- `{{{ resources }}}`: an additional part of the sidebar giving extra resource elements avaialable in mobile view.

[{pkgdown}]: https://r-lib.github.io/pkgdown
Expand Down
Binary file modified inst/pkgdown/assets/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8,800 changes: 8,800 additions & 0 deletions inst/pkgdown/assets/assets/images/l2d-logo-sm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14,979 changes: 14,979 additions & 0 deletions inst/pkgdown/assets/assets/images/l2d-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/scripts.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/styles.css.map

Large diffs are not rendered by default.

Binary file modified inst/pkgdown/assets/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/favicon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/favicon-196x196.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/favicon.ico
Binary file not shown.
Binary file modified inst/pkgdown/assets/favicons/cp/mstile-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed inst/pkgdown/assets/favicons/cp/mstile-310x150.png
Binary file not shown.
Binary file modified inst/pkgdown/assets/favicons/cp/mstile-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/favicons/cp/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/pkgdown/assets/mstile-150x150.png
8,866 changes: 8,799 additions & 67 deletions inst/pkgdown/assets/safari-pinned-tab.svg

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions inst/pkgdown/templates/content-chapter.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ <h1>{{& pagetitle}}</h1>
<button role="button" aria-pressed="false" tabindex="0" id="expand-code" class="pull-right" data-expand="{{ translate.ExpandAllSolutions }} " data-collapse="{{ translate.CollapseAllSolutions }} "> {{ translate.ExpandAllSolutions }} <i aria-hidden="true" data-feather="plus"></i></button>
</div>

{{#this_page_pdf}}
<p><a href="{{#site}}{{root}}{{/site}}{{this_page_pdf}}"><strong>Download Chapter PDF</strong></a></p>
{{/this_page_pdf}}

{{{body}}}

</div> <!-- / div.lesson-content -->
Expand Down
23 changes: 0 additions & 23 deletions inst/pkgdown/templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
<footer class="row footer mx-md-3">
<hr/>
<div class="col-md-6">
{{# translate.ThisLessonCoC }}<p>{{& translate.ThisLessonCoC }}</p>{{/ translate.ThisLessonCoC }}
{{#yaml}}
<p>
{{^old-url}}
<a href="{{#yaml}}{{source}}/edit/{{branch}}/{{/yaml}}{{file_source}}{{^file_source}}README.md{{/file_source}}">{{ translate.EditOnGH }}</a>
{{/old-url}}
{{#old-url}}
{{#pre-beta-date}}
<a href="{{#yaml}}https://carpentries.github.io/workbench/contributor/pre-beta.html?id={{source}}/edit/{{branch}}/{{/yaml}}{{file_source}}{{^file_source}}README.md{{/file_source}}">{{ translate.EditOnGH }}</a>
{{/pre-beta-date}}
{{^pre-beta-date}}
<a href="{{#yaml}}{{source}}/edit/{{branch}}/{{/yaml}}{{file_source}}{{^file_source}}README.md{{/file_source}}">{{ translate.EditOnGH }}</a>
{{/pre-beta-date}}
{{/old-url}}
{{/yaml}}
| <a href="{{#yaml}}{{source}}/blob/{{branch}}/{{/yaml}}CONTRIBUTING.md">{{ translate.Contributing }}</a>
| <a href="{{#yaml}}{{source}}/{{/yaml}}">{{ translate.Source }}</a></p>
<p><a href="{{#yaml}}{{source}}/blob/{{branch}}/{{/yaml}}{{citation}}">{{ translate.Cite }}</a> | <a href="mailto:{{#yaml}}{{contact}}{{/yaml}}">{{ translate.Contact }}</a> | <a href="https://carpentries.org/about/">{{ translate.About }}</a></p>
</div>
<div class="col-md-6">
{{#yaml}}{{#license}}
<p>{{& translate.MaterialsLicensedUnder }}</p>
{{/license}}{{/yaml}}
<p>{{& translate.TemplateLicense }}</p>
<p>{{& translate.BuiltWith }}</p>
</div>
Expand Down
14 changes: 2 additions & 12 deletions inst/pkgdown/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,23 +189,13 @@
<a class="nav-link" href="{{#site}}{{root}}{{/site}}key-points.html">{{ translate.KeyPoints }}</a>
</li>
{{/overview}}
<li class="nav-item">
<a class="nav-link" href="{{#site}}{{root}}{{/site}}reference.html#glossary">{{ translate.Glossary }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{#site}}{{root}}{{/site}}profiles.html">{{ translate.LearnerProfiles }}</a>
</li>
{{/instructor}}
{{#more}}
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" id="navbarDropdown" data-bs-toggle="dropdown" aria-expanded="false">
{{ translate.More }} <i data-feather="chevron-down"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
{{& more }}
</ul>
<li class="nav-item">
<a class="nav-link" href="https://learntodiscover.github.io/L2D-Handbook/" target="_blank" rel="noopener noreferrer">L2D Handbook</a>
</li>
{{/more}}
</ul>
</div>
<!--
Expand Down
Loading

0 comments on commit 561db58

Please sign in to comment.