Tidy up broken links. Set 'html_root_url'.

This commit is contained in:
Sergio Benitez 2017-06-11 01:03:59 -07:00
parent f57d5146d3
commit 9a297f776b
4 changed files with 15 additions and 9 deletions

View File

@ -3,6 +3,9 @@
#![cfg_attr(feature = "templates", feature(associated_consts))] #![cfg_attr(feature = "templates", feature(associated_consts))]
#![cfg_attr(feature = "templates", feature(struct_field_attributes))] #![cfg_attr(feature = "templates", feature(struct_field_attributes))]
// TODO: Version URLs.
#![doc(html_root_url = "https://api.rocket.rs/rocket_contrib/")]
//! This crate contains officially sanctioned contributor libraries that provide //! This crate contains officially sanctioned contributor libraries that provide
//! functionality commonly used by Rocket applications. //! functionality commonly used by Rocket applications.
//! //!

View File

@ -10,6 +10,9 @@
#![plugin(pear_codegen)] #![plugin(pear_codegen)]
// TODO: Version URLs.
#![doc(html_root_url = "https://api.rocket.rs/rocket/")]
//! # Rocket - Core API Documentation //! # Rocket - Core API Documentation
//! //!
//! Hello, and welcome to the core Rocket API documentation! //! Hello, and welcome to the core Rocket API documentation!
@ -92,10 +95,9 @@
//! //!
//! ## Testing //! ## Testing
//! //!
//! Rocket includes a small testing library that can be used to test your Rocket //! The [local](/rocket/local) module contains structures that are facilitate
//! application. For information on how to test your Rocket applications, see //! unit and itegration testing of a Rocket application. The [top-level `local`
//! the [testing module](/rocket/testing) documentation. //! module documentation](/rocket/local) includes detailed examples.
//!
#[macro_use] extern crate log; #[macro_use] extern crate log;
#[macro_use] extern crate pear; #[macro_use] extern crate pear;

View File

@ -86,7 +86,8 @@
//! #[test] //! #[test]
//! fn test_hello_world() { //! fn test_hello_world() {
//! // Construct a client to use for dispatching requests. //! // Construct a client to use for dispatching requests.
//! let client = Client::new(rocket::ignite().mount("/", routes![hello])); //! let rocket = rocket::ignite().mount("/", routes![hello]);
//! let client = Client::new(rocket).expect("valid rocket instance");
//! //!
//! // Dispatch a request to 'GET /' and validate the response. //! // Dispatch a request to 'GET /' and validate the response.
//! let mut response = client.get("/").dispatch(); //! let mut response = client.get("/").dispatch();

View File

@ -100,10 +100,10 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
/// ///
/// * **Cookies** /// * **Cookies**
/// ///
/// Returns a borrow to the [Cookies](/rocket/http/type.Cookies.html) in the /// Returns a borrow to the [Cookies](/rocket/http/enum.Cookies.html) in
/// incoming request. Note that `Cookies` implements internal mutability, so /// the incoming request. Note that `Cookies` implements internal
/// a handle to `Cookies` allows you to get _and_ set cookies in the /// mutability, so a handle to `Cookies` allows you to get _and_ set cookies
/// request. /// in the request.
/// ///
/// _This implementation always returns successfully._ /// _This implementation always returns successfully._
/// ///