From 3335b9791d6f1de9c1dbede6350b5325591bd62e Mon Sep 17 00:00:00 2001
From: "M. R. McCormick" <100036696+m-r-mccormick@users.noreply.github.com>
Date: Mon, 23 Jan 2023 02:35:21 -0500
Subject: [PATCH] Exclude images from being bundled with gem (#1142)

Co-authored-by: m-r-mccormick <m-r-mccormick@users.noreply.github.com>
---
 just-the-docs.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/just-the-docs.gemspec b/just-the-docs.gemspec
index adafd47c..d5c951a7 100644
--- a/just-the-docs.gemspec
+++ b/just-the-docs.gemspec
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
     "source_code_uri"   => "https://github.com/just-the-docs/just-the-docs",
   }
 
-  spec.files         = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README|CHANGELOG|favicon)}i) }
+  spec.files         = `git ls-files -z ':!:*.jpg' ':!:*.png'`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README|CHANGELOG|favicon)}i) }
   spec.executables   << 'just-the-docs'
 
   spec.add_development_dependency "bundler", "~> 2.3.5"
-- 
GitLab