Skip to content

Commit

Permalink
Merge pull request amethyst#2510 from wdcocq/add-html-root-url
Browse files Browse the repository at this point in the history
Add html_root_url doc attribute
  • Loading branch information
dawnlarsson authored Nov 14, 2020
2 parents f1528bf + 9b21607 commit 2275dc5
Show file tree
Hide file tree
Showing 19 changed files with 79 additions and 2 deletions.
4 changes: 4 additions & 0 deletions amethyst_animation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
//! [ex_ani]: https://github.com/amethyst/amethyst/tree/master/examples/animation
//! [ex_gltf]: https://github.com/amethyst/amethyst/tree/master/examples/gltf
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
//! * Asynchronous & Parallel using Rayon
//! * Allow different sources
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

#[cfg(feature = "json")]
Expand Down
5 changes: 5 additions & 0 deletions amethyst_audio/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
//! Loading and playing of audio files.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_config/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! Loads RON files into a structure for easy / statically typed usage.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![crate_name = "amethyst_config"]
#![warn(
missing_debug_implementations,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_controls/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! Amethyst control crate.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
5 changes: 5 additions & 0 deletions amethyst_core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
//! A collection of structures and functions useful across the entire amethyst project.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//! This crate implements various derive macros for easing the use of various amethyst features.
//! At the moment, this consists of event readers, prefab and UI widget derives.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![recursion_limit = "256"]
#![warn(
missing_debug_implementations,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
// Parts copied from failure:
// https://github.com/rust-lang-nursery/failure

#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_gltf/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! A crate for loading GLTF format scenes into Amethyst
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_input/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! A collection of abstractions for various input devices to be used with Amethyst.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_locale/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
//!
//! Localisation binding a `Fluent` file to an Asset<Locale> via the use of amethyst_assets.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
5 changes: 5 additions & 0 deletions amethyst_network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
//! The library is segmented into the simulation module and, eventually, various client library
//! modules. Soon, we will also provide an HTTP client library.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]

pub mod simulation;
pub use bytes::*;
4 changes: 4 additions & 0 deletions amethyst_rendy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
//! * [`JointTransforms`](skinning::JointTransforms)
//! * [`SpriteRender`](sprite::SpriteRender)
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_test/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_tiles/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//! 2D/3D Tile data structures and functionality.
//!
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![deny(clippy::all, clippy::pedantic, missing_docs)]
#![allow(dead_code, clippy::module_name_repetitions)]

Expand Down
4 changes: 4 additions & 0 deletions amethyst_ui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! Provides components and systems to create an in game user interface.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! A collection of useful amethyst utilities, designed to make your game dev life easier.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
4 changes: 4 additions & 0 deletions amethyst_window/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//! Crate abstracting and seperating out the window and display handling within amethyst, and as such
//! its usage of winit.
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
//! Ok(())
//! }
//! ```
#![doc(html_logo_url = "https://amethyst.rs/brand/logo-standard.svg")]
#![doc(
html_logo_url = "https://amethyst.rs/brand/logo-standard.svg",
html_root_url = "https://docs.amethyst.rs/stable"
)]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down

0 comments on commit 2275dc5

Please sign in to comment.