Browse Source

Auto merge of #325 - DarkEld3r:313-html-root-url-attribute, r=SimonSapin

Add html_root_url attribute

Fixes #313

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/325)
<!-- Reviewable:end -->
bors-servo 9 years ago
parent
commit
780410c0f1
2 changed files with 3 additions and 0 deletions
  1. 1 0
      Cargo.toml
  2. 2 0
      src/lib.rs

+ 1 - 0
Cargo.toml

@@ -1,6 +1,7 @@
 [package]
 [package]
 
 
 name = "url"
 name = "url"
+# When updating version, also modify html_root_url in the lib.rs
 version = "1.4.0"
 version = "1.4.0"
 authors = ["The rust-url developers"]
 authors = ["The rust-url developers"]
 
 

+ 2 - 0
src/lib.rs

@@ -90,6 +90,8 @@ let css_url = this_document.join("../main.css").unwrap();
 assert_eq!(css_url.as_str(), "http://servo.github.io/rust-url/main.css")
 assert_eq!(css_url.as_str(), "http://servo.github.io/rust-url/main.css")
 */
 */
 
 
+#![doc(html_root_url = "https://docs.rs/url/1.4.0")]
+
 #[cfg(feature="rustc-serialize")] extern crate rustc_serialize;
 #[cfg(feature="rustc-serialize")] extern crate rustc_serialize;
 #[macro_use] extern crate matches;
 #[macro_use] extern crate matches;
 #[cfg(feature="serde")] extern crate serde;
 #[cfg(feature="serde")] extern crate serde;