diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/js/feedback.js b/_vendor/github.com/chef/chef-docs-theme/assets/js/feedback.js
index 11179f0c5b..8a8065dd73 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/js/feedback.js
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/js/feedback.js
@@ -104,6 +104,8 @@ function submitContactFormFeedback(event) {
.catch((error) => alert(error));
};
-document
- .querySelector("#feedback-form")
- .addEventListener("submit", submitContactFormFeedback);
+const feedbackForm = document.querySelector("#feedback-form");
+
+if (feedbackForm) {
+ feedbackForm.addEventListener("submit", submitContactFormFeedback);
+}
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/js/swiftype-config.js b/_vendor/github.com/chef/chef-docs-theme/assets/js/swiftype-config.js
index c854cf9728..29e373ea9f 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/js/swiftype-config.js
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/js/swiftype-config.js
@@ -9,40 +9,91 @@
$(document).ready(function() {
- // Swiftype UI elements //
+ // Retrieve list of default search product keys from search page HTML and parse into JSON array
+ let defaultSearchProducts = $('#swiftype-search').data('default-search-keys');
+
+ function returnParsedJson(jsonString) {
+ if (jsonString) {
+ let stringifiedJSON = JSON.stringify(jsonString);
+ let parsedJSON = JSON.parse(stringifiedJSON);
+ return parsedJSON;
+ } else {
+ return null;
+ }
+ }
+
+ let parsedDefaultSearchProducts = returnParsedJson(defaultSearchProducts);
+
+ ///////////////////////////////////
+ //
+ // Search Modal functions
+ //
+ ///////////////////////////////////
- var showSearchModal = function() {
- $("#swiftype-modal").show(500);
- $("#swiftype-search-form-modal").focus();
+ function showSearchModal(event) {
+ $("#swiftype-modal").show(250);
+ $("#swiftype-search-form-modal-input").focus();
+ event.stopPropagation();
}
- var hideSearchModal = function() {
+ function hideSearchModal() {
$("#swiftype-modal").hide(250);
- $("#swiftype-custom-facets input:checkbox[class='product-filter']").prop( "checked", false );
- window.location.hash = "";
+ $('input#swiftype-search-form-modal-input').val('');
}
- $("#swiftype-close-button").click(function(){
+ // Hide search modal if clicking close button
+ $("#swiftype-search-close-button").click(function(){
hideSearchModal();
});
- $('body').click(function (event) {
- if($('#swiftype-modal').is(":visible") && !$(event.target).closest('#swiftype-modal-content').length && !$(event.target).is('#swiftype-modal-content')) {
- hideSearchModal();
+ // Hide search modal if it's already visible and click outside modal box
+ $('body').on('click', function(event) {
+ if ($('#swiftype-modal').is(':visible') && !$(event.target).closest("#swiftype-modal").length) {
+ $('#swiftype-modal:visible').hide();
}
});
- $("#swiftype-custom-facets-toggle-button").click(function(){
- if ($(window).width() < 768) {
- $("#swiftype-custom-facets").toggle(500);
- $("#swiftype-custom-facets-toggle-caret").find('svg').toggle();
- }
+ // Show search modal when clicking on search bar in top nav
+ $("#swiftype-search-top-nav").click(function(event){
+ showSearchModal(event);
+ });
+
+ // Clear text in search modal if x button is clicked
+ $('#swiftype-search-form-modal-input-clear').click(function() {
+ $('input#swiftype-search-form-modal-input').val('');
+ $('input#swiftype-search-form-modal-input').focus();
});
- $('#swiftype-facet-infra').on('change',function(){
- $('#swiftype-facet-client, #swiftype-facet-server').prop('checked',$(this).prop('checked'));
+ // on pressing enter key, navigate to search page and submit search string
+ $("input.swiftype-search-input").on('keypress', function (event) {
+ if (event.keycode == 13 || event.which == 13) {
+ event.preventDefault();
+ window.location.href = "/search/#stq=" + encodeURIComponent($(this).val()) + '&stp=1';
+ hideSearchModal();
+ };
+ });
+
+ ///////////////////////////////////
+ //
+ // Search Input functions
+ //
+ ///////////////////////////////////
+
+ // If x button next to input is clicked:
+ // Clear search input
+ // Reset search in URL
+ // Reset search results
+ $('input#swiftype-search-top-container-form-input-clear').click(function() {
+ $('input#swiftype-search-top-container-form-input').val('');
+ $('input#swiftype-search-top-container-form-input').focus();
+ history.pushState({page: "Chef Documentation Search"}, "", "/search/")
});
+ $("input#swiftype-search-top-container-form-input-search").on('click', function() {
+ const searchString = $('input#swiftype-search-top-container-form-input').val();
+ window.location.href = "/search/#stq=" + encodeURIComponent(searchString) + '&stp=1';
+ });
+
// trigger hideCustomFacets function after resize ends
var debounce = function(fn, interval) {
let timer;
@@ -54,18 +105,73 @@ $(document).ready(function() {
};
}
+ // show and hide elements when resizing
var hideCustomFacets = function() {
if ($(this).width() > 768) {
- $('#swiftype-custom-facets').show();
+ $('#swiftype-custom-facet-products').show();
+ $("#search-facet-product-toggle-caret > svg.fa-caret-down").hide();
+ $("#search-facet-product-toggle-caret > svg.fa-caret-up").hide();
} else {
- $('#swiftype-custom-facets').hide();
- $("#swiftype-custom-facets-toggle-caret > svg.fa-caret-down").hide();
- $("#swiftype-custom-facets-toggle-caret > svg.fa-caret-up").show();
+ $('#swiftype-custom-facet-products').hide();
+ $("#search-facet-product-toggle-caret > svg.fa-caret-down").hide();
+ $("#search-facet-product-toggle-caret > svg.fa-caret-up").show();
}
}
$(window).resize(debounce(hideCustomFacets, 400));
+ ///////////////////////////////////
+ //
+ // Search Filter functions
+ //
+ ///////////////////////////////////
+
+ // On selecting a checkbox for a versioned product:
+ // 1. display the version select tag
+
+ // On deselecting a checkbox for a versioned product
+ // selected versioned checkboxes are deselected
+ $('.swiftype-product-with-versions').on('change', function(){
+
+ const versionListId = $($(this).data('version-selector-id'));
+
+ if ($(this).is(':checked')) {
+ versionListId.show();
+ } else {
+ versionListId.hide();
+ }
+
+ getChefProducts();
+ reloadResults();
+ });
+
+ // When selecting a version option
+ // 1. regenerate results
+ $('select.search-facet-versions').on('change', function(){
+ getChefProducts();
+ reloadResults();
+ });
+
+ // When the product facet checkboxes are checked/unchecked, update the array of products and reload the results
+ $("#swiftype-custom-facets input:checkbox[class='product-filter']").change(function() {
+ getChefProducts();
+ reloadResults();
+ });
+
+ // "Clear all" button resets search filters
+ // show hidden products
+ // hide version checkboxes
+ // uncheck everything
+ // reload results
+ $('#swiftype-clear-all-filters').on('click', function() {
+ $('#swiftype-custom-facets input[type=checkbox]').prop('checked', false).css('display', 'inline-block');
+ $('select.search-facet-versions').css('display', 'none');
+
+ getChefProducts();
+ reloadResults();
+ });
+
+
const searchHashRegex = /^#stq./;
const searchStringMatchRegex = /^#stq=(.*)/;
const searchPageNumRegex = /&stp=\d{1,3}$/;
@@ -79,7 +185,7 @@ $(document).ready(function() {
} else {
var matchString = decodeURIComponent(hash);
};
- $('input#swiftype-search-form-modal').val(matchString);
+ $('input#swiftype-search-top-container-form-input').val(matchString);
};
// Watch for hashchange
@@ -89,21 +195,18 @@ $(document).ready(function() {
$(window).on('hashchange', function() {
if (searchHashRegex.test(window.location.hash)) {
processLocationHash();
- showSearchModal();
}
});
if (searchHashRegex.test(window.location.hash)) {
processLocationHash();
- showSearchModal();
};
- // Autocomplete UI elements
- $("input.swiftype-search-input").on('keypress', function (event) {
- if (event.keycode == 13 || event.which == 13) {
- event.preventDefault();
- window.location.hash = 'stq=' + encodeURIComponent($(this).val()) + '&stp=1';
- };
+ $("#search-facet-product").click(function() {
+ if ($(window).width() < 860) {
+ $("#swiftype-custom-facet-products").toggle(500);
+ $("#search-facet-product-toggle-caret").find('svg').toggle();
+ }
});
/////////////////////////
@@ -113,14 +216,16 @@ $(document).ready(function() {
"facets": {}
};
- /////////
- // Handle Regular Search Results
- /////////
+ // Define default products used in search
+ searchConfig.facets['chef-products'] = parsedDefaultSearchProducts;
+
var resultTemplate = Hogan.compile([
"
",
"",
"{{title}} ",
- "Product: {{product}} {{{sections}}} • {{{body}}} ",
+ "Product: {{product}} ",
+ "{{{sections}}} ",
+ "{{{body}}} ",
" ",
" "
].join('') );
@@ -137,24 +242,25 @@ $(document).ready(function() {
return resultTemplate.render(data);
};
- // Update the hash value in window.location //
+ // Update the hash value in window.location
var reloadResults = function() {
- window.location.hash = window.location.hash.replace(/stp=[^&]*/i, 'stp=1'); // Reset to page 1
+ // Reset window to page 1
+ window.location.hash = window.location.hash.replace(/stp=[^&]*/i, 'stp=1');
$(window).hashchange();
};
- //Checking the Infra checkbox will also check the Infra Client and Infra Server checkboxes.
- $('#swiftype-facet-infra').on('change',function(){
- $('#swiftype-facet-client, #swiftype-facet-server').prop('checked',$(this).prop('checked'));
- });
+ // Get all Chef products selected in product checkbox field
+ // If no checkboxes are selected, return the default list of products
+ const getChefProducts = function(){
+ if ($('#swiftype-product-filters :checkbox:checked').length === 0) {
+ searchConfig.facets['chef-products'] = parsedDefaultSearchProducts;
+ } else {
+ searchConfig.facets['chef-products'] = $("#swiftype-custom-facets input:checkbox[name='chef-product']:checked, select.search-facet-versions:visible option:selected").map(function() {
+ return $(this).val()
+ }).get();
+ }
+ };
- // When the product facet checkboxes are checked/unchecked, update the array of products and reload the results
- $("#swiftype-custom-facets input:checkbox[class='product-filter']").change(function() {
- searchConfig.facets['chef-products'] = $("#swiftype-custom-facets input:checkbox[name='chef-product']:checked").map(function() {
- return $(this).val()
- }).get();
- reloadResults();
- });
// Returns an array of the chef-products to filter by
var readFilters = function () {
@@ -172,59 +278,20 @@ $(document).ready(function() {
}
}
- /////////
- // Handle Autocomplete Search Results
- /////////
-
- var resultAutocompleteTemplate = Hogan.compile([
- "",
- "{{title}} ",
- "{{{sections}}} ",
- " "
- ].join('') );
-
- var customAutocompleteFunction = function(document_type, item) {
- var
- data = {
- title: item['title'],
- url: item['url'],
- sections: item['highlight']['sections'],
- };
- return resultAutocompleteTemplate.render(data);
- };
-
- var autoHighlightFields = {
- "page": {
- "sections":{"size": 200, "fallback":true},
- "body":{"size": 250, "fallback": true},
- }
- }
-
/*
The swiftypeSearch function is from the Swiftype jQuery Plugin - "jquery.swiftype.search.js"
https://swiftype.com/documentation/site-search/guides/jquery
https://github.com/swiftype/swiftype-search-jquery
*/
- $('#swiftype-search-form-modal').swiftypeSearch({
+ $('#swiftype-search-top-container-form-input').swiftypeSearch({
resultContainingElement: '#swiftype-search-results',
engineKey: 'mXqaEKYsv--xS9fcY3Jz',
renderFunction: customRenderFunction,
facets: { page: ['chef-product'] },
filters: readFilters,
- perPage: 8,
+ perPage: 10,
highlightFields: highlightFields,
});
- /*
- The swiftype function is from the autocomplete plugin - "jquery.swiftype.autocomplete.js"
- https://swiftype.com/documentation/site-search/guides/jquery
- https://github.com/swiftype/swiftype-autocomplete-jquery
- */
-
- $('.swiftype-search-autocomplete').swiftype({
- engineKey: 'mXqaEKYsv--xS9fcY3Jz',
- highlightFields: autoHighlightFields,
- renderFunction: customAutocompleteFunction,
- });
});
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/js/version-docs.js b/_vendor/github.com/chef/chef-docs-theme/assets/js/version-docs.js
deleted file mode 100644
index 8aa4b8d959..0000000000
--- a/_vendor/github.com/chef/chef-docs-theme/assets/js/version-docs.js
+++ /dev/null
@@ -1,101 +0,0 @@
-
-// Display text divs with parentClass class and displayClass class
-// Hide other text divs with just parentClass class
-displayHideTextBlocks = function(displayClass, parentClass){
- for (var i = 0; i < parentClass.length; i++) {
- versionedText = parentClass[i];
- versionedTextVersion = parentClass[i].classList[1];
-
- if (versionedTextVersion === displayClass) {
- versionedText.style.display = "block";
- } else {
- versionedText.style.display = "none";
- }
- }
-}
-
-// Display correct product/version in dropdown list
-changeDropdownListValue = function(version){
- var opts = dropdownId.options.length;
- for (var i=0; i."
- console.log("This browser does not support Window.localstorage")
- };
-
- } else {
- urlVersion = urlVersion.split("#")[0]
- displayHideTextBlocks(urlVersion, versionedTextBlocks)
- changeDropdownListValue(urlVersion)
- if (typeof(Storage) !== "undefined") {
- localStorage.setItem(docsProductVersionKey, urlVersion);
- } else {
- // If browser does not support Window.localstorage
- // Drop a div in between each section of the versioned documentation
- // Stating something like "The following is documentation for version x.y of ."
- console.log("This browser does not support Window.localstorage")
- };
- };
-};
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/_homepage.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/_homepage.scss
index d35fceb21a..e7f45b4c1e 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/_homepage.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/_homepage.scss
@@ -59,7 +59,6 @@
.cell{
-webkit-box-shadow: $box-shadow;
- -moz-box-shadow: $box-shadow;
box-shadow: $box-shadow;
border: 1px solid transparent;
}
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/main.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/main.scss
index 5a43ad1756..d08170bc7a 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/main.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/main.scss
@@ -33,4 +33,5 @@ body {
@import "partials/tab-container";
@import "partials/toc";
@import "partials/utility-bar";
-@import "partials/breadcrumbs"
+@import "partials/breadcrumbs";
+@import "partials/version_selector"
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_breadcrumbs.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_breadcrumbs.scss
index dd75afc315..f18cf8ec48 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_breadcrumbs.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_breadcrumbs.scss
@@ -1,7 +1,7 @@
#breadcrumb {
- padding: 1rem 1.5rem 1rem 0;
- font-size: .9rem;
+ font-size: .8rem;
+ margin: 2rem 0 1rem 0;
ol {
padding-left: 0;
@@ -9,6 +9,9 @@
}
li {
display: inline;
+ a {
+ padding: 5px;
+ }
&:not(:last-child)::after {
content: " / ";
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_grid.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_grid.scss
index e3395b6a72..c00d1230dd 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_grid.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_grid.scss
@@ -28,7 +28,6 @@
display: block;
margin: rem-calc(32) auto;
-webkit-box-shadow: $box-shadow;
- -moz-box-shadow: $box-shadow;
box-shadow: $box-shadow;
border: 1px solid transparent;
padding: 1rem;
@@ -49,7 +48,6 @@
text-indent: 0;
border: 1px solid transparent;
-webkit-box-shadow: $box-shadow;
- -moz-box-shadow: $box-shadow;
box-shadow: $box-shadow;
padding: 0.5rem;
margin: rem-calc(32) auto;
@@ -71,7 +69,6 @@
padding: 0;
border: none;
-webkit-box-shadow: none;
- -moz-box-shadow: none;
box-shadow: none;
}
}
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_sidebar.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_sidebar.scss
index 69086802db..77c4091ef6 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_sidebar.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_sidebar.scss
@@ -1,8 +1,6 @@
#left-nav-on-canvas {
- margin-top: .5rem;
- padding: rem-calc(18 0);
+ margin: .5rem 1rem 0 0;
z-index: 50;
- width: 260px;
box-shadow: none;
}
@@ -23,6 +21,9 @@
color:$orange-lighter;
}
}
+ #top-bar-close {
+ height: 25px;
+ }
}
.sidebar {
@@ -33,10 +34,10 @@
#sidebar-nav{
height: 100%;
- z-index: 25;
+ padding: 0 10px;
overflow-y: scroll;
overflow-x: hidden;
- margin: 0 10px;
+
&.offCanvas{
width: inherit;
}
@@ -45,11 +46,10 @@
margin-bottom: 30px;
> .accordion-menu {
- font-size: rem-calc(14px);
> li {
> a {
- font-weight: 700;
+ font-weight: 600;
}
a {
@@ -60,6 +60,7 @@
&:focus {
outline: none;
}
+ padding: .75rem 0 .75rem 1rem;
}
}
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_swiftype_search.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_swiftype_search.scss
index 2fc4228157..571e1a8258 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_swiftype_search.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_swiftype_search.scss
@@ -1,31 +1,75 @@
#swiftype-modal {
- display: none; /* Hidden by default */
- position: fixed; /* Stay in place */
- z-index: 1000; /* Sit on top */
- left: 0;
- top: 0;
- width: 100%; /* Full width */
- height: 100%; /* Full height */
- background-color: rgb(0,0,0); /* Fallback color */
- background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
+ display: none;
+ background-color: #fefefe;
+ left: 50%;
+ top: 90px;
+ position: absolute;
+ transform: translate(-50%, -50%);
+ z-index: 1000;
+
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
+ padding: 10px;
+ font-size: 1rem;
+
+ @media (max-width: map-get($breakpoints, medium)) {
+ width: 100%;
+ }
+
+ @media not (max-width: map-get($breakpoints, medium)) {
+ width: 60%;
+ }
&-content {
- background-color: #fefefe;
- padding: 20px;
- border: 1px solid #888;
- width: 80%;
- height: 90%;
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- overflow-y: hidden;
display: flex;
- flex-direction: column;
+ align-items: center;
+ font-size: 1rem;
+ flex-direction: row;
+
+ #swiftype-search-form-modal {
+ flex: 1;
+ flex-shrink: 1;
+ }
+
+ #swiftype-search-close {
+
+ flex: 0;
+ position: relative;
+ top: -15px;
+
+ &-button {
+ display: inline;
+ vertical-align: text-top;
+ font-size: 1.5rem;
+ margin: 0 .5rem 0 .75rem;
+ margin-bottom: auto;
+ }
+ }
+
+ .input-group {
+ margin: 1rem;
+ min-width: 10px;
+ }
+
+ input {
+ border: 1px solid $border-dark;
+ }
+
+ #swiftype-search-form-modal-input{
+ border-right: none;
+ padding: 2px;
+ }
+
+ #swiftype-search-form-modal-input-clear {
+ background: none;
+ border-left: none;
+ padding: 0 10px;
+ margin-right: 5px;
+ }
+
}
}
-#swiftype-lower-container{
+#swiftype-lower-container {
overflow-y: hidden;
padding-bottom: 10px;
display: flex;
@@ -33,7 +77,7 @@
width: 100%;
height: 100%;
- #swiftype-modal-content-container{
+ #swiftype-content-container{
margin: 0 1rem 1rem 0;
overflow-y: hidden;
display: flex;
@@ -41,41 +85,56 @@
width: 100%;
height: 100%;
- h3 {
- font-size: 1.25rem;
- font-weight: 600;
- margin-top: 1rem;
- padding-top: 0;
- display: inline;
- position: relative;
- }
-
#swiftype-container-left-sidebar {
padding-top: 1rem;
flex-grow: 0;
- span#swiftype-custom-facets-toggle-caret{
- color: $accordionmenu-arrow-color;
- margin-left: .5rem;
+ #swiftype-filters-heading{
+ border-bottom: 1px solid $border-dark;
+ padding: 10px 0;
}
- label {
- font-size: .8rem;
+ #swiftype-filters-title {
+ font-size: 1.2rem;
+ font-weight: 700;
}
- #swiftype-custom-facets{
- >ul{
- margin: 1em 0;
- ul{
- margin-left: 1em;
- }
+
+ #swiftype-clear-all-filters {
+ margin-top: 10px;
+ }
+
+ #swiftype-product-filters{
+ border-bottom: 1px solid $border-dark;
+ padding: 20px 0;
+
+ select {
+ width: 100%;
+ max-width: 120px;
+ border: 1px solid $border-dark;
+ height: 2rem;
+ border-radius: $border-radius-base;
}
- ul {
- list-style-type: none;
- input {
- margin-bottom: .75em;
- }
+ }
+
+ #search-facet-product {
+ font-size: 1.2rem;
+ font-weight: 600;
+ }
+
+ #swiftype-version-filters {
+ border-bottom: 1px solid $border-dark;
+ padding: 20px 0;
+ display: none;
+
+ .swiftype-product-versions {
+ display: none;
}
}
+
+ .search-facet-versions {
+ display: none;
+ margin: 0 0 1rem 1.5rem;
+ }
}
#swiftype-results-container{
@@ -86,8 +145,10 @@
flex-grow: 1;
padding-top: 16px;
- #swiftype-results-heading{
+ #swiftype-results-heading {
flex-grow: 0;
+ font-size: 1.5rem;
+ font-weight: 600;
}
#swiftype-search-results {
overflow-y: scroll;
@@ -95,42 +156,57 @@
padding-right: 10px;
width: 100%;
flex: 1 1 auto;
- margin-left: 0;
- a {
- padding: .5rem 0;
+ margin: 0;
+
+ li {
+ padding: 10px 0;
border-bottom: 1px solid $border-dark;
- display: block;
- width: 100%;
- >span {
- display: inherit;
- overflow: hidden;
- &.st-result-title {
- font-size: 15px;
- font-weight: 500;
- line-height: 1.2;
- }
- &.st-result-detail {
- font-size: 12px;
- font-weight: 400;
- line-height: 1.4;
- color:$lightgray;
- em {
- color: $gray
+ a {
+ padding: .5rem 0;
+
+ display: block;
+ text-decoration: none;
+ width: 100%;
+ >span {
+ display: inherit;
+ overflow: hidden;
+
+ &.st-result-detail-body, &.st-result-sections {
+ @media (max-width: map-get($breakpoints, medium)) {
+ display: none;
+ }
}
- >.st-result-highlight-product{
- color:red;
+
+ &.st-result-title {
+ font-size: 1.25rem;
+ font-weight: 500;
+ line-height: 1.2;
+ }
+ &.detail {
+ color: $charcoal;
+ padding: 2px 0;
+
+ em {
+ font-weight: 500;
+
+ }
+ }
+ &.st-result-highlight-product{
display: none;
}
}
}
}
+
>.st-page {
- border-bottom: 1px solid $border-dark;
- overflow:hidden;
+
>a {
position: relative;
border-bottom: none;
width: auto;
+ margin-top: 5px;
+ padding: 5px 0;
+ font-size: 1rem;
&.st-prev {
float: left;
}
@@ -150,183 +226,55 @@
}
}
-@media (max-width: 768px) {
- #swiftype-modal-content {
- width: 100%;
- height: 100%;
- }
- .st-result-detail-body {
- display: none;
- }
- #swiftype-lower-container {
- #swiftype-modal-content-container {
- flex-direction: column;
- }
- }
- #swiftype-custom-facets {
- display: none;
- }
-}
-
///////
-// Search Input
+// Swiftype Search
///////
-#left-nav-off-canvas-top-bar {
- @include top-bar-unstack;
- .search {
- display: inline-block;
- margin-right: 1rem;
- }
- .close-button {
- position: relative;
- margin: 0 0 0 1rem;
- display: inline-block;
- right: 0;
- top: 0;
- }
-}
+#swiftype-search {
+ &-top-container {
+ &-input {
+ width: 80%;
+ }
+ &-form {
+ border-radius: $border-radius-base;
+ outline: none;
+
+ &-input {
+ padding: 10px;
+ font-size: 1rem;
+ width: 90%;
+ border: 1px solid $border-dark;
+ border-right: none;
+ height: 2.5rem;
+
+ &-clear {
+
+ font-size: 1rem;
+ padding: 10px;
+ border-left: none;
+ border-right: 1px solid $border-dark;
+ border-top: 1px solid $border-dark;
+ border-bottom: 1px solid $border-dark;
-form > input.swiftype-search {
-
- &-input {
- padding: 7px 11px 7px 28px;
- font-size: 14px;
- font-weight: 400;
- line-height: 16px;
- border-radius: $border-radius-base;
- border: 1px solid #ccc;
- outline: none;
- background: #fcfcfc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUFJREFUeNqU0j0oRWEcx/Hj3ifvlMHL7C1lY7mDwUBKkoksBjKJxWIQu7xlOybDLVGukhhMZDFbxGBS8nIjKR3E96nf0dPjuuVfn+6tc35P//P8/yYMw8CpbgygGQlcYw8H+Ai8MvotxQImgt81hk1M4cEPF2IV43jCGo7wjk5MYhhlGMKbG+7BKO4wiGPn8DO1vIN+jGA9fpjQaUksecG4zjGPL3VQ5IZb9OAw+LtO1FkjatxwUuEoTzjSbRu9/xO+0W97nnArqvXuoxve1/9p1OUIlmNGU7EX9+KGt3GKNuyiC5WoQAe2NJFP3PpzzmoR0khpxle6h3pnkeKJPCPjbtglerVFfWhSVxfqJtK4qrChTMY4XdjVm9O21aIA92LrFcv6HHtAsclxQVnxa0WfsqgDUib4X9muStCA2W8BBgDJ0EeGeFZ8WAAAAABJRU5ErkJggg==) no-repeat 5px 8px;
- }
+ margin-right: 10px;
+ background-color: $white;
- &-autocomplete {
- margin: 5px 0;
- display: inline-block;
- height: 2.5em;
- }
-}
+ &:hover {
+ color: $white;
+ background-color: $body-font-color;
+ }
-#swiftype-modal-search-form {
- form > #swiftype-search-form-modal {
- width: 100%;
- margin-right: 10px;
- box-sizing: border-box;
- height: 32px;
+ }
+ }
+ }
}
-
-
- #swiftype-close-button {
- font-size: .9rem;
- margin-left: 10px;
- padding: 6px;
- border: 1px solid $border-dark;
- border-radius: $border-radius-base;
-
- &:hover {
- color: $white;
- background-color: $body-font-color;
+ #swiftype-lower-container {
+ #swiftype-custom-facets{
+ .swiftype-custom-facet-content {
+ @media (max-width: map-get($breakpoints, mediumlarge)) {
+ display: none;
+ }
+ }
}
}
}
-
-/////
-// Autocomplete Search Results
-/////
-
-.swiftype-widget .autocomplete {
- border-radius: $border-radius-base;
- background-color: $white;
- display: block;
- list-style-type: none;
- margin: 0;
- padding: 0;
- -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
- -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
- position: absolute;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- -ms-border-radius: 3px;
- -o-border-radius: 3px;
- border-radius: 3px;
- text-align: left;
-}
-
-.swiftype-widget .autocomplete ul {
- background-color: #fff;
- display: block;
- list-style-type: none;
- margin: 0;
- padding: 0;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- -ms-border-radius: 3px;
- -o-border-radius: 3px;
- border-radius: 3px;
- text-align: left;
-}
-
-.swiftype-widget .autocomplete li {
- border-top: 1px solid $border;
- cursor: pointer;
- padding: 10px 8px;
- font-size: 12px;
- font-weight: 400;
- list-style-type: none;
- background-image: none;
- margin: 0;
-}
-
-.swiftype-widget .autocomplete li:first-child {
- -webkit-border-radius: 3px 3px 0 0;
- -moz-border-radius: 3px 3px 0 0;
- -ms-border-radius: 3px 3px 0 0;
- -o-border-radius: 3px 3px 0 0;
- border-radius: 3px 3px 0 0;
-}
-
-.swiftype-widget .autocomplete li:last-child {
- -webkit-border-radius: 0 0 3px 3px;
- -moz-border-radius: 0 0 3px 3px;
- -ms-border-radius: 0 0 3px 3px;
- -o-border-radius: 0 0 3px 3px;
- border-radius: 0 0 3px 3px;
-}
-
-.swiftype-widget .autocomplete li.active {
- background-color: $menu-item-background-active;
-}
-
-.swiftype-widget .autocomplete li span {
- line-height: 16px;
- margin: 0;
- padding: 0;
- text-overflow: ellipsis;
- overflow-x: hidden;
- white-space: nowrap;
-}
-
-.swiftype-widget .autocomplete li span.swiftype-auto-result-title{
- font-weight: bold;
- color: $blue-darker;
- overflow: hidden;
- display: block;
-}
-
-.swiftype-widget .autocomplete li span.swiftype-auto-result-detail{
- color: $lightgray;
- overflow: hidden;
- display: block;
-}
-
-
-.swiftype-widget .autocomplete li span.swiftype-auto-result-title em {
- color: #0b2644;
- font-style: normal;
- font-weight: bold;
-}
-
-.swiftype-widget .autocomplete li.active span.swiftype-auto-result-title{
- color: $menu-item-color-active;
-}
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_utility-bar.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_utility-bar.scss
index de2781d648..7761717936 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_utility-bar.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_utility-bar.scss
@@ -33,6 +33,22 @@ nav#utility-bar {
}
}
}
+
+ }
+
+ button#swiftype-search-magnifying-icon {
+ border: 1px solid $border;
+ background-color: $sidebar-gray;
+ border-radius: $border-radius-base;
+ padding: .5rem;
+ margin: .25rem;
+ &:hover {
+ color: $blue-darker;
+ }
+ #swiftype-search-search-text{
+ min-width: 170px;
+ display: inline-block;
+ }
}
button.utility-bar-nav-bars {
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_version_selector.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_version_selector.scss
new file mode 100644
index 0000000000..d6bd62c704
--- /dev/null
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_version_selector.scss
@@ -0,0 +1,28 @@
+.version-select {
+ margin-left: .5rem;
+ margin-bottom: 1rem;
+ &-label {
+ font-weight: bold;
+ }
+ &-menu {
+ li.version-select-menu-parent.is-dropdown-submenu-parent {
+ width: 100%;
+ border: 1px solid $border-dark;
+ border-radius: $border-radius-base;
+ margin-top: 10px;
+
+ a, a::after {
+ font-size: .8rem;
+ color: $charcoal;
+ font-weight: 600;
+ border-color: $charcoal transparent transparent;
+ }
+
+ >ul.version-selector-submenu {
+ width: 100%;
+ border: 1px solid $border-dark;
+ border-radius: 0 0 $border-radius-base $border-radius-base;
+ }
+ }
+ }
+}
diff --git a/_vendor/github.com/chef/chef-docs-theme/assets/sass/typography/_prose.scss b/_vendor/github.com/chef/chef-docs-theme/assets/sass/typography/_prose.scss
index 627a7a1359..415696345d 100644
--- a/_vendor/github.com/chef/chef-docs-theme/assets/sass/typography/_prose.scss
+++ b/_vendor/github.com/chef/chef-docs-theme/assets/sass/typography/_prose.scss
@@ -54,31 +54,6 @@
margin-top: 1rem;
}
}
- #chef-product-version-dropdown{
- margin: -12px 0 26px 0;
- &-label {
- display: inline-block;
- font-style: bold;
- font-size: 1.25rem;
- }
- &-select {
- display: inline-block;
- width: auto;
- border-radius: $border-radius-base;
- }
- }
- .chef-product-version{
- &-not-newest{
- background-color: $ash;
- padding: 1rem;
- margin: 1.5rem;
- border: 1px solid lightgray;
- border-radius: $border-radius-base;
- p {
- margin: 0;
- }
- }
- }
}
.responsive-table {
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/_default/baseof.html b/_vendor/github.com/chef/chef-docs-theme/layouts/_default/baseof.html
index fb1007cd8e..f6361e4c4f 100644
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/_default/baseof.html
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/_default/baseof.html
@@ -44,8 +44,6 @@
{{ partial .Params.toc_layout . }}
- {{ else if (.Params.version_docs_product)}}
- {{ partial "versioned-docs-toc" . }}
{{ else }}
{{ partial "table-of-contents" . }}
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/_default/data-api.html b/_vendor/github.com/chef/chef-docs-theme/layouts/_default/data-api.html
index f49d1c697b..073f212c33 100644
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/_default/data-api.html
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/_default/data-api.html
@@ -3,6 +3,7 @@
{{- with .Params.description -}}
+
{{- end -}}
{{.Title}}
@@ -18,7 +19,7 @@
{{ if eq $.Page.Params.title "Chef Automate API" }}
-
+
{{ else }}
-
Return to Docs
+
Return to Docs
{{ end }}
{{ $redocJs := resources.Get "redoc/bundles/redoc.standalone.js" }}
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/_default/search.html b/_vendor/github.com/chef/chef-docs-theme/layouts/_default/search.html
new file mode 100644
index 0000000000..df9a976633
--- /dev/null
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/_default/search.html
@@ -0,0 +1,88 @@
+{{ define "main" }}
+
+{{ $defaultSearchKeys := delimit .Site.Params.search.default_search_product_keys `", "` }}
+
+{{ end }}
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/javascript.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/javascript.html
index 5b4e543e9b..983bee4d96 100644
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/javascript.html
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/javascript.html
@@ -25,9 +25,8 @@
{{- $imageModal := resources.Get "js/image-modal.js" -}}
{{- $inspecFilter := resources.Get "js/inspec-filter.js" -}}
{{- $resourceNote := resources.Get "js/resource-note.js" -}}
-{{- $versionDocs := resources.Get "js/version-docs.js" -}}
-{{- $customJs := slice $copycodebutton $chefHugo $inspecFilter $resourceNote $versionDocs $feedback $imageModal -}}
+{{- $customJs := slice $copycodebutton $chefHugo $inspecFilter $resourceNote $feedback $imageModal -}}
{{ if hugo.Environment | eq "development" }}
{{- $customJs = $customJs | resources.Concat "js/custom-bundle.js" -}}
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/on_canvas_top_bar.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/on_canvas_top_bar.html
new file mode 100644
index 0000000000..d11f8cfdae
--- /dev/null
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/on_canvas_top_bar.html
@@ -0,0 +1,7 @@
+{{ if .Site.Params.version_selector }}
+
+
+ {{ partial "version_selector" . }}
+
+
+{{ end }}
\ No newline at end of file
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/range_menu.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/range_menu.html
index 58e1194bf4..fb3ab10d18 100644
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/range_menu.html
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/range_menu.html
@@ -64,4 +64,4 @@
{{ end }}
{{ end }}
-{{ end }}
\ No newline at end of file
+{{ end }}
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/sidebar-off-canvas.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/sidebar-off-canvas.html
index 11744c7b65..5688877aed 100644
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/sidebar-off-canvas.html
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/sidebar-off-canvas.html
@@ -2,35 +2,39 @@
+{{ end }}
\ No newline at end of file
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/swiftype_search_modal.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/swiftype_search_modal.html
index 8a0d9040e5..d2ffea390b 100644
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/swiftype_search_modal.html
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/swiftype_search_modal.html
@@ -1,85 +1,21 @@
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html
index d0bda0734f..0f8b5bbe26 100644
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/utility-bar.html
@@ -1,20 +1,26 @@
-
+
-
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/version_selector.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/version_selector.html
new file mode 100644
index 0000000000..5d49b4a174
--- /dev/null
+++ b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/version_selector.html
@@ -0,0 +1,21 @@
+{{ if .Site.Params.version_selector }}
+{{ $page_path := .Page.Path }}
+{{ $product_name := .Site.Params.product_name }}
+{{ $this_version := .Site.Params.release_data.version }}
+{{ if or ( eq $this_version "" ) (eq $this_version nil )}}
+ {{ errorf "The params.toml file requires a version in release_data.version." }}
+{{ end }}
+
+ Version
+
+
+{{ end }}
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-content.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-content.html
deleted file mode 100644
index 6b68a2641f..0000000000
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-content.html
+++ /dev/null
@@ -1,65 +0,0 @@
-{{ $product := .Params.version_docs_product }}
-{{ $baseDir := .File.Dir }}
-{{ $splitBaseDir := trim $baseDir "/" }}
-{{ $LogicalName := .File.LogicalName }}
-
-{{$formalProductName := ""}}
-{{ if eq $product "chef" }}
- {{ $formalProductName = "Chef Infra Client" }}
-{{ else if eq $product "chef-server" }}
- {{ $formalProductName = "Chef Infra Server" }}
-{{ else if eq $product "chef-workstation" }}
- {{ $formalProductName = "Chef Workstation" }}
-{{ else if eq $product "inspec" }}
- {{ $formalProductName = "Chef InSpec" }}
-{{ else if eq $product "habitat" }}
- {{ $formalProductName = "Chef Habitat" }}
-{{ else if eq $product "desktop-config" }}
- {{ $formalProductName = "Chef Desktop" }}
-{{ else if eq $product "product_a" }}
- {{ $formalProductName = "Product A" }}
-{{ else if eq $product "product_b" }}
- {{ $formalProductName = "Product B" }}
-{{ else }}
- {{ errorf "No matching product name. Current valid version_docs_product values are chef-server, chef, chef-workstation, inspec, habitat, and desktop-config." }}
-{{ end }}
-
-{{ $versions := index .Site.Params $product "versions" }}
-
-{{ $float_string_versions := slice }}
-{{ range $versions }}
- {{ $float_string_versions = $float_string_versions | append (replaceRE "_" "." . ) }}
-{{ end }}
-
-{{ $float_string_versions = sort $float_string_versions "value" "desc" }}
-
-{{ $sorted_versions := slice }}
-{{ range $float_string_versions }}
- {{ $sorted_versions = $sorted_versions | append (replaceRE "\\." "_" . ) }}
-{{ end }}
-
-{{ range $version_index, $version := $sorted_versions }}
- {{ $versionDir := delimit (slice "v" $version) "" }}
- {{ $filePath := path.Join (slice "/" $splitBaseDir $versionDir) "/" }}
-
- {{ if not ($.Site.GetPage $filePath) }}
- {{ errorf "File does not exist %q." $filePath }}
- {{ end }}
- {{ with $.Site.GetPage $filePath }}
-
- {{ if gt $version_index 0 }}
-
-
Note: You are viewing documentation for an older version of {{$formalProductName}} .
-
- {{ end }}
-
- {{ with (index (.Resources.Match $LogicalName) 0) }}
- {{ $pageText := .Content }}
- {{ $replacementID := delimit (slice `<$1-` $version `"`) "" }}
- {{ $pageText := replaceRE `<(h\d id="[\w\-]+)"` $replacementID $pageText }}
- {{ safeHTML $pageText }}
- {{ end }}
-
-
- {{ end }}
-{{ end }}
\ No newline at end of file
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-dropdown.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-dropdown.html
deleted file mode 100644
index c43c6ff632..0000000000
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-dropdown.html
+++ /dev/null
@@ -1,47 +0,0 @@
-{{ $product := .Params.version_docs_product }}
-
-{{$formalProductName := ""}}
-{{ if eq $product "chef" }}
- {{ $formalProductName = "Chef Infra Client" }}
-{{ else if eq $product "chef-server" }}
- {{ $formalProductName = "Chef Infra Server" }}
-{{ else if eq $product "chef-workstation" }}
- {{ $formalProductName = "Chef Workstation" }}
-{{ else if eq $product "inspec" }}
- {{ $formalProductName = "Chef InSpec" }}
-{{ else if eq $product "habitat" }}
- {{ $formalProductName = "Chef Habitat" }}
-{{ else if eq $product "desktop-config" }}
- {{ $formalProductName = "Chef Desktop" }}
-{{ else if eq $product "product_a" }}
- {{ $formalProductName = "Product A" }}
-{{ else if eq $product "product_b" }}
- {{ $formalProductName = "Product B" }}
-{{ else }}
- {{ $formalProductName = "Name Missing" }}
-{{ end }}
-
-{{ $versions := index .Site.Params $product "versions" }}
-
-{{ $float_string_versions := slice }}
-{{ range $versions }}
- {{ $float_string_versions = $float_string_versions | append (replaceRE "_" "." . ) }}
-{{ end }}
-
-{{ $float_string_versions = sort $float_string_versions "value" "desc" }}
-
-{{ $sorted_versions := slice }}
-{{ range $float_string_versions }}
- {{ $sorted_versions = $sorted_versions | append (replaceRE "\\." "_" . ) }}
-{{ end }}
-
-
- Version:
-
- {{ range $version_index, $float_version := $float_string_versions }}
-
- {{$formalProductName}} {{ $float_version }}
-
- {{ end }}
-
-
diff --git a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-toc.html b/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-toc.html
deleted file mode 100644
index fb5f1e68a1..0000000000
--- a/_vendor/github.com/chef/chef-docs-theme/layouts/partials/versioned-docs-toc.html
+++ /dev/null
@@ -1,57 +0,0 @@
-{{ $pageTitle := delimit (slice "" .Title " ") "" }}
-{{ $tocContents := "" }}
-{{ $product := .Params.version_docs_product }}
-{{ $baseDir := .File.Dir }}
-{{ $splitBaseDir := trim $baseDir "/" }}
-{{ $LogicalName := .File.LogicalName }}
-
-{{ $versions := index .Site.Params .Params.version_docs_product }}
-{{ $headersExist := false }}
-{{ range $versions.versions }}
- {{ $newTOC := "" }}
-
- {{ $version := . }}
- {{ $versionDir := delimit (slice "v" $version) "" }}
- {{ $filePath := path.Join (slice "/" $splitBaseDir $versionDir) "/" }}
-
- {{ with $.Site.GetPage $filePath }}
- {{ with (index (.Resources.Match $LogicalName) 0) }}
- {{ $headers :=findRE `(?m)(.|\n])+\>` .Content }}
- {{ if ge (len $headers) 1 }}
- {{ $headersExist = true }}
-
- {{ $newTOC = delimit (slice `` ) "" }}
- {{ $newTOC = delimit (slice $newTOC .Page.TableOfContents) "" }}
- {{ $newTOC = delimit (slice $newTOC "
") "" }}
- {{ $replacementID := delimit (slice `$1-` $version `">`) "" }}
- {{ $newTOC := replaceRE `(` $replacementID $newTOC }}
-
- {{ $tocContents = delimit (slice $tocContents $newTOC) "" }}
- {{ end }}
- {{ end }}
- {{ end }}
-{{ end }}
-{{ if $headersExist }}
-
-
-
-
-
-
- Table Of Contents
- {{ $pageTitle }}
- {{- safeHTML $tocContents -}}
-
-{{ end }}
diff --git a/_vendor/modules.txt b/_vendor/modules.txt
index 4155d8eb53..bf575a5d43 100644
--- a/_vendor/modules.txt
+++ b/_vendor/modules.txt
@@ -14,7 +14,7 @@
# github.com/chef/compliance-profiles/docs-chef-io v0.0.0-20241106111500-6a8759e49b64
# github.com/chef/compliance-remediation-2022/docs-chef-io v0.0.0-20240313054833-ebbc45209efa
# github.com/chef/license-service/docs-chef-io v0.0.0-20231117105514-d3f3d53ba2dd
-# github.com/chef/chef-docs-theme v0.0.0-20241022204409-d84f13a3c826
+# github.com/chef/chef-docs-theme v0.0.0-20241119200251-e9924c9d1278
# github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536
# github.com/cowboy/jquery-hashchange v0.0.0-20100902193700-0310f3847f90
# github.com/twitter/hogan.js v3.0.2+incompatible
diff --git a/config/_default/menu.toml b/config/_default/menu.toml
index 43246ca7a1..17b5c9bc43 100644
--- a/config/_default/menu.toml
+++ b/config/_default/menu.toml
@@ -110,11 +110,24 @@ weight = 20
[[360]]
title = "Chef 360 Platform"
+identifier = "360"
+
+[[360]]
+title = "version 1.1"
+parent = "360"
+identifier = "360/1.1"
+url = "/360/1.1/"
+weight = 10
+
+[[360]]
+title = "version 1.0"
+parent = "360"
identifier = "360/1.0"
url = "/360/1.0/"
+weight = 20
####
-# Chef 360 Menu
+# End Chef 360 Menu
####
####
diff --git a/config/_default/params.toml b/config/_default/params.toml
index 9de84db6dd..eee0efceb0 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -18,7 +18,6 @@ menuOrder = [
"extra"
]
-enable_search = true
robots = ''
# sitemaps lists sitemaps that are indexed by the main sitemap layout.
@@ -28,7 +27,8 @@ robots = ''
sitemaps = [
"https://docs.chef.io/sitemap-main.xml",
- "https://docs.chef.io/360/1.0/sitemap.xml"
+ "https://docs.chef.io/360/1.0/sitemap.xml",
+ "https://docs.chef.io/360/1.1/sitemap.xml"
]
[chef-web-docs]
@@ -36,3 +36,79 @@ sitemaps = [
[license-service]
gh_path = "https://github.com/chef/license-service/tree/main/docs-chef-io/content/"
+
+######### Site search ##########
+#
+# This populates the site search page with search filter parameters.
+#
+# default_search_product_keys = The product search keys that are returned by search by default, ie when no product is selected in the search filters
+# Use an empty string ("") for pages without a defined product.
+# Include the latest/newest version of products that have muliple versions of documentation deployed.
+#
+# search.products. = A map/object/dictionary/table/whatever of products and their versions.
+# This populates the left product search filter with product names and versions.
+#
+# name = The product name as it appears in the UI.
+# product_key, product_version_key = The key used to filter results by in Swiftype API calls.
+# This product key is defined in the documatation frontmatter.
+# For example, the "habitat" key is defined in the docs.chef.io/habitat page frontmatter.
+# See here for example: https://github.com/habitat-sh/habitat/blob/main/components/docs-chef-io/content/habitat/_index.md?plain=1#L7
+#
+# search.products..versions = A table of versions for a product.
+# Versions must be in order from newest/latest version to oldest and must be a string.
+#
+################################
+
+[search]
+
+default_search_product_keys = ["", "chef-360-1.1", "automate", "desktop", "habitat", "client", "server", "inspec", "saas", "supermarket", "workstation"]
+
+[search.products]
+
+[search.products.360]
+name = "360 Platform"
+product_key = "chef-360"
+
+[[search.products.360.versions]]
+name = "1.1"
+product_version_key = "chef-360-1.1"
+
+[[search.products.360.versions]]
+name = "1.0"
+product_version_key = "chef-360-1.0"
+
+[search.products.automate]
+name = "Automate"
+product_key = "automate"
+
+[search.products.desktop]
+name = "Desktop"
+product_key = "desktop"
+
+[search.products.habitat]
+name = "Habitat"
+product_key = "habitat"
+
+[search.products.infra_client]
+name = "Infra Client"
+product_key = "client"
+
+[search.products.infra_server]
+name = "Infra Server"
+product_key = "server"
+
+[search.products.inspec]
+name = "InSpec"
+product_key = "inspec"
+
+[search.products.saas]
+name = "SaaS"
+product_key = "saas"
+
+[search.products.supermarket]
+name = "Supermarket"
+product_key = "supermarket"
+
+[search.products.workstation]
+name = "Workstation"
+product_key = "workstation"
diff --git a/content/360/_index.md b/content/360/_index.md
index a24780e3d8..f6bb20702f 100644
--- a/content/360/_index.md
+++ b/content/360/_index.md
@@ -7,4 +7,5 @@ gh_repo = "chef-web-docs"
Chef 360 Platform versions:
+- [Chef 360 Platform 1.1](/360/1.1/)
- [Chef 360 Platform 1.0](/360/1.0/)
diff --git a/content/release_notes_360.md b/content/release_notes_360.md
index a692c43788..8dec1529b7 100644
--- a/content/release_notes_360.md
+++ b/content/release_notes_360.md
@@ -12,6 +12,67 @@ product = [""]
weight = 10
+++
+## Chef 360 Platform 1.1
+
+### New features
+
+- RabbitMQ used for Chef Courier jobs now supports TLS-based communication.
+
+- We added the following system-defined roles:
+
+ - Tenant Admin
+ - Organization Admin
+ - Node Manager
+ - Courier Operator
+
+ Users with these roles can perform tenant management, organization management, node management, and Courier-specific actions.
+ You can also use these roles as a reference for creating custom roles and policies based on business needs of your organization.
+
+ See the [System roles](https://docs.chef.io/360/1.1/administration/system_roles.md) and [System policies](https://docs.chef.io/360/1.1/administration/system_policies) documentation for more information.
+
+- Added UI workflows to perform basic Courier job runs, manage nodes and filters and perform administrative actions. See the [Chef 360 Platform UI documentation](https://docs.chef.io/360/1.1/chef_360_ui) for more information.
+
+- Chef 360 Platform now requires users to load their license keys. Users can run Chef Courier jobs until the license expiration date, after which users must renew their license keys to continue running Courier jobs.
+
+### Improvements
+
+- Upgraded nginx to 1.26.2 to address the following CVEs:
+
+ - CVE-2024-32760
+ - CVE-2024-31079
+ - CVE-2024-35200
+ - CVE-2024-34161
+
+- Added an API to fetch global default settings.
+- You can now modify the number of Replicas for each service when deploying Chef 360 Platform. See the [install documentation](https://docs.chef.io/360/1.1/install/server/install#replicas-count) for more information.
+
+### Bug fixes
+
+- You can now redeploy Chef 360 Platform with updated configurations.
+- When downloading details of a job, the artifact URL is updated to HTTP or HTTPS dynamically in the artifact URL string based on the server configuration.
+- The payload for filtering by the enrollment level and health status attributes is now supported with operator and value fields similar to filtering by other attributes.
+
+ This change requires that all users running Chef 360 Platform 1.0.x must upgrade their skill versions on all nodes to versions supported in the Chef 360 Platform 1.1.
+ The previous release versions of these skills won't run if they're not updated.
+
+### Supported skill versions
+
+| Skill | Skill name | Habitat package | Version |
+| -------------------------|---------------------------|---------------------------------------------------------------------------------------------------------------|----------|
+| Node Management Agent | `node-management-agent` | [chef-platform/node-management-agent](https://bldr.habitat.sh/#/pkgs/chef-platform/node-management-agent) | 1.0.3 |
+| Courier Runner | `courier-runner` | [chef-platform/courier-runner](https://bldr.habitat.sh/#/pkgs/chef-platform/courier-runner) | 1.4.4 |
+| Gohai | `chef-gohai` | [chef-platform/chef-gohai](https://bldr.habitat.sh/#/pkgs/chef-platform/chef-gohai) | 1.0.3 |
+| Shell Interpreter | `shell-interpreter` | [chef-platform/shell-interpreter](https://bldr.habitat.sh/#/pkgs/chef-platform/shell-interpreter) | 1.0.3 |
+| Restart Interpreter | `restart-interpreter` | [chef-platform/restart-interpreter](https://bldr.habitat.sh/#/pkgs/chef-platform/restart-interpreter) | 1.0.2 |
+| Infra Client Interpreter | `chef-client-interpreter` | [chef-platform/chef-client-interpreter](https://bldr.habitat.sh/#/pkgs/chef-platform/chef-client-interpreter) | 1.0.4 |
+| Inspec Interpreter | `inspec-interpreter` | [chef-platform/inspec-interpreter](https://bldr.habitat.sh/#/pkgs/chef-platform/inspec-interpreter) | 1.0.4 |
+
+### Known issues
+
+- Re-enrolling a node that's already enrolled to the same organization or a different organization isn't currently supported.
+ A node must be unenrolled manually if you want to re-enroll.
+- Evidence (log) files are downloaded without the `.zip` extension from the run details screen.
+
## Chef 360 Platform 1.0.2
### Release details
diff --git a/content/search.md b/content/search.md
new file mode 100644
index 0000000000..f7645e72c4
--- /dev/null
+++ b/content/search.md
@@ -0,0 +1,6 @@
++++
+title = "Chef Documentation Search"
+layout = "search"
+left_nav = false
+feedback = false
++++
diff --git a/go.mod b/go.mod
index 852e66f7bb..39904ced2a 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.22
require (
github.com/chef/automate/components/docs-chef-io v0.0.0-20240926130942-4b98d9cf92f6 // indirect
- github.com/chef/chef-docs-theme v0.0.0-20241022204409-d84f13a3c826 // indirect
+ github.com/chef/chef-docs-theme v0.0.0-20241119200251-e9924c9d1278 // indirect
github.com/chef/chef-server/docs-chef-io v0.0.0-20240920053744-03b58ff14f46 // indirect
github.com/chef/chef-workstation/docs-chef-io v0.0.0-20240809064339-878cb76b2b66 // indirect
github.com/chef/compliance-profiles/docs-chef-io v0.0.0-20241106111500-6a8759e49b64 // indirect
diff --git a/go.sum b/go.sum
index c29ae10480..e1fcd8deeb 100644
--- a/go.sum
+++ b/go.sum
@@ -1,7 +1,9 @@
github.com/chef/automate/components/docs-chef-io v0.0.0-20240926130942-4b98d9cf92f6 h1:scrWEAK18Peqbtc3CxwxVaFp595kr+r8eYvYxW7qjQU=
github.com/chef/automate/components/docs-chef-io v0.0.0-20240926130942-4b98d9cf92f6/go.mod h1:juvLC7Rt33YOCgJ5nnfl4rWZRAbSwqjTbWmcAoA0LtU=
-github.com/chef/chef-docs-theme v0.0.0-20241022204409-d84f13a3c826 h1:ga5wgtTZN/1eR44zBJ5umO7vlXjM+j2UER0Gx3KCxz0=
-github.com/chef/chef-docs-theme v0.0.0-20241022204409-d84f13a3c826/go.mod h1:+Jpnv+LXE6dXu2xDcMzMc0RxRGuCPAoFxq5tJ/X6QpQ=
+github.com/chef/chef-docs-theme v0.0.0-20241115193532-ea8b7778f477 h1:QWlQhFhUrp+J+CCDzZsptNUmoNaw09QDAelqmvIxEZs=
+github.com/chef/chef-docs-theme v0.0.0-20241115193532-ea8b7778f477/go.mod h1:+Jpnv+LXE6dXu2xDcMzMc0RxRGuCPAoFxq5tJ/X6QpQ=
+github.com/chef/chef-docs-theme v0.0.0-20241119200251-e9924c9d1278 h1:m8AMAMs3n5s709tRYnDzNcx8jCqxzCwDUSfftaVbs7g=
+github.com/chef/chef-docs-theme v0.0.0-20241119200251-e9924c9d1278/go.mod h1:+Jpnv+LXE6dXu2xDcMzMc0RxRGuCPAoFxq5tJ/X6QpQ=
github.com/chef/chef-server/docs-chef-io v0.0.0-20240920053744-03b58ff14f46 h1:KKSufg3MDKPPzXN2Nv6vUGhx8LIYmYMo9ByQMFbj8Rk=
github.com/chef/chef-server/docs-chef-io v0.0.0-20240920053744-03b58ff14f46/go.mod h1:gMSa25GUHmLimA0gjvRd3hs1buOBqkKPrdHzHvaJauY=
github.com/chef/chef-workstation/docs-chef-io v0.0.0-20240809064339-878cb76b2b66 h1:mGSa2uVyyi8bHyluwmmd83UReZR9gqF/roi5v7lnv0s=
diff --git a/netlify.toml b/netlify.toml
index 67cde9b30e..87824389b9 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -66,3 +66,8 @@
from = "/360/1.0/*"
to = "https://release-1-0--chef-360.netlify.app/360/1.0/:splat"
status = 200
+
+[[redirects]]
+ from = "/360/1.1/*"
+ to = "https://release-1-1--chef-360.netlify.app/360/1.1/:splat"
+ status = 200