From be0a9071455c1fe2205548758bd107ec3ebb91c1 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 27 Jul 2016 19:24:21 +0200 Subject: [PATCH 1/2] Add .imag-documentation A crate which simply depends on all libimag* crates to be able to generate the documentation for all of them by simply creating the documentation of this crate. --- .imag-documentation/Cargo.toml | 64 ++++++++++++++++++++++++++++++++++ .imag-documentation/src/lib.rs | 6 ++++ 2 files changed, 70 insertions(+) create mode 100644 .imag-documentation/Cargo.toml create mode 100644 .imag-documentation/src/lib.rs diff --git a/.imag-documentation/Cargo.toml b/.imag-documentation/Cargo.toml new file mode 100644 index 00000000..0d45f87b --- /dev/null +++ b/.imag-documentation/Cargo.toml @@ -0,0 +1,64 @@ +[package] +name = "imag-documentation" +version = "0.2.0" +authors = ["Matthias Beyer "] + +[dependencies] + +[dependencies.libimagbookmark] +path = "../libimagbookmark" + +[dependencies.libimagcounter] +path = "../libimagcounter" + +[dependencies.libimagdiary] +path = "../libimagdiary" + +[dependencies.libimagentryfilter] +path = "../libimagentryfilter" + +[dependencies.libimagentrylink] +path = "../libimagentrylink" + +[dependencies.libimagentrylist] +path = "../libimagentrylist" + +[dependencies.libimagentrymarkdown] +path = "../libimagentrymarkdown" + +[dependencies.libimagentryselect] +path = "../libimagentryselect" + +[dependencies.libimagentrytag] +path = "../libimagentrytag" + +[dependencies.libimagentryview] +path = "../libimagentryview" + +[dependencies.libimagerror] +path = "../libimagerror" + +[dependencies.libimaginteraction] +path = "../libimaginteraction" + +[dependencies.libimagnotes] +path = "../libimagnotes" + +[dependencies.libimagref] +path = "../libimagref" + +[dependencies.libimagrt] +path = "../libimagrt" + +[dependencies.libimagstore] +path = "../libimagstore" + +[dependencies.libimagstorestdhook] +path = "../libimagstorestdhook" + +[dependencies.libimagtimeui] +path = "../libimagtimeui" + +[dependencies.libimagutil] +path = "../libimagutil" + diff --git a/.imag-documentation/src/lib.rs b/.imag-documentation/src/lib.rs new file mode 100644 index 00000000..cdfbe1aa --- /dev/null +++ b/.imag-documentation/src/lib.rs @@ -0,0 +1,6 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + } +} From 7c8c9b5264863608fc3dc08f324c42751d47c4e7 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 27 Jul 2016 19:29:34 +0200 Subject: [PATCH 2/2] Add Makefile target for building the lib documentation --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 7e587fb9..928876b7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ toml = $@/Cargo.toml bin = $@/target/debug/$@ +doc-crate-toml=./.imag-documentation/Cargo.toml + default: all .PHONY: clean @@ -11,6 +13,9 @@ imag-%: prep cargo build --manifest-path $(toml) cp $(bin) out/ +lib-doc: + cargo build --manifest-path $(doc-crate-toml) + prep: mkdir -p out/