From 3cc3d8f58689fb0e0cb84cb9a0c0d5726f4aebaf Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 26 Jul 2022 13:52:50 -0400 Subject: [PATCH] Support project-level NPM modules for BS and FA (#1117) --- 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'