Skip to content

Commit

Permalink
LRDOCS-10115 Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoun committed Feb 16, 2022
1 parent c7d3d5b commit 5ad05f6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions site/docs/_template/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ <h4 id="noResultsMessage"></h4>
name: 'commerce',
pathname: '/commerce/latest/en/search.html'
},
{
name: 'courses',
pathname: '/courses/latest/en/search.html'
},
{
name: 'dxp',
pathname: '/dxp/latest/en/search.html'
Expand All @@ -216,10 +220,6 @@ <h4 id="noResultsMessage"></h4>
name: 'dxp-cloud',
pathname: '/dxp-cloud/latest/en/search.html'
},
{
name: 'courses',
pathname: '/courses/latest/en/search.html'
},
{
name: 'reference',
pathname: '/reference/latest/en/search.html'
Expand All @@ -232,10 +232,10 @@ <h4 id="noResultsMessage"></h4>
currentDocProduct = 'analytics-cloud';
} else if (pathname.includes('commerce')) {
currentDocProduct = 'commerce'
} else if (pathname.includes('dxp-cloud')) {
currentDocProduct = 'dxp-cloud'
} else if (pathname.includes('courses')) {
currentDocProduct = 'courses'
} else if (pathname.includes('dxp-cloud')) {
currentDocProduct = 'dxp-cloud'
} 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 @@ -74,9 +74,9 @@ <h1 class="display">{{ _('Welcome to Liferay Docs') }}</h1>
<ul class="dropdown-menu" id="productDropdown">
<li data-producturl="/analytics-cloud/latest/{{ language }}/{{ pathto('search') }}">{% trans %}Analytics Cloud{% endtrans %}</li>
<li data-producturl="/commerce/latest/{{ language }}/{{ pathto('search') }}">{% trans %}Commerce{% endtrans %}</li>
<li data-producturl="/courses/latest/{{ language }}/{{ pathto('search') }}">{% trans %}Courses{% 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="/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
24 changes: 12 additions & 12 deletions site/homepage/_template/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ <h4>{% trans %}Product{% endtrans %}</h4>
class="custom-control-input"
name="productName"
type="radio"
value="dxp"
value="courses"
/>

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

Expand All @@ -110,10 +110,10 @@ <h4>{% trans %}Product{% endtrans %}</h4>
class="custom-control-input"
name="productName"
type="radio"
value="dxp-cloud"
value="dxp"
/>

<span class="custom-control-label">{% trans %}DXP Cloud{% endtrans %}</span>
<span class="custom-control-label">{% trans %}DXP / Portal{% endtrans %}</span>
</label>
</div>

Expand All @@ -124,10 +124,10 @@ <h4>{% trans %}Product{% endtrans %}</h4>
class="custom-control-input"
name="productName"
type="radio"
value="courses"
value="dxp-cloud"
/>

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

Expand Down Expand Up @@ -208,6 +208,10 @@ <h4 id="noResultsMessage"></h4>
name: 'commerce',
pathname: '/commerce/latest/en/search.html'
},
{
name: 'courses',
pathname: '/courses/latest/en/search.html'
},
{
name: 'dxp',
pathname: '/dxp/latest/en/search.html'
Expand All @@ -216,10 +220,6 @@ <h4 id="noResultsMessage"></h4>
name: 'dxp-cloud',
pathname: '/dxp-cloud/latest/en/search.html'
},
{
name: 'courses',
pathname: '/courses/latest/en/search.html'
},
{
name: 'reference',
pathname: '/reference/latest/en/search.html'
Expand All @@ -232,10 +232,10 @@ <h4 id="noResultsMessage"></h4>
currentDocProduct = 'analytics-cloud';
} else if (pathname.includes('commerce')) {
currentDocProduct = 'commerce'
} else if (pathname.includes('dxp-cloud')) {
currentDocProduct = 'dxp-cloud'
} else if (pathname.includes('courses')) {
currentDocProduct = 'courses'
} else if (pathname.includes('dxp-cloud')) {
currentDocProduct = 'dxp-cloud'
} else if (pathname.includes('reference')) {
currentDocProduct = 'reference'
}
Expand Down

0 comments on commit 5ad05f6

Please sign in to comment.