Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ group :jekyll_plugins do
gem 'github-pages'
gem 'jekyll_image_encode'
end

gem "csv", "~> 3.3"

9 changes: 6 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ GEM
commonmarker (0.23.10)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
csv (3.3.5)
dnsruby (1.70.0)
simpleidn (~> 0.2.1)
drb (2.1.1)
Expand Down Expand Up @@ -221,15 +222,15 @@ GEM
mimemagic (0.4.3)
nokogiri (~> 1)
rake
mini_portile2 (2.8.9)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.20.0)
mutex_m (0.1.2)
nokogiri (1.15.4-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-darwin)
nokogiri (1.15.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
Expand Down Expand Up @@ -271,9 +272,11 @@ GEM

PLATFORMS
arm64-darwin-23
arm64-darwin-24
x86_64-darwin-24

DEPENDENCIES
csv (~> 3.3)
github-pages
jekyll_image_encode
webrick (~> 1.8)
Expand Down
11 changes: 11 additions & 0 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
<link rel="prerender" href="/docs/{{ site.release }}" pr="1.0">
{% endif %}
<link rel="stylesheet" href="/assets/css/main.css">
<script>
// Initialize dark mode immediately to prevent flash
(function() {
var darkMode = localStorage.getItem('lodash-dark-mode');
var prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
var isDark = darkMode !== null ? darkMode === 'true' : prefersDark;
if (isDark) {
document.documentElement.classList.add('dark-mode');
}
})();
</script>
<noscript>
{% for res in site.vendor.css %}
{% assign protocol = res.href | slice:0,6 %}
Expand Down
4 changes: 4 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ <h2>A modern JavaScript utility library delivering modularity, performance &amp;
{% endunless %}
<a href="{{ href }}" class="btn primary">Documentation</a>
<a href="{{ site.links.repo }}/wiki/FP-Guide" class="btn">FP Guide</a>
<button class="dark-mode-toggle" aria-label="Toggle dark mode" title="Toggle dark mode">
<span class="icon moon-icon">🌙</span>
<span class="icon sun-icon">☀️</span>
</button>
</div>
</div>
</header>
Expand Down
8 changes: 8 additions & 0 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@
{% endfor %}
<option value="1.3.1">1.3.1</option>
</select>
<button class="dark-mode-toggle" aria-label="Toggle dark mode" title="Toggle dark mode">
<span class="icon moon-icon">🌙</span>
<span class="icon sun-icon">☀️</span>
</button>
</div>
</div>
<div class="header-section mobile-menu">
<button class="dark-mode-toggle" aria-label="Toggle dark mode" title="Toggle dark mode">
<span class="icon moon-icon">🌙</span>
<span class="icon sun-icon">☀️</span>
</button>
<a href="#"><i class="fa fa-bars" aria-hidden="true"></i>Menu</a>
</div>
</div>
Expand Down
Loading