Skip to content

Commit 7586a53

Browse files
authored
Update liquid-helpers.md
1 parent 098b69a commit 7586a53

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

contributing/liquid-helpers.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ If your content is describing a new feature that was added to GitHub.com and wil
9292
In this example:
9393

9494
- `if currentVersion == "free-pro-team@latest"` will include the content for GitHub.com output.
95-
- `or currentVersion ver_gt "enterprise-server@2.21"` will include the content for releases *after* Enterprise 2.21, which means the content will be included for 2.7+.
95+
- `or currentVersion ver_gt "enterprise-server@2.21"` will include the content for releases *after* Enterprise 2.21, which means the content will be included for 2.22+.
9696
- `{% endif %}` ends the statement.
9797

9898
#### Including content for *changed* Dotcom features that will also change in Enterprise
9999

100100
If your content is describing a change to existing functionality in Dotcom, such as changed UI text or a more simple means of completing a task, use this logic:
101101

102102
```
103-
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "2.20" %}This is the new way of doing things {% else %}This is the old way of doing things {% endif %}
103+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.20" %}This is the new way of doing things {% else %}This is the old way of doing things {% endif %}
104104
```
105105

106106
In this example:
@@ -115,12 +115,11 @@ In this example:
115115
If your content is describing a change to existing functionality in Dotcom, and that functionality doesn't exist in all older Enterprise versions, use logic like this:
116116

117117
```
118-
{% if currentVersion == 'dotcom' or currentVersion ver_gt "2.20" %}
118+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.20" %}
119119
120120
This is the new way of doing things.
121121
122-
{% endif %}
123-
{% if currentVersion ver_gt "enterprise-server@2.19" and currentVersion ver_lt "2.21" %}
122+
{% elsif currentVersion ver_gt "enterprise-server@2.19" and currentVersion ver_lt "enterprise-server@2.21" %}
124123
125124
This is the old way of doing things (which did not exist before 2.20).
126125
@@ -130,8 +129,8 @@ This is the old way of doing things (which did not exist before 2.20).
130129
In this example:
131130

132131
- `if currentVersion == "free-pro-team@latest"` will include the content for GitHub.com output.
133-
- `or currentVersion ver_gt "2.20"` will include the content for releases *after* Enterprise 2.20, which means the content will be included for 2.21+.
134-
- `elsif currentVersion ver_gt "enterprise-server@2.19" and currentVersion ver_lt "2.21"` means if the above is NOT true, and the version is 2.20, then display the content that follows, `This is the old way of doing things`. No content will be displayed for versions older than 2.20.
132+
- `or currentVersion ver_gt "enterprise-server@2.20"` will include the content for releases *after* Enterprise 2.20, which means the content will be included for 2.21+.
133+
- `elsif currentVersion ver_gt "enterprise-server@2.19" and currentVersion ver_lt "enterprise-server@2.21"` means if the above is NOT true, and the version is 2.20, then display the content that follows, `This is the old way of doing things`. No content will be displayed for versions older than 2.20.
135134
- `{% endif %}` ends the statement.
136135

137136
#### Including content for *new Enterprise features* that don't exist on Dotcom

0 commit comments

Comments
 (0)