Skip to content

Commit 07553b2

Browse files
committed
no need for transition_url (theoretically)
1 parent 897fed0 commit 07553b2

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

_includes/check_transition_variables.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{% assign date = include.need_transition_date %}
22

3-
{% unless site.transition_url %}
4-
<div class="alert alert-danger">
5-
you need to specify the variable <code>transition_url</code>
6-
in <code>_config.yml</code>.
7-
</div>
8-
{% endunless %}
9-
103
{% if date == "true" %}
114
{% unless site.transition_date_prebeta %}
125
<div class="alert alert-danger">

_includes/life_cycle.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,23 @@
3333

3434

3535
{% comment %}
36-
Below we cover the 3 phases of lesson transition towards the Carpentries Workbench:
37-
- transition-step-1 (`transition_url` variable needed): we indicate that there
38-
is a new version of the lesson that is available for testing, and that it will be deprecated in the future.
39-
- transition-step-2 (`transition_url` and `transition_date` variables needed): we indicate that a new version of the lesson is avaiable with a deprecation date.
40-
- transition-step-3 (`transition_url` variable needed): the lesson is fully deprecated, and a redirect is set up to the new URL
36+
Below we cover the 2 phases of lesson transition towards the Carpentries Workbench:
37+
Variables needed:
38+
- transition_date_prebeta: the date of the prebeta stage
39+
- transition_date_beta: the date of the beta stage
40+
- transition_date_prerelease: the date of the prerelease stage
41+
42+
- transition-step-1: We notify that there is a snapshot of the lesson available for testing, and that it will supersede this version.
43+
- transition-step-2 We indicate that this version of the lesson is a snapshot and a new version of the lesson is avaiable and will supersede this version at a given date.
4144
{% endcomment %}
4245

4346
{% elsif site.life_cycle == "transition-step-1" %}
4447
{% include check_transition_variables.html need_transition_date = 'true' %}
4548

4649
<div class="alert alert-warning life-cycle">
4750
A snapshot of this lesson from {{ site.transition_date_prebeta }} is being tested on
48-
<a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>: <a href="{{ site.transition_url }}">{{ site.transition_url }}</a>.
51+
<a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>:
52+
<a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>.
4953
<br>
5054
<b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>.
5155
<button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close">
@@ -59,7 +63,7 @@
5963
<div class="alert alert-danger alert-dismissible life-cycle" role="alert">
6064
This lesson is a <b>snapshot from {{ site.transition_date_beta }}</b>.
6165
A newer version is being tested on <a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>:
62-
<a href="{{ site.transition_url }}">{{ site.transition_url }}</a>.
66+
<a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>.
6367
<br>
6468
<b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>.
6569
<button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close">

0 commit comments

Comments
 (0)