Skip to content

Commit 619b89c

Browse files
committed
#291: Add first attempt at adding demo for load environment
1 parent 4c08c16 commit 619b89c

File tree

6 files changed

+2852
-3
lines changed

6 files changed

+2852
-3
lines changed

_episodes/01-quickstart.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ keypoints:
2424
to run ESMValTool as quickly as possible without having to go through the
2525
whole tutorial"
2626
- "Use the `module load` command to load the ESMValTool environment,
27-
see the [Installation][lesson-installation]
28-
episode for more details and use `esmvaltool --help` to check the ESMValTool
29-
environment"
27+
see the Installation episode for more details and use `esmvaltool --help` to
28+
check the ESMValTool environment"
3029
- "Use `esmvaltool config get_config_user` to create the ESMValTool user
3130
configuration file"
3231
- "Use `esmvaltool run <recipe>.yml` to run a recipe"
@@ -59,6 +58,8 @@ keypoints:
5958
> {: .language-bash}
6059
{: .challenge}
6160

61+
{% include load_environment.html %}
62+
6263
> ## How do I configure ESMValTool?
6364
>
6465
> - Create the ESMValTool user configuration file (the file is written by

_includes/load_environment.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div id="demo"></div>
2+
<script src="../assets/js/asciinema-player.min.js"></script>
3+
<script>
4+
AsciinemaPlayer.create(
5+
'../load_environment.cast',
6+
document.getElementById('demo'), {
7+
rows: 24,
8+
cols: 110,
9+
autoPlay: true,
10+
speed: 2,
11+
fit: false,
12+
terminalFontSize: "12px",
13+
idleTimeLimite: 1,
14+
loop: true,
15+
});
16+
</script>

_layouts/base.html

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/bootstrap-theme.css" />
1717
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/lesson.css" />
1818
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/syntax.css" />
19+
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/asciinema-player.css" />
1920

2021
{% include favicons.html %}
2122

0 commit comments

Comments
 (0)