From 5a5cab557c4fdeaeb9fabf4bbfa96e3546a93798 Mon Sep 17 00:00:00 2001 From: Maanav Dalal Date: Sat, 7 Dec 2024 11:43:22 -0800 Subject: [PATCH] WCAG accessibility fixes. (#23049) Should fix: #22453, #21294 I hope this works. No changes worth reviewing on website, but live is available here: https://maanavd.github.io/onnxruntime/docs --- Gemfile | 6 +- Gemfile.lock | 241 ++++++++++-------- _sass/color_schemes/onnxruntime.scss | 30 ++- .../blogs/accelerating-llama-2/+page.svelte | 1 + .../blogs/pytorch-on-the-edge/+page.svelte | 1 + 5 files changed, 150 insertions(+), 129 deletions(-) diff --git a/Gemfile b/Gemfile index 4d4bd5ce6618e..7b50effc88ea5 100644 --- a/Gemfile +++ b/Gemfile @@ -8,7 +8,7 @@ source "https://rubygems.org" # # This will help ensure the proper Jekyll version is running. # Happy Jekylling! -# gem "jekyll", "~> 3.9.0" +# gem "jekyll", "~> 4.3.4" # This is the default theme for new Jekyll sites. You may change this to anything you like. gem "just-the-docs" @@ -19,7 +19,7 @@ gem 'jekyll-redirect-from' # If you want to use GitHub Pages, remove the "gem "jekyll"" above and # uncomment the line below. To upgrade, run `bundle update github-pages`. -gem "github-pages", "~> 225", group: :jekyll_plugins +gem "github-pages", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do @@ -39,3 +39,5 @@ gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform? # kramdown v2 ships without the gfm parser by default. If you're using # kramdown v1, comment out this line. gem "kramdown-parser-gfm" + +gem "jekyll-include-cache", "~> 0.2.1" diff --git a/Gemfile.lock b/Gemfile.lock index 58a9c43d12998..97c2234fae003 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,66 +1,67 @@ GEM remote: https://rubygems.org/ specs: - activesupport (6.0.4.7) + Ascii85 (2.0.1) + activesupport (6.0.6.1) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) zeitwerk (~> 2.2, >= 2.2.2) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) + afm (0.2.2) + async (2.21.1) + console (~> 1.29) + fiber-annotation + io-event (~> 1.6, >= 1.6.5) + base64 (0.2.0) + bigdecimal (3.1.8) coffee-script (2.4.1) coffee-script-source execjs - coffee-script-source (1.11.1) + coffee-script-source (1.12.2) colorator (1.1.0) - commonmarker (0.23.4) - concurrent-ruby (1.1.9) - dnsruby (1.61.9) - simpleidn (~> 0.1) + commonmarker (0.23.11) + concurrent-ruby (1.3.4) + console (1.29.0) + fiber-annotation + fiber-local (~> 1.1) + json + csv (3.3.0) + dnsruby (1.72.3) + base64 (~> 0.2.0) + simpleidn (~> 0.2.1) em-websocket (0.5.3) eventmachine (>= 0.12.9) http_parser.rb (~> 0) - ethon (0.15.0) + ethon (0.16.0) ffi (>= 1.15.0) eventmachine (1.2.7) - execjs (2.8.1) - faraday (1.10.0) - faraday-em_http (~> 1.0) - faraday-em_synchrony (~> 1.0) - faraday-excon (~> 1.1) - faraday-httpclient (~> 1.0) - faraday-multipart (~> 1.0) - faraday-net_http (~> 1.0) - faraday-net_http_persistent (~> 1.0) - faraday-patron (~> 1.0) - faraday-rack (~> 1.0) - faraday-retry (~> 1.0) - ruby2_keywords (>= 0.0.4) - faraday-em_http (1.0.0) - faraday-em_synchrony (1.0.0) - faraday-excon (1.1.0) - faraday-httpclient (1.0.1) - faraday-multipart (1.0.3) - multipart-post (>= 1.2, < 3) - faraday-net_http (1.0.1) - faraday-net_http_persistent (1.2.0) - faraday-patron (1.0.0) - faraday-rack (1.0.0) - faraday-retry (1.0.3) - ffi (1.15.5) + execjs (2.10.0) + faraday (2.12.1) + faraday-net_http (>= 2.0, < 3.5) + json + logger + faraday-net_http (3.4.0) + net-http (>= 0.5.0) + ffi (1.17.0-x86_64-linux-gnu) + fiber-annotation (0.2.0) + fiber-local (1.1.0) + fiber-storage + fiber-storage (1.0.0) forwardable-extended (2.6.0) - gemoji (3.0.1) - github-pages (225) - github-pages-health-check (= 1.17.9) - jekyll (= 3.9.0) - jekyll-avatar (= 0.7.0) - jekyll-coffeescript (= 1.1.1) - jekyll-commonmark-ghpages (= 0.2.0) - jekyll-default-layout (= 0.1.4) - jekyll-feed (= 0.15.1) + gemoji (4.1.0) + github-pages (232) + github-pages-health-check (= 1.18.2) + jekyll (= 3.10.0) + jekyll-avatar (= 0.8.0) + jekyll-coffeescript (= 1.2.2) + jekyll-commonmark-ghpages (= 0.5.1) + jekyll-default-layout (= 0.1.5) + jekyll-feed (= 0.17.0) jekyll-gist (= 1.5.0) - jekyll-github-metadata (= 2.13.0) + jekyll-github-metadata (= 2.16.1) jekyll-include-cache (= 0.2.1) jekyll-mentions (= 1.6.0) jekyll-optional-front-matter (= 0.3.2) @@ -87,40 +88,45 @@ GEM jekyll-theme-tactile (= 0.2.0) jekyll-theme-time-machine (= 0.2.0) jekyll-titles-from-headings (= 0.5.3) - jemoji (= 0.12.0) - kramdown (= 2.3.1) + jemoji (= 0.13.0) + kramdown (= 2.4.0) kramdown-parser-gfm (= 1.1.0) - liquid (= 4.0.3) + liquid (= 4.0.4) mercenary (~> 0.3) minima (= 2.5.1) - nokogiri (>= 1.12.5, < 2.0) - rouge (= 3.26.0) + nokogiri (>= 1.16.2, < 2.0) + rouge (= 3.30.0) terminal-table (~> 1.4) - github-pages-health-check (1.17.9) + webrick (~> 1.8) + github-pages-health-check (1.18.2) addressable (~> 2.3) dnsruby (~> 1.60) - octokit (~> 4.0) - public_suffix (>= 3.0, < 5.0) + octokit (>= 4, < 8) + public_suffix (>= 3.0, < 6.0) typhoeus (~> 1.3) - html-pipeline (2.14.0) + hashery (2.1.2) + html-pipeline (2.14.3) activesupport (>= 2) nokogiri (>= 1.4) - html-proofer (3.19.1) + html-proofer (5.0.9) addressable (~> 2.3) - mercenary (~> 0.3) - nokogumbo (~> 2.0) - parallel (~> 1.3) + async (~> 2.1) + nokogiri (~> 1.13) + pdf-reader (~> 2.11) rainbow (~> 3.0) typhoeus (~> 1.3) yell (~> 2.0) + zeitwerk (~> 2.5) http_parser.rb (0.8.0) - i18n (0.9.5) + i18n (1.14.6) concurrent-ruby (~> 1.0) - jekyll (3.9.0) + io-event (1.7.4) + jekyll (3.10.0) addressable (~> 2.4) colorator (~> 1.0) + csv (~> 3.0) em-websocket (~> 0.5) - i18n (~> 0.7) + i18n (>= 0.7, < 2) jekyll-sass-converter (~> 1.0) jekyll-watch (~> 2.0) kramdown (>= 1.17, < 3) @@ -129,27 +135,28 @@ GEM pathutil (~> 0.9) rouge (>= 1.7, < 4) safe_yaml (~> 1.0) - jekyll-avatar (0.7.0) + webrick (>= 1.0) + jekyll-avatar (0.8.0) jekyll (>= 3.0, < 5.0) - jekyll-coffeescript (1.1.1) + jekyll-coffeescript (1.2.2) coffee-script (~> 2.2) - coffee-script-source (~> 1.11.1) + coffee-script-source (~> 1.12) jekyll-commonmark (1.4.0) commonmarker (~> 0.22) - jekyll-commonmark-ghpages (0.2.0) - commonmarker (~> 0.23.4) - jekyll (~> 3.9.0) + jekyll-commonmark-ghpages (0.5.1) + commonmarker (>= 0.23.7, < 1.1.0) + jekyll (>= 3.9, < 4.0) jekyll-commonmark (~> 1.4.0) - rouge (>= 2.0, < 4.0) - jekyll-default-layout (0.1.4) - jekyll (~> 3.0) - jekyll-feed (0.15.1) + rouge (>= 2.0, < 5.0) + jekyll-default-layout (0.1.5) + jekyll (>= 3.0, < 5.0) + jekyll-feed (0.17.0) jekyll (>= 3.7, < 5.0) jekyll-gist (1.5.0) octokit (~> 4.2) - jekyll-github-metadata (2.13.0) + jekyll-github-metadata (2.16.1) jekyll (>= 3.4, < 5.0) - octokit (~> 4.0, != 4.4.0) + octokit (>= 4, < 7, != 4.4.0) jekyll-include-cache (0.2.1) jekyll (>= 3.7, < 5.0) jekyll-mentions (1.6.0) @@ -218,54 +225,61 @@ GEM jekyll-seo-tag (~> 2.0) jekyll-titles-from-headings (0.5.3) jekyll (>= 3.3, < 5.0) - jekyll-toc (0.17.1) + jekyll-toc (0.19.0) jekyll (>= 3.9) - nokogiri (~> 1.11) + nokogiri (~> 1.12) jekyll-watch (2.2.1) listen (~> 3.0) - jemoji (0.12.0) - gemoji (~> 3.0) + jemoji (0.13.0) + gemoji (>= 3, < 5) html-pipeline (~> 2.2) jekyll (>= 3.0, < 5.0) - just-the-docs (0.3.3) + json (2.9.0) + just-the-docs (0.10.0) jekyll (>= 3.8.5) - jekyll-seo-tag (~> 2.0) - rake (>= 12.3.1, < 13.1.0) - kramdown (2.3.1) + jekyll-include-cache + jekyll-seo-tag (>= 2.0) + rake (>= 12.3.1) + kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - liquid (4.0.3) - listen (3.7.1) + liquid (4.0.4) + listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) + logger (1.6.2) mercenary (0.3.6) minima (2.5.1) jekyll (>= 3.5, < 5.0) jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) - minitest (5.15.0) - multipart-post (2.1.1) - nokogiri (1.13.3-x86_64-linux) + minitest (5.25.4) + net-http (0.6.0) + uri + nokogiri (1.16.8-x86_64-linux) racc (~> 1.4) - nokogumbo (2.0.5) - nokogiri (~> 1.8, >= 1.8.4) - octokit (4.22.0) - faraday (>= 0.9) - sawyer (~> 0.8.0, >= 0.5.3) - parallel (1.21.0) + octokit (4.25.1) + faraday (>= 1, < 3) + sawyer (~> 0.9) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (4.0.6) - racc (1.6.0) - rainbow (3.0.0) - rake (13.0.6) - rb-fsevent (0.11.1) - rb-inotify (0.10.1) + pdf-reader (2.13.0) + Ascii85 (>= 1.0, < 3.0, != 2.0.0) + afm (~> 0.2.1) + hashery (~> 2.0) + ruby-rc4 + ttfunk + public_suffix (5.1.1) + racc (1.8.1) + rainbow (3.1.1) + rake (13.2.1) + rb-fsevent (0.11.2) + rb-inotify (0.11.1) ffi (~> 1.0) - rexml (3.2.5) - rouge (3.26.0) - ruby2_keywords (0.0.5) + rexml (3.3.9) + rouge (3.30.0) + ruby-rc4 (0.1.5) rubyzip (2.3.2) safe_yaml (1.0.5) sass (3.7.4) @@ -273,35 +287,36 @@ GEM sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) - sawyer (0.8.2) + sawyer (0.9.2) addressable (>= 2.3.5) - faraday (> 0.8, < 2.0) - simpleidn (0.2.1) - unf (~> 0.1.4) + faraday (>= 0.17.3, < 3) + simpleidn (0.2.3) terminal-table (1.8.0) unicode-display_width (~> 1.1, >= 1.1.1) thread_safe (0.3.6) - typhoeus (1.4.0) + ttfunk (1.8.0) + bigdecimal (~> 3.1) + typhoeus (1.4.1) ethon (>= 0.9.0) - tzinfo (1.2.9) + tzinfo (1.2.11) thread_safe (~> 0.1) - tzinfo-data (1.2021.5) + tzinfo-data (1.2024.2) tzinfo (>= 1.0.0) - unf (0.1.4) - unf_ext - unf_ext (0.0.8.1) unicode-display_width (1.8.0) + uri (1.0.2) wdm (0.1.1) + webrick (1.9.1) yell (2.2.2) - zeitwerk (2.5.4) + zeitwerk (2.7.1) PLATFORMS x86_64-linux DEPENDENCIES - github-pages (~> 225) + github-pages html-proofer jekyll-feed (~> 0.6) + jekyll-include-cache (~> 0.2.1) jekyll-redirect-from jekyll-toc just-the-docs @@ -312,4 +327,4 @@ DEPENDENCIES wdm (~> 0.1.0) BUNDLED WITH - 2.2.29 + 2.5.23 diff --git a/_sass/color_schemes/onnxruntime.scss b/_sass/color_schemes/onnxruntime.scss index 3016cc9046cc1..8766cefe3d32d 100644 --- a/_sass/color_schemes/onnxruntime.scss +++ b/_sass/color_schemes/onnxruntime.scss @@ -11,34 +11,36 @@ $btn-primary-color: #226aca; // .highlight .c1 { // color: #188616 !important; // } - +// 2024 December Accessibility changes +.highlight .s { color: #3c7a3b ;} +// Initial Theme .highlight .hll { background-color: #ffffcc; } .highlight { background: #ffffff; } -.highlight .c { color: #767676; } +.highlight .c { color: #707070 ; } .highlight .err { background-color: #FFAAAA; color: #a00000; } -.highlight .k { color: #008800; font-weight: bold; } +.highlight .k { color: #008100; font-weight: bold; } .highlight .o { color: #333333; } -.highlight .ch { color: #767676; } -.highlight .cm { color: #767676; } +.highlight .ch { color: #707070 ; } +.highlight .cm { color: #707070 ; } .highlight .cp { color: #557799; } -.highlight .cpf { color: #767676; } -.highlight .c1 { color: #767676; } +.highlight .cpf { color: #707070 ; } +.highlight .c1 { color: #707070 ; } .highlight .cs { color: #cc0000; font-weight: bold; } .highlight .gd { color: #A00000; } .highlight .ge { font-style: italic; } .highlight .gr { color: #eb0000; } .highlight .gh { color: #000080; font-weight: bold; } .highlight .gi { color: #008700; } -.highlight .go { color: #767676; } +.highlight .go { color: #707070 ; } .highlight .gp { font-weight: bold; color: #bc5909; } .highlight .gs { font-weight: bold; } .highlight .gu { color: #800080; font-weight: bold; } .highlight .gt { color: #0044DD; } -.highlight .kc { color: #008800; font-weight: bold; } -.highlight .kd { color: #008800; font-weight: bold; } -.highlight .kn { color: #008800; font-weight: bold; } +.highlight .kc { color: #008100; font-weight: bold; } +.highlight .kd { color: #008100; font-weight: bold; } +.highlight .kn { color: #008100; font-weight: bold; } .highlight .kp { color: #003388; font-weight: bold; } -.highlight .kr { color: #008800; font-weight: bold; } +.highlight .kr { color: #008100; font-weight: bold; } .highlight .kt { color: #333399; font-weight: bold; } .highlight .m { color: #6600EE; font-weight: bold; } .highlight .s { background-color: #fff0f0; } @@ -51,11 +53,11 @@ $btn-primary-color: #226aca; .highlight .ne { font-weight: bold; color: #eb0000; } .highlight .nf { color: #0066BB; font-weight: bold; } .highlight .nl { font-weight: bold; color: #8f6f00; } -.highlight .nn { font-weight: bold; color: #0e7eab; } +.highlight .nn { font-weight: bold; color: #0d77a2 ; } .highlight .nt { color: #007700; } .highlight .nv { color: #996633; } .highlight .ow { color: #000000; font-weight: bold; } -.highlight .w { color: #767676; } +.highlight .w { color: #707070 ; } .highlight .mb { color: #6600EE; font-weight: bold; } .highlight .mf { color: #6600EE; font-weight: bold; } .highlight .mh { color: #005588; font-weight: bold; } diff --git a/src/routes/blogs/accelerating-llama-2/+page.svelte b/src/routes/blogs/accelerating-llama-2/+page.svelte index aeb3bf6b83fae..5996a31f017ab 100644 --- a/src/routes/blogs/accelerating-llama-2/+page.svelte +++ b/src/routes/blogs/accelerating-llama-2/+page.svelte @@ -14,6 +14,7 @@ + Accelerating LLaMA-2 Inference with ONNX Runtime + Run PyTorch models on the edge