diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-10-05 12:02:56 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-10-13 10:04:59 +0300 |
commit | 5855c963b8c1e1748f50301ddcc21a923be60240 (patch) | |
tree | 2b53f37057da8b93e9b67250de9104d7c0883795 /src/lib.rs | |
parent | 2459137129c64e02a2948f6c5f9e17bf56742c64 (diff) | |
download | subplot-5855c963b8c1e1748f50301ddcc21a923be60240.tar.gz |
feat: add crate subplot-build for using Subplot from build.rs
Make it easy to generate test code from a subplot in another project's
`build.rs` script.
Move the code to load documents and generate test code from
src/bin/subplot.rs and src/bin/cli/mod.rs to src/doc.rs so it can be
used without using the subplot executable.
Make the add_search_path function public so it can be used outside its
module. The subplot executable arranged for the directory where the
markdown input file resides to be added to the search path via another
way.
Sponsored-by: pep.foundation
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -40,6 +40,7 @@ pub use metadata::Metadata; mod doc; pub use doc::Document; +pub use doc::{codegen, load_document, load_document_with_pullmark}; mod style; pub use style::Style; |