From 1c417e9fce683e27944c6ad02b4b63b8b5e20fd9 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 13 Jul 2015 16:07:31 +0200 Subject: [PATCH 1/3] More colored build output on Travis --- scripts/travis-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh index 864c0133..c5aa30f6 100755 --- a/scripts/travis-build.sh +++ b/scripts/travis-build.sh @@ -16,6 +16,7 @@ cargo test | ./scripts/shrink-test-output.py r=${PIPESTATUS[0]} if [ $r -ne 0 ]; then exit $r; fi +cargo test --manifest-path dom_sink/Cargo.toml --no-run cargo test --manifest-path dom_sink/Cargo.toml | ./scripts/shrink-test-output.py r=${PIPESTATUS[0]} if [ $r -ne 0 ]; then exit $r; fi From 96fb47e505600fa9dfe7f9d643a476652b378391 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 13 Jul 2015 16:07:55 +0200 Subject: [PATCH 2/3] Fix some references to files that have moved. --- README.md | 2 +- STRUCTURE.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1ec420df..8613717c 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Add html5ever as a dependency in your [`Cargo.toml`](http://crates.io/) file: html5ever = "*" ``` -Then take a look at [`examples/print-rcdom.rs`](https://github.com/servo/html5ever/blob/master/examples/print-rcdom.rs) and the [API documentation][]. +Then take a look at [`dom_sink/examples/print-rcdom.rs`](https://github.com/servo/html5ever/blob/master/dom_sink/examples/print-rcdom.rs) and the [API documentation][]. ## Getting started in other languages diff --git a/STRUCTURE.md b/STRUCTURE.md index fd30013a..f232cc1c 100644 --- a/STRUCTURE.md +++ b/STRUCTURE.md @@ -12,7 +12,7 @@ The module structure is also documented in the output produced by `cargo doc`, a `src/serialize/`: Turning trees back into strings. Corresponds to [section 12.3 "Serialising HTML fragments"](https://html.spec.whatwg.org/multipage/syntax.html#serialising-html-fragments) -`src/sink/`: Types that html5ever can use to represent the DOM, if you do not provide your own DOM implementation. +`dom_sink/`: Types that html5ever can use to represent the DOM, if you do not provide your own DOM implementation. `macros/`: Rust syntax extensions used within html5ever. Users of the library do not need this crate. @@ -22,6 +22,6 @@ The module structure is also documented in the output produced by `cargo doc`, a `bench/`: Benchmarks. Another executable crate. -`examples/`: Examples of using the library. Each `.rs` file is an executable crate. +`examples/` and `dom_sink/examples`: Examples of using the library. Each `.rs` file is an executable crate. `data/`: Various data used in building and benchmarking the parser. From 27906468b4ed62b76dcb518606d92ab668b130f6 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 13 Jul 2015 16:08:03 +0200 Subject: [PATCH 3/3] Include dom_sink in the generated docs --- scripts/travis-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh index c5aa30f6..4330758d 100755 --- a/scripts/travis-build.sh +++ b/scripts/travis-build.sh @@ -10,7 +10,6 @@ set -ex -cargo doc cargo test --no-run cargo test | ./scripts/shrink-test-output.py r=${PIPESTATUS[0]} @@ -22,3 +21,6 @@ r=${PIPESTATUS[0]} if [ $r -ne 0 ]; then exit $r; fi cargo test --manifest-path capi/Cargo.toml + +cargo doc --manifest-path dom_sink/Cargo.toml +mv dom_sink/target/doc target/doc