Skip to content

Commit

Permalink
LRDOCS-10115 Rename learning-paths to courses
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoun committed Feb 16, 2022
1 parent dee1ee2 commit c7d3d5b
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Learning Paths
# Courses

Coming soon!

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions site/docs/_template/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
<option value="dxp-cloud">
{% trans %}DXP Cloud{% endtrans %}
</option>
<option value="learning-paths">
{% trans %}Learning Paths{% endtrans %}
<option value="courses">
{% trans %}Courses{% endtrans %}
</option>
<option value="reference">
{% trans %}Reference{% endtrans %}
Expand Down Expand Up @@ -282,8 +282,8 @@
window.location.pathname = '/commerce/latest/en/index.html';
} else if (target === 'dxp-cloud') {
window.location.pathname = '/dxp-cloud/latest/en/index.html';
} else if (target === 'learning-paths') {
window.location.pathname = '/learning-paths/latest/en/index.html';
} else if (target === 'courses') {
window.location.pathname = '/courses/latest/en/index.html';
} else if (target === 'reference') {
window.location.pathname = '/reference/latest/en/index.html';
} else {
Expand Down
12 changes: 6 additions & 6 deletions site/docs/_template/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ <h4>{% trans %}Product{% endtrans %}</h4>
class="custom-control-input"
name="productName"
type="radio"
value="learning-paths"
value="courses"
/>

<span class="custom-control-label">{% trans %}Learning Paths{% endtrans %}</span>
<span class="custom-control-label">{% trans %}Courses{% endtrans %}</span>
</label>
</div>

Expand Down Expand Up @@ -217,8 +217,8 @@ <h4 id="noResultsMessage"></h4>
pathname: '/dxp-cloud/latest/en/search.html'
},
{
name: 'learning-paths',
pathname: '/learning-paths/latest/en/search.html'
name: 'courses',
pathname: '/courses/latest/en/search.html'
},
{
name: 'reference',
Expand All @@ -234,8 +234,8 @@ <h4 id="noResultsMessage"></h4>
currentDocProduct = 'commerce'
} else if (pathname.includes('dxp-cloud')) {
currentDocProduct = 'dxp-cloud'
} else if (pathname.includes('learning-paths')) {
currentDocProduct = 'learning-paths'
} else if (pathname.includes('courses')) {
currentDocProduct = 'courses'
} else if (pathname.includes('reference')) {
currentDocProduct = 'reference'
}
Expand Down
2 changes: 1 addition & 1 deletion site/homepage/_template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h1 class="display">{{ _('Welcome to Liferay Docs') }}</h1>
<li data-producturl="/commerce/latest/{{ language }}/{{ pathto('search') }}">{% trans %}Commerce{% endtrans %}</li>
<li data-producturl="/dxp/latest/{{ language }}/{{ pathto('search') }}">{% trans %}DXP / Portal{% endtrans %}</li>
<li data-producturl="/dxp-cloud/latest/{{ language }}/{{ pathto('search') }}">{% trans %}DXP Cloud{% endtrans %}</li>
<li data-producturl="/learning-paths/latest/{{ language }}/{{ pathto('search') }}">{% trans %}Learning Paths{% endtrans %}</li>
<li data-producturl="/courses/latest/{{ language }}/{{ pathto('search') }}">{% trans %}Courses{% endtrans %}</li>
<li data-producturl="/reference/latest/{{ language }}/{{ pathto('search') }}">{% trans %}Reference{% endtrans %}</li>
</ul>
</div>
Expand Down
12 changes: 6 additions & 6 deletions site/homepage/_template/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ <h4>{% trans %}Product{% endtrans %}</h4>
class="custom-control-input"
name="productName"
type="radio"
value="learning-paths"
value="courses"
/>

<span class="custom-control-label">{% trans %}Learning Paths{% endtrans %}</span>
<span class="custom-control-label">{% trans %}Courses{% endtrans %}</span>
</label>
</div>

Expand Down Expand Up @@ -217,8 +217,8 @@ <h4 id="noResultsMessage"></h4>
pathname: '/dxp-cloud/latest/en/search.html'
},
{
name: 'learning-paths',
pathname: '/learning-paths/latest/en/search.html'
name: 'courses',
pathname: '/courses/latest/en/search.html'
},
{
name: 'reference',
Expand All @@ -234,8 +234,8 @@ <h4 id="noResultsMessage"></h4>
currentDocProduct = 'commerce'
} else if (pathname.includes('dxp-cloud')) {
currentDocProduct = 'dxp-cloud'
} else if (pathname.includes('learning-paths')) {
currentDocProduct = 'learning-paths'
} else if (pathname.includes('courses')) {
currentDocProduct = 'courses'
} else if (pathname.includes('reference')) {
currentDocProduct = 'reference'
}
Expand Down

0 comments on commit c7d3d5b

Please sign in to comment.