]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Adapt to the recent main changes
authorXhmikosR <xhmikosr@gmail.com>
Tue, 20 Oct 2020 07:46:04 +0000 (10:46 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 19 Nov 2020 18:54:42 +0000 (20:54 +0200)
* remove `bs-custom-file-input.min.js`
* switch to errorf
* change error message

config.yml
site/layouts/partials/func/get-js-assets.html

index 48b3bd44c3ac0389d0db0bf3fe0a2432f24f829d..eafd87945db50201971f08724f39f2b2eca813c8 100644 (file)
@@ -48,8 +48,6 @@ module:
     ## The following vendor files will be bundled together on top of local js files as /docs.js
     - source:           node_modules/anchor-js/anchor.min.js
       target:           assets/js/vendor/anchor.min.js
-    - source:           node_modules/bs-custom-file-input/dist/bs-custom-file-input.min.js
-      target:           assets/js/vendor/bs-custom-file-input.min.js
     - source:           node_modules/clipboard/dist/clipboard.min.js
       target:           assets/js/vendor/clipboard.min.js
 
index a7a27292e7a1ad234ea977270e6bf16732c43ed8..351e9ad1dc0b38df615569a5d765e4872e9a6a27 100644 (file)
@@ -18,7 +18,7 @@
 {{ $jsAssets := slice }}
 
 {{/* Storing the reused mount warning message */}}
-{{ $missing_file_warning := "%s not found. Check your mounts settings." }}
+{{ $missing_file_warning := "%s not found. Check your mounts settings and/or run `npm i`." }}
 {{ $doc_version := site.Params.docs_version }}
 {{/* Doc Search */}}
 {{ if eq .Page.Layout "docs" -}}
@@ -31,7 +31,7 @@
   */}}
     {{ $jsAssets = $jsAssets | append . }}
   {{ else }}
-    {{ warnf $missing_file_warning "docsearch.min.js" }}
+    {{ errorf $missing_file_warning "docsearch.min.js" }}
   {{ end }}
 {{- end }}
 
   1. Check for missing mounts and throw an error
   2. Control order if need be
   3. Exclude docsearch (though there would be other ways) */}}
-{{ $vendor_filenames := slice "clipboard.min.js" "anchor.min.js" "bs-custom-file-input.min.js" }}
+{{ $vendor_filenames := slice "clipboard.min.js" "anchor.min.js" }}
 {{ range $filename := $vendor_filenames }}
   {{ with resources.GetMatch (print "js/vendor/" .) }}
     {{ $vendor_assets = $vendor_assets | append . }}
   {{ else }}
-    {{ warnf $missing_file_warning $filename }}
+    {{ errorf $missing_file_warning $filename }}
   {{ end }}
 {{ end }}
 {{ with $vendor_assets }}