diff --git a/.ruby-version b/.ruby-version index 62ae32d58..acf9bf09d 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.7 \ No newline at end of file +3.2.2 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d2e515bf9..3e187ca2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.0-slim-bullseye +FROM ruby:3.2.2-slim-bullseye ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends \ diff --git a/Gemfile b/Gemfile index 863211e5f..f645de66f 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,6 @@ gem 'jekyll-seo-tag', "~> 2.7.1" group :jekyll_plugins do gem 'jekyll-diagrams' - gem 'jekyll-lunr-js-search', :git => 'https://github.com/memfault/jekyll-lunr-js-search.git', :ref => '7d6a1509a0360db652626b4a1db38823d8ec24c0' end gem "jekyll-target-blank", "~> 2.0" diff --git a/Gemfile.lock b/Gemfile.lock index 907bd94f7..7d7284ed3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,13 +1,3 @@ -GIT - remote: https://github.com/memfault/jekyll-lunr-js-search.git - revision: 7d6a1509a0360db652626b4a1db38823d8ec24c0 - ref: 7d6a1509a0360db652626b4a1db38823d8ec24c0 - specs: - jekyll-lunr-js-search (3.3.0) - execjs (~> 2.7) - json (~> 2.0) - nokogiri (~> 1.7) - GEM remote: https://rubygems.org/ specs: @@ -20,7 +10,6 @@ GEM eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) - execjs (2.10.0) ffi (1.17.0) forwardable-extended (2.6.0) http_parser.rb (0.8.0) @@ -60,7 +49,6 @@ GEM nokogiri (~> 1.10) jekyll-watch (2.2.1) listen (~> 3.0) - json (2.7.3) kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) @@ -99,7 +87,6 @@ DEPENDENCIES jekyll-diagrams jekyll-feed (~> 0.15.1) jekyll-get-json (~> 1.0) - jekyll-lunr-js-search! jekyll-paginate (~> 1.1) jekyll-seo-tag (~> 2.7.1) jekyll-sitemap (~> 1.4) diff --git a/_includes/script.html b/_includes/script.html index 6539affa6..b8b1d953f 100644 --- a/_includes/script.html +++ b/_includes/script.html @@ -3,20 +3,3 @@ - -{% if jekyll.environment == "production" %} - - -{% endif %} - - diff --git a/_includes/search.html b/_includes/search.html index 29d05348a..c4d3c982b 100644 --- a/_includes/search.html +++ b/_includes/search.html @@ -2,38 +2,9 @@ - + +
- - - -{% raw %} - -{% endraw %} - - diff --git a/_sass/layout.scss b/_sass/layout.scss index c5ff5a1eb..737db10f9 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -418,7 +418,7 @@ footer { right: 15px; width: 18px; height: 18px; - background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cpath d='M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z'/%3E%3Cpath d='M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z'/%3E%3C/svg%3E%0A"); + // background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cpath d='M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z'/%3E%3Cpath d='M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-size: contain; } diff --git a/js/main.js b/js/main.js index b89190e38..d25f75166 100644 --- a/js/main.js +++ b/js/main.js @@ -56,22 +56,6 @@ function darkModeSetup() { }) } -// Ensures backward compatibility with IE old versions -function searchScroll() { - const scrollBox = document.getElementById('search-results'); - const SCROLLED_CLASSNAME = 'scrolled-down'; - - if (document.addEventListener && scrollBox) { - scrollBox.addEventListener('scroll', () => { - if (scrollBox.scrollTop > 50) { - scrollBox.classList.add(SCROLLED_CLASSNAME); - } else { - scrollBox.classList.remove(SCROLLED_CLASSNAME); - } - }); - } -} - // Function to set a cookie function setCookie(name, value, days) { const expires = new Date();