Skip to content

Commit

Permalink
#291: Add first attempt at adding demo for load environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehogan committed Oct 11, 2023
1 parent 4c08c16 commit 619b89c
Show file tree
Hide file tree
Showing 6 changed files with 2,852 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _episodes/01-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ keypoints:
to run ESMValTool as quickly as possible without having to go through the
whole tutorial"
- "Use the `module load` command to load the ESMValTool environment,
see the [Installation][lesson-installation]
episode for more details and use `esmvaltool --help` to check the ESMValTool
environment"
see the Installation episode for more details and use `esmvaltool --help` to
check the ESMValTool environment"
- "Use `esmvaltool config get_config_user` to create the ESMValTool user
configuration file"
- "Use `esmvaltool run <recipe>.yml` to run a recipe"
Expand Down Expand Up @@ -59,6 +58,8 @@ keypoints:
> {: .language-bash}
{: .challenge}

{% include load_environment.html %}

> ## How do I configure ESMValTool?
>
> - Create the ESMValTool user configuration file (the file is written by
Expand Down
16 changes: 16 additions & 0 deletions _includes/load_environment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div id="demo"></div>
<script src="../assets/js/asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create(
'../load_environment.cast',
document.getElementById('demo'), {
rows: 24,
cols: 110,
autoPlay: true,
speed: 2,
fit: false,
terminalFontSize: "12px",
idleTimeLimite: 1,
loop: true,
});
</script>
1 change: 1 addition & 0 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/lesson.css" />
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/syntax.css" />
<link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/asciinema-player.css" />

{% include favicons.html %}

Expand Down
Loading

0 comments on commit 619b89c

Please sign in to comment.