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.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/subplot-build/src/lib.rs b/subplot-build/src/lib.rs
index f8ed074..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,6 +55,9 @@ where
// re-running.
let base_path = get_basedir_from(filename);
let meta = output.doc.meta();
+ 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