Add favicon and logo URLs for rustdoc

This commit is contained in:
Jonas Platte 2021-04-05 11:42:04 +02:00
parent db18d938e0
commit 1bf4157a89
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
18 changed files with 40 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate ruma-api-macros provides a procedural macro for easily generating //! Crate ruma-api-macros provides a procedural macro for easily generating
//! [ruma-api]-compatible endpoints. //! [ruma-api]-compatible endpoints.
//! //!

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate `ruma_api` contains core types used to define the requests and responses for each endpoint //! Crate `ruma_api` contains core types used to define the requests and responses for each endpoint
//! in the various [Matrix](https://matrix.org) API specifications. //! in the various [Matrix](https://matrix.org) API specifications.
//! These types can be shared by client and server code for all Matrix APIs. //! These types can be shared by client and server code for all Matrix APIs.

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate ruma_appservice_api contains serializable types for the requests and responses for each //! Crate ruma_appservice_api contains serializable types for the requests and responses for each
//! endpoint in the [Matrix](https://matrix.org/) application service API specification. These //! endpoint in the [Matrix](https://matrix.org/) application service API specification. These
//! types can be shared by application service and server code. //! types can be shared by application service and server code.

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate ruma_client_api contains serializable types for the requests and responses for each //! Crate ruma_client_api contains serializable types for the requests and responses for each
//! endpoint in the [Matrix](https://matrix.org/) client API specification. These types can be //! endpoint in the [Matrix](https://matrix.org/) client API specification. These types can be
//! shared by client and server code. //! shared by client and server code.

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate `ruma_client` is a [Matrix](https://matrix.org/) client library. //! Crate `ruma_client` is a [Matrix](https://matrix.org/) client library.
//! //!
//! # Usage //! # Usage

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Common types for other ruma crates. //! Common types for other ruma crates.
#![warn(missing_docs, missing_debug_implementations)] #![warn(missing_docs, missing_debug_implementations)]

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate `ruma_events_macros` provides a procedural macro for generating //! Crate `ruma_events_macros` provides a procedural macro for generating
//! [ruma-events] events. //! [ruma-events] events.
//! //!

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate `ruma_events` contains serializable types for the events in the //! Crate `ruma_events` contains serializable types for the events in the
//! [Matrix](https://matrix.org) specification that can be shared by client and server code. //! [Matrix](https://matrix.org) specification that can be shared by client and server code.
//! //!

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! (De)serializable types for the Matrix Federation API. //! (De)serializable types for the Matrix Federation API.
#![warn(missing_docs)] #![warn(missing_docs)]

View File

@ -1,3 +1,6 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
use proc_macro::TokenStream; use proc_macro::TokenStream;
use quote::quote; use quote::quote;

View File

@ -1,3 +1,6 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
pub mod device_key_id; pub mod device_key_id;
pub mod error; pub mod error;
pub mod event_id; pub mod event_id;

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate **ruma_identifiers** contains types for [Matrix](https://matrix.org/) identifiers //! Crate **ruma_identifiers** contains types for [Matrix](https://matrix.org/) identifiers
//! for events, rooms, room aliases, room versions, and users. //! for events, rooms, room aliases, room versions, and users.

View File

@ -1,3 +1,6 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
pub mod authentication; pub mod authentication;
pub mod keys; pub mod keys;
pub mod status; pub mod status;

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! (De)serializable types for the Matrix Push Gateway API. //! (De)serializable types for the Matrix Push Gateway API.
#![warn(missing_docs)] #![warn(missing_docs)]

View File

@ -1,3 +1,6 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
use proc_macro::TokenStream; use proc_macro::TokenStream;
use quote::quote; use quote::quote;
use syn::{parse_macro_input, DeriveInput, ItemEnum}; use syn::{parse_macro_input, DeriveInput, ItemEnum};

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! De-/serialization helpers for other ruma crates //! De-/serialization helpers for other ruma crates
pub mod can_be_empty; pub mod can_be_empty;

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Crate `ruma_signatures` implements digital signatures according to the //! Crate `ruma_signatures` implements digital signatures according to the
//! [Matrix](https://matrix.org/) specification. //! [Matrix](https://matrix.org/) specification.
//! //!

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Types and traits for working with the Matrix protocol. //! Types and traits for working with the Matrix protocol.
//! //!
//! This crate re-exports things from all of the other ruma crates so you don't //! This crate re-exports things from all of the other ruma crates so you don't