@@ -60,105 +60,26 @@ versions:
6060<!-- {% link_with_intro /reference %} -->
6161
6262<!-- Code examples -->
63+ {% assign actionsCodeExamples = site.data.variables.action_code_examples %}
64+ {% if actionsCodeExamples %}
6365<div class =" my-6 pt-6 " >
6466 <h2 class =" mb-2 font-mktg h1 " >Code examples</h2 >
6567
68+ <div class =" pr-lg-3 mb-5 mt-3 " >
69+ <input class="js-code-example-filter input-lg py-2 px-3 col-12 col-lg-8 form-control" placeholder="Search code examples" type="text" autocomplete="off" />
70+ </div >
71+
6672 <div class =" d-flex flex-wrap gutter " >
67- <div class="col-12 col-lg-4 mb-4">
68- <a class="Box d-block hover-grow no-underline text-gray-dark" href="/actions/guides/building-and-testing-nodejs">
69- <div class="p-4">
70- <h4>Building and testing Node.js</h4>
71- <p class="mt-2 mb-4">Use GitHub Actions to power CI in your Node.js application.</p>
72- <div class="d-flex">
73- <span class="IssueLabel text-white bg-blue mr-2">JavaScript/TypeScript</span>
74- <span class="IssueLabel text-white bg-blue mr-2">CI</span>
75- </div>
76- </div>
77- <footer class="border-top p-4 text-gray d-flex flex-items-center">
78- {% octicon "workflow" class="flex-shrink-0" %}
79- <span class="ml-2">/guides/building-and-testing-nodejs</span>
80- </footer>
81- </a>
82- </div>
83- <div class="col-12 col-lg-4 mb-4">
84- <a class="Box d-block hover-grow no-underline text-gray-dark" href="/actions/guides/building-and-testing-python">
85- <div class="p-4">
86- <h4>Building and testing Python</h4>
87- <p class="mt-2 mb-4">Use GitHub Actions to power CI in your Python application.</p>
88- <div class="d-flex">
89- <span class="IssueLabel text-white bg-blue mr-2">Python</span>
90- <span class="IssueLabel text-white bg-blue mr-2">CI</span>
91- </div>
92- </div>
93- <footer class="border-top p-4 text-gray d-flex flex-items-center">
94- {% octicon "workflow" class="flex-shrink-0" %}
95- <span class="ml-2">/guides/building-and-testing-python</span>
96- </footer>
97- </a>
98- </div>
99- <div class="col-12 col-lg-4 mb-4">
100- <a class="Box d-block hover-grow no-underline text-gray-dark" href="/actions/guides/building-and-testing-java-with-maven">
101- <div class="p-4">
102- <h4>Building and testing Java with Maven</h4>
103- <p class="mt-2 mb-4">Use GitHub Actions to power CI in your Java project with Maven.</p>
104- <div class="d-flex">
105- <span class="IssueLabel text-white bg-blue mr-2">Java</span>
106- <span class="IssueLabel text-white bg-blue mr-2">CI</span>
107- </div>
108- </div>
109- <footer class="border-top p-4 text-gray d-flex flex-items-center">
110- {% octicon "workflow" class="flex-shrink-0" %}
111- <span class="ml-2">/guides/building-and-testing-java-with-maven</span>
112- </footer>
113- </a>
114- </div>
115- <div class="col-12 col-lg-4 mb-4">
116- <a class="Box d-block hover-grow no-underline text-gray-dark" href="/actions/guides/building-and-testing-java-with-gradle">
117- <div class="p-4">
118- <h4>Building and testing Java with Gradle</h4>
119- <p class="mt-2 mb-4">Use GitHub Actions to power CI in your Java project with Gradle.</p>
120- <div class="d-flex">
121- <span class="IssueLabel text-white bg-blue mr-2">Java</span>
122- <span class="IssueLabel text-white bg-blue mr-2">CI</span>
123- </div>
124- </div>
125- <footer class="border-top p-4 text-gray d-flex flex-items-center">
126- {% octicon "workflow" class="flex-shrink-0" %}
127- <span class="ml-2">/guides/building-and-testing-java-with-gradle</span>
128- </footer>
129- </a>
130- </div>
131- <div class="col-12 col-lg-4 mb-4">
132- <a class="Box d-block hover-grow no-underline text-gray-dark" href="/actions/guides/building-and-testing-java-with-ant">
133- <div class="p-4">
134- <h4>Building and testing Java with Ant</h4>
135- <p class="mt-2 mb-4">Use GitHub Actions to power CI in your Java project with Ant.</p>
136- <div class="d-flex">
137- <span class="IssueLabel text-white bg-blue mr-2">Java</span>
138- <span class="IssueLabel text-white bg-blue mr-2">CI</span>
139- </div>
140- </div>
141- <footer class="border-top p-4 text-gray d-flex flex-items-center">
142- {% octicon "workflow" class="flex-shrink-0" %}
143- <span class="ml-2">/guides/building-and-testing-java-with-ant</span>
144- </footer>
145- </a>
146- </div>
147- <div class="col-12 col-lg-4 mb-4">
148- <a class="Box d-block hover-grow no-underline text-gray-dark" href="/actions/guides/publishing-nodejs-packages">
149- <div class="p-4">
150- <h4>Publishing Node.js packages</h4>
151- <p class="mt-2 mb-4">Use GitHub Actions to push your Node.js package to GitHub Packages or npm.</p>
152- <div class="d-flex">
153- <span class="IssueLabel text-white bg-blue mr-2">JavaScript/TypeScript</span>
154- <span class="IssueLabel text-white bg-blue mr-2">CI</span>
155- </div>
156- </div>
157- <footer class="border-top p-4 text-gray d-flex flex-items-center">
158- {% octicon "workflow" class="flex-shrink-0" %}
159- <span class="ml-2">/guides/publishing-nodejs-packages</span>
160- </footer>
161- </a>
162- </div>
73+ {% render 'code-example-card' for actionsCodeExamples as example %}
74+ </div >
75+
76+ <button class =" js-code-example-show-more btn btn-outline float-right " >Show more {% octicon "arrow-right" %}</button >
77+
78+ <div class =" js-code-example-no-results d-none py-4 text-center text-gray font-mktg " >
79+ <div class="mb-3">{% octicon "search" width="24" %}</div>
80+ <h3 class="text-normal">Sorry, there is no result for <strong class="js-code-example-filter-value"></strong></h3>
81+ <p class="my-3 f4">It looks like we don't have an example that fits your filter.<br>Try another filter or add your code example</p>
82+ <a href="https://github.com/github/docs/blob/HEAD/data/variables/action_code_examples.yml">Learn how to add a code example {% octicon "arrow-right" %}</a>
16383 </div >
16484</div >
85+ {% endif %}
0 commit comments