summaryrefslogtreecommitdiff
path: root/subplot-build/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'subplot-build/src/lib.rs')
-rw-r--r--subplot-build/src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/subplot-build/src/lib.rs b/subplot-build/src/lib.rs
index 7f194c5..db47623 100644
--- a/subplot-build/src/lib.rs
+++ b/subplot-build/src/lib.rs
@@ -7,7 +7,8 @@
use std::env::var_os;
use std::fmt::Debug;
use std::path::{Path, PathBuf};
-use subplot::{get_basedir_from, SubplotError};
+use subplot::get_basedir_from;
+pub use subplot::SubplotError;
use tracing::{event, instrument, span, Level};
/// Generate code for one document, inside `build.rs`.
@@ -54,7 +55,9 @@ where
// re-running.
let base_path = get_basedir_from(filename);
let meta = output.doc.meta();
- buildrs_deps(&base_path, Some(meta.markdown_filename()));
+ for filename in meta.markdown_filenames() {
+ buildrs_deps(&base_path, Some(filename.as_path()));
+ }
buildrs_deps(&base_path, meta.bindings_filenames());
let docimpl = output
.doc