You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing/liquid-helpers.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,15 +92,15 @@ If your content is describing a new feature that was added to GitHub.com and wil
92
92
In this example:
93
93
94
94
-`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+.
96
96
-`{% endif %}` ends the statement.
97
97
98
98
#### Including content for *changed* Dotcom features that will also change in Enterprise
99
99
100
100
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:
101
101
102
102
```
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 %}
104
104
```
105
105
106
106
In this example:
@@ -115,12 +115,11 @@ In this example:
115
115
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:
116
116
117
117
```
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" %}
119
119
120
120
This is the new way of doing things.
121
121
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" %}
124
123
125
124
This is the old way of doing things (which did not exist before 2.20).
126
125
@@ -130,8 +129,8 @@ This is the old way of doing things (which did not exist before 2.20).
130
129
In this example:
131
130
132
131
-`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.
135
134
-`{% endif %}` ends the statement.
136
135
137
136
#### Including content for *new Enterprise features* that don't exist on Dotcom
0 commit comments