Skip to content

Commit e095456

Browse files
authored
Hello Nextflow: Embed videos (#555)
- Hello Nextflow: Add embedded walkthrough videos - Cosmetic improvements: * Different icons for different training courses * Homepage icons: Nextflow green * Add pymdownx.blocks.caption for block figcaptions - Freshen up announcement bar: * Add announcement for Nextflow training week
1 parent ec49b5f commit e095456

17 files changed

+164
-24
lines changed

docs/assets/overrides/main.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
{% extends "base.html" %} {% block announce %}
22
<div style="text-align: center">
3-
<span>Next community training</span>:
4-
<strong>{{ config.extra.announcement.date_text }}</strong> on YouTube, with
5-
support on Slack
6-
<span class="twemoji" style="margin-left: 0.5em">
7-
{% include ".icons/fontawesome/brands/youtube.svg" %}
8-
</span>
9-
<span class="twemoji" style="margin-right: 0.5em">
10-
{% include ".icons/fontawesome/brands/slack.svg" %}
11-
</span>
3+
{{ config.extra.announcement.text }}
4+
<strong>{{ config.extra.announcement.text_bold }}</strong>
125
<a
136
class="md-button"
14-
href="{{ config.extra.announcement.register_url }}"
7+
href="{{ config.extra.announcement.url }}"
158
target="_blank"
169
>
17-
Register here
10+
{{ config.extra.announcement.url_text }}
1811
<span class="twemoji"
1912
><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2013
<path

docs/assets/stylesheets/extra.css

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[data-md-color-scheme="slate"] {
44
--md-primary-fg-color: #58bd9f;
55
--md-primary-fg-color--light: #c3ead3;
6-
--md-primary-fg-color--dark: #1a7540;
6+
--md-primary-fg-color--dark: #087f68;
77
--md-admonition-icon--exercise: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 18h-2v-2h2v2m0-3h-2c0-3.25 3-3 3-5 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 2.5-3 2.75-3 5m9-3c0 5.18-3.95 9.45-9 9.95v-2.01c3.95-.49 7-3.86 7-7.94s-3.05-7.45-7-7.94V2.05c5.05.5 9 4.77 9 9.95M11 2.05v2.01c-1.46.18-2.8.76-3.91 1.62L5.67 4.26C7.15 3.05 9 2.25 11 2.05M4.06 11H2.05c.2-2 1-3.85 2.21-5.33L5.68 7.1A7.902 7.902 0 0 0 4.06 11M11 19.94v2.01c-2-.2-3.85-.99-5.33-2.21l1.42-1.42c1.11.86 2.45 1.44 3.91 1.62M2.05 13h2.01c.18 1.46.76 2.8 1.62 3.91l-1.42 1.42A10.013 10.013 0 0 1 2.05 13Z"></path></svg>');
88
--md-admonition-icon--result: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.5 2h-13C3.6 2 2 3.6 2 5.5v13C2 20.4 3.6 22 5.5 22H16l6-6V5.5C22 3.6 20.4 2 18.5 2M7 12.5l1.3-1.4 2.1 2.1L15.6 8 17 9.4 10.5 16 7 12.5m8 7.5v-1.5c0-1.9 1.6-3.5 3.5-3.5H20l-5 5Z"></path></svg>');
99
--md-admonition-icon--solution: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.5 2h-13C3.6 2 2 3.6 2 5.5v13C2 20.4 3.6 22 5.5 22H16l6-6V5.5C22 3.6 20.4 2 18.5 2M7 12.5l1.3-1.4 2.1 2.1L15.6 8 17 9.4 10.5 16 7 12.5m8 7.5v-1.5c0-1.9 1.6-3.5 3.5-3.5H20l-5 5Z"></path></svg>');
@@ -240,3 +240,31 @@ h3 .enumerate-headings-plugin {
240240
.md-typeset table:not([class]) {
241241
font-size: 0.8rem;
242242
}
243+
244+
/* YouTube video embeds */
245+
.md-typeset figure:has(.video-wrapper) {
246+
width: 100%;
247+
}
248+
.video-wrapper {
249+
position: relative;
250+
display: block;
251+
height: 0;
252+
padding: 0;
253+
overflow: hidden;
254+
padding-bottom: 56.25%;
255+
}
256+
.video-wrapper > iframe {
257+
position: absolute;
258+
top: 0;
259+
bottom: 0;
260+
left: 0;
261+
width: 100%;
262+
height: 100%;
263+
border: 0;
264+
}
265+
.youtube {
266+
color: #ee0f0f;
267+
}
268+
.nextflow-primary {
269+
color: #58bd9f;
270+
}

docs/hello_nextflow/00_orientation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Orientation
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/G3CV-FcV-rc?si=nyLvwhrSB2m1NPc5&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } See the [whole playlist on the Nextflow YouTube channel](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
11+
## GitHub Codespaces
12+
313
The GitHub Codespaces environment contains all the software, code and data necessary to work through this training course, so you don't need to install anything yourself.
414
However, you do need a (free) GitHub account to log in, and you should take a few minutes to familiarize yourself with the interface.
515

docs/hello_nextflow/00_orientation.pt.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Orientação
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/G3CV-FcV-rc?si=nyLvwhrSB2m1NPc5&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } Veja a [playlist completa no canal de YouTube do Nextflow](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
311
O ambiente GitHub Codespaces contém todo o software, código e dados necessários para este curso. Você não precisa instalar nada por conta própria. No entanto, é necessária uma conta (gratuita) para logar - e recomendamos que você reserve alguns minutos para se familiarizar com a interface.
412

513
Caso ainda não tenha feito isso, siga [este link](../../envsetup/) antes de prosseguir.

docs/hello_nextflow/01_hello_world.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Part 1: Hello World
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/8X2hHI-9vms?si=F0t9LFYLjAWoyRXj&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } See the [whole playlist on the Nextflow YouTube channel](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
311
In this first part of the Hello Nextflow training course, we ease into the topic with a very basic domain-agnostic Hello World example, which we'll progressively build up to demonstrate the usage of foundational Nextflow logic and components.
412

513
!!! note

docs/hello_nextflow/02_hello_world.pt.md renamed to docs/hello_nextflow/01_hello_world.pt.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Part 1: Hello World
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/8X2hHI-9vms?si=F0t9LFYLjAWoyRXj&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } Veja a [playlist completa no canal de YouTube do Nextflow](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
311
Um exemplo "Hello World!" é um modelo minimalista projetado para demonstrar a sintaxe básica e a estrutura de uma linguagem de programação ou framework de software. Esse exemplo normalmente consiste em exibir a frase "Hello, World!" no dispositivo de saída, como o console ou terminal, ou gravá-la em um arquivo.
412

513
Nesta primeira parte do curso de treinamento Hello Nextflow, introduzimos o tópico com um exemplo Hello World muito simples e independente de domínio, que será gradualmente expandido para demonstrar o uso dos componentes e da lógica fundamental do Nextflow.

docs/hello_nextflow/02_hello_channels.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Part 2: Hello Channels
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/lJ41WMMm44M?si=xCItHLiOQWqoqBB9&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } See the [whole playlist on the Nextflow YouTube channel](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
311
In Part 1 of this course (Hello World), we showed you how to provide a variable input to a process by providing the input in the process call directly: `sayHello(params.greet)`.
412
That was a deliberately simplified approach.
513
In practice, that approach has major limitations; namely that it only works for very simple cases where we only want to run the process once, on a single value.

docs/hello_nextflow/03_hello_workflow.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Part 3: Hello Workflow
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/zJP7cUYPEbA?si=Irl9nAQniDyICp2b&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } See the [whole playlist on the Nextflow YouTube channel](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
311
Most real-world workflows involve more than one step.
412
In this training module, you'll learn how to connect processes together in a multi-step workflow.
513

docs/hello_nextflow/04_hello_modules.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Part 4: Hello Modules
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/Xxp_menS0E8?si=0AWnXB7xqHAzJdJV&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } See the [whole playlist on the Nextflow YouTube channel](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
311
This section covers how to organize your workflow code to make development and maintenance of your pipeline more efficient and sustainable.
412
Specifically, we are going to demonstrate how to use **modules**.
513

docs/hello_nextflow/05_hello_containers.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Part 5: Hello Containers
22

3+
<div class="video-wrapper">
4+
<iframe width="560" height="315" src="https://www.youtube.com/embed/5PyOWjKnNmg?si=QinuAnFwFj-Z8CrO&amp;list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
5+
</div>
6+
7+
/// caption
8+
:fontawesome-brands-youtube:{ .youtube } See the [whole playlist on the Nextflow YouTube channel](https://www.youtube.com/playlist?list=PLPZ8WHdZGxmXiHf8B26oB_fTfoKQdhlik).
9+
///
10+
311
In Parts 1-4 of this training course, you learned how to use the basic building blocks of Nextflow to assemble a simple workflow capable of processing some text, parallelizing execution if there were multiple inputs, and collecting the results for further processing.
412

513
However, you were limited to basic UNIX tools available in your environment.

0 commit comments

Comments
 (0)