diff options
author | Regis Philibert <login@regisphilibert.com> | 2020-07-03 18:33:57 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-11-19 21:54:42 +0300 |
commit | 3fcfd606f2c264f1d3434e99c140a05edec461c3 (patch) | |
tree | c9f342298c720c911d283b71b55df97354358f53 /config.yml | |
parent | 6b071116f3b09b59a423ad999efbd67f8645bfa5 (diff) |
Add Hugo Pipes logic for local and vendored scripts.
Diffstat (limited to 'config.yml')
-rw-r--r-- | config.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config.yml b/config.yml index 638019c9e2..48b3bd44c3 100644 --- a/config.yml +++ b/config.yml @@ -40,10 +40,12 @@ module: target: static/apple-touch-icon.png - source: site/static/docs/5.0/assets/img/favicons/favicon.ico target: static/favicon.ico - # docsearch is referenced in a `script` tag so we just mount it in the static folder + + # the following are processed via Hugo pipes so we need them in the assets folder + ## the following will be printed with Hugo pipes - source: node_modules/docsearch.js/dist/cdn/docsearch.min.js - target: static/docs/5.0/assets/js/vendor/docsearch.min.js - # the following are concatenated via Hugo pipes with docs.js so we need them in the assets folder + target: assets/js/vendor/docsearch.min.js + ## 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 |