From 32b1fe1556e25c2a29adffe0a68e68183bc9ae63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sun, 29 Oct 2023 00:25:15 +0200 Subject: [PATCH] docs(lib): add logo and favicon to docs.rs page --- git-cliff-core/src/lib.rs | 6 +++++- git-cliff/src/lib.rs | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/git-cliff-core/src/lib.rs b/git-cliff-core/src/lib.rs index 60ff1084e4..8bf93e94a8 100644 --- a/git-cliff-core/src/lib.rs +++ b/git-cliff-core/src/lib.rs @@ -1,4 +1,4 @@ -//! A highly customizable changelog generator +//! A highly customizable changelog generator ⛰️ //! //! ## Features //! @@ -8,6 +8,10 @@ //! You can turn this off if you already have the commits to put in the //! changelog and you don't need `git-cliff` to parse them. #![warn(missing_docs, clippy::unwrap_used)] +#![doc( + html_logo_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff.png", + html_favicon_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/favicon/favicon.ico" +)] /// Changelog generator. pub mod changelog; diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index 2caeef85a2..866e27df86 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -1,3 +1,9 @@ +//! A highly customizable changelog generator ⛰️ +#![doc( + html_logo_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff.png", + html_favicon_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/favicon/favicon.ico" +)] + /// Command-line argument parser. pub mod args;