From faa3b44ccc0b13c15356368ff92774ce3c38c6fc Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 26 Jul 2022 13:29:34 -0400 Subject: [PATCH] Support project-level NPM modules for BS and FA --- config.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.toml b/config.toml index b65928176f..47a9ab4059 100644 --- a/config.toml +++ b/config.toml @@ -48,3 +48,11 @@ min = "0.73.0" [[module.mounts]] source = 'static' target = 'static' + # Mounts for projects using Docsy as an NPM package. The source path prefix + # "../.." moves out of themes/docsy so that Docsy can find its dependencies. + [[module.mounts]] + source = '../../node_modules/bootstrap' + target = 'assets/vendor/bootstrap' + [[module.mounts]] + source = '../../node_modules/@fortawesome/fontawesome-free' + target = 'assets/vendor/Font-Awesome'