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: content/contributing/style-guide-and-content-model/style-guide.md
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,16 +151,34 @@ A CTA is an explicit direction to the user to take an immediate action, such as
151
151
152
152
For example, the CTA on [AUTOTITLE](/enterprise-cloud@latest/admin/overview/setting-up-a-trial-of-github-enterprise-cloud) links to [an enterprise sales page](https://github.com/account/enterprises/new?ref_product=ghec&ref_type=trial&ref_style=text&ref_plan=enterprise) on {% data variables.product.prodname_dotcom_the_website %}.
153
153
154
-
Style a CTA using the following format.
154
+
### Required CTA parameters
155
+
156
+
*`ref_product`:
157
+
***Purpose**: The GitHub product the CTA leads users to.
158
+
***Allowed values**: `copilot`, `ghec`, `desktop`
159
+
***Example**: `ref_product=copilot`
160
+
*`ref_type`:
161
+
***Purpose**: The type of action the CTA encourages users to take.
Replace the placeholders with the relevant information for your CTA.
161
-
*`DESTINATION/URL`: The URL that the button should navigate to.
162
-
*`CTA+NAME`: The name of the CTA. For example, `GHEC+trial` or `Copilot+Business+Trial`.
163
-
*`LOCATION`: The location in {% data variables.product.prodname_docs %} of the CTA. For example, `Setting+up+a+trial+of+GitHub+Enterprise+Cloud`.
179
+
### Getting help with CTAs
180
+
181
+
For help building a valid CTA URL, you can enter the command `npm run cta-builder` in your docs repo checkout. Answer each question and at the end you'll see your valid CTA.
0 commit comments