From ff3efd504cb6dc08f899882c4e41697c5f86fe0f Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Wed, 26 Feb 2020 21:10:08 -0800 Subject: [PATCH] Add Zebra logo to all workspace crates. Also add html_root_url attributes. --- zebra-chain/src/lib.rs | 4 ++++ zebra-client/src/lib.rs | 3 +++ zebra-consensus/src/lib.rs | 3 +++ zebra-network/src/lib.rs | 3 +++ zebra-rpc/src/lib.rs | 3 +++ zebra-script/src/lib.rs | 4 ++++ zebra-storage/src/lib.rs | 3 +++ zebrad/src/lib.rs | 3 +++ 8 files changed, 26 insertions(+) diff --git a/zebra-chain/src/lib.rs b/zebra-chain/src/lib.rs index 87eec1b4..988ee6d3 100644 --- a/zebra-chain/src/lib.rs +++ b/zebra-chain/src/lib.rs @@ -1,4 +1,8 @@ //! Blockchain-related datastructures for Zebra. 🦓 + +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_chain")] + #![deny(missing_docs)] mod merkle_tree; diff --git a/zebra-client/src/lib.rs b/zebra-client/src/lib.rs index 31e1bb20..61555884 100644 --- a/zebra-client/src/lib.rs +++ b/zebra-client/src/lib.rs @@ -1,3 +1,6 @@ +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_client")] + #[cfg(test)] mod tests { #[test] diff --git a/zebra-consensus/src/lib.rs b/zebra-consensus/src/lib.rs index 31e1bb20..ead69bed 100644 --- a/zebra-consensus/src/lib.rs +++ b/zebra-consensus/src/lib.rs @@ -1,3 +1,6 @@ +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_consensus")] + #[cfg(test)] mod tests { #[test] diff --git a/zebra-network/src/lib.rs b/zebra-network/src/lib.rs index 492107f3..09ef2618 100644 --- a/zebra-network/src/lib.rs +++ b/zebra-network/src/lib.rs @@ -26,6 +26,9 @@ //! to close, and the outbound service can connect to additional peers //! when it is overloaded. +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_network")] + #![deny(missing_docs)] // Tracing causes false positives on this lint: // https://github.com/tokio-rs/tracing/issues/553 diff --git a/zebra-rpc/src/lib.rs b/zebra-rpc/src/lib.rs index 31e1bb20..f1aa9375 100644 --- a/zebra-rpc/src/lib.rs +++ b/zebra-rpc/src/lib.rs @@ -1,3 +1,6 @@ +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_rpc")] + #[cfg(test)] mod tests { #[test] diff --git a/zebra-script/src/lib.rs b/zebra-script/src/lib.rs index 31e1bb20..cb4261a0 100644 --- a/zebra-script/src/lib.rs +++ b/zebra-script/src/lib.rs @@ -1,3 +1,7 @@ +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_script")] + + #[cfg(test)] mod tests { #[test] diff --git a/zebra-storage/src/lib.rs b/zebra-storage/src/lib.rs index 31e1bb20..cdd60049 100644 --- a/zebra-storage/src/lib.rs +++ b/zebra-storage/src/lib.rs @@ -1,3 +1,6 @@ +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_storage")] + #[cfg(test)] mod tests { #[test] diff --git a/zebrad/src/lib.rs b/zebrad/src/lib.rs index f43297a4..f40bab1f 100644 --- a/zebrad/src/lib.rs +++ b/zebrad/src/lib.rs @@ -12,6 +12,9 @@ //! //! [Join us on Discord](https://discord.gg/na6QZNd). +#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] +#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebrad")] + //#![deny(warnings, missing_docs, trivial_casts, unused_qualifications)] #![forbid(unsafe_code)] // Tracing causes false positives on this lint: