Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3235 from magento-devdocs/decom-search
Browse files Browse the repository at this point in the history
COMDOX-452: Decommission search for devdocs
  • Loading branch information
bdenham authored Jan 31, 2023
2 parents 4b13f05 + 9692fb3 commit 52cd42f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 33 deletions.
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
GIT
remote: https://github.com/magento-devdocs/devdocs-theme.git
revision: 3f1ef03f46ca3489289f72f102b2f556d401d1d1
revision: ec880cfbf9f79abe5628be4eab95db30a58839fa
specs:
devdocs (18)
devdocs (20)
jekyll (>= 4.0)

GEM
Expand Down Expand Up @@ -180,6 +180,7 @@ PLATFORMS
x86-mswin32
x86_64-darwin-19
x86_64-darwin-21
x86_64-darwin-22

DEPENDENCIES
devdocs!
Expand Down
4 changes: 3 additions & 1 deletion src/_includes/home/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<h1 class="spectrum-Heading1 spectrum-Heading--XXL">{{site.data.var.ee}} {{ page.guide_version }} Developer Guide</h1>
<p class="lead">Everything you need to build and manage a customized Commerce store.</p>

{% include layout/search-form.html %}
{% if page.guide_version != "2.4" %}
{% include layout/search-form.html %}
{% endif %}

</div>
</section><!-- END home-intro -->
22 changes: 1 addition & 21 deletions src/_includes/layout/header-scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
};

var indices = [{
label: "DevDocs",
label: "Results",
name: "devdocs",
facetFilters: [
["guide_version: {% if page.guide_version == nil %}{{ site.version }}{% else %}{{ page.guide_version }}{% endif %}",
Expand All @@ -19,26 +19,6 @@
attribute: "functional_areas"
}],
baseUrl: "{{ site.baseurl }}"
},
{
label: "User Guide",
name: "merchdocs",
baseUrl: "{{ site.user_guide_url }}"
},
{
label: "Commerce Reporting User Guide",
name: "merchdocs-mbi",
baseUrl: "https://docs.magento.com/mbi"
},
{
label: "PWA",
name: "pwa-devdocs",
baseUrl: "https://developer.adobe.com"
},
{
label: "Order Management",
name: "oms-en",
baseUrl: "https://omsdocs.magento.com"
}
];

Expand Down
6 changes: 3 additions & 3 deletions src/_includes/layout/site-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<div class="nav-actions">
{% include layout/version-switcher.html %}

{% include layout/app-switcher.html %}

{% include layout/quick-search.html %}
{% if page.guide_version != "2.4" %}
{% include layout/quick-search.html %}
{% endif %}

</div>

Expand Down
1 change: 1 addition & 0 deletions src/guides/v2.3/search.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: search
title: Search Results
guide_version: "2.3"
---
1 change: 0 additions & 1 deletion src/guides/v2.4/search.md

This file was deleted.

5 changes: 0 additions & 5 deletions src/search.md

This file was deleted.

0 comments on commit 52cd42f

Please sign in to comment.