From aad97e6be081f73e68db15f57b68ac3bea68d0be Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 22 Nov 2017 10:58:20 -0800 Subject: [PATCH] Use correct rustdoc 'html_root_url'. Fixes #474. --- codegen/src/lib.rs | 18 +++++++++++------- contrib/src/lib.rs | 2 +- lib/src/lib.rs | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index a10b0847..137737fb 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -1,3 +1,14 @@ +#![crate_type = "dylib"] +#![feature(quote, concat_idents, plugin_registrar, rustc_private)] +#![feature(iterator_for_each)] +#![feature(custom_attribute)] +#![feature(i128_type)] +#![allow(unused_attributes)] +#![allow(deprecated)] + +// TODO: Version URLs. +#![doc(html_root_url = "https://api.rocket.rs")] + //! # Rocket - Code Generation //! //! This crate implements the code generation portions of Rocket. This includes @@ -212,13 +223,6 @@ //! ROCKET_CODEGEN_DEBUG=1 cargo build //! ``` -#![crate_type = "dylib"] -#![feature(quote, concat_idents, plugin_registrar, rustc_private)] -#![feature(iterator_for_each)] -#![feature(custom_attribute)] -#![feature(i128_type)] -#![allow(unused_attributes)] -#![allow(deprecated)] #[macro_use] extern crate log; extern crate syntax; diff --git a/contrib/src/lib.rs b/contrib/src/lib.rs index 5ff7c9df..d538fee5 100644 --- a/contrib/src/lib.rs +++ b/contrib/src/lib.rs @@ -2,7 +2,7 @@ #![cfg_attr(feature = "templates", feature(conservative_impl_trait))] // TODO: Version URLs. -#![doc(html_root_url = "https://api.rocket.rs/rocket_contrib/")] +#![doc(html_root_url = "https://api.rocket.rs")] //! This crate contains officially sanctioned contributor libraries that provide //! functionality commonly used by Rocket applications. diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 4eced1aa..417cbf2a 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -8,7 +8,7 @@ #![plugin(pear_codegen)] // TODO: Version URLs. -#![doc(html_root_url = "https://api.rocket.rs/rocket/")] +#![doc(html_root_url = "https://api.rocket.rs")] //! # Rocket - Core API Documentation //!