From 3ca46c10031a34224a632c1594f8d3e23dfd27fb Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Sat, 12 Jan 2019 21:18:44 +0100 Subject: [PATCH] Fix circleci badge link Previously, cargo-readme would link to a URL that had cargo-readme on its path. That wasn't right. --- Cargo.toml | 2 +- src/config/badges.rs | 2 +- tests/badges.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8812162..2758399 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-readme" -version = "3.3.0" +version = "3.2.0" edition = "2021" authors = ["Livio Ribeiro "] description = "A cargo subcommand to generate README.md content from doc comments" diff --git a/src/config/badges.rs b/src/config/badges.rs index 1c4eb70..93a685e 100644 --- a/src/config/badges.rs +++ b/src/config/badges.rs @@ -43,7 +43,7 @@ pub fn circle_ci(attrs: Attrs) -> String { format!( "[![Build Status](https://circleci.com/{service}/{repo}/tree/{branch}.svg?style=shield)]\ - (https://circleci.com/{service}/{repo}/cargo-readme/tree/{branch})", + (https://circleci.com/{service}/{repo}/tree/{branch})", repo = repo, service = service, branch = percent_encode(branch) diff --git a/tests/badges.rs b/tests/badges.rs index c2510ce..a105584 100644 --- a/tests/badges.rs +++ b/tests/badges.rs @@ -2,7 +2,7 @@ use assert_cli::Assert; const EXPECTED: &str = r#" [![Build Status](https://ci.appveyor.com/api/projects/status/github/cargo-readme/test?branch=master&svg=true)](https://ci.appveyor.com/project/cargo-readme/test/branch/master) -[![Build Status](https://circleci.com/gh/cargo-readme/test/tree/master.svg?style=shield)](https://circleci.com/gh/cargo-readme/test/cargo-readme/tree/master) +[![Build Status](https://circleci.com/gh/cargo-readme/test/tree/master.svg?style=shield)](https://circleci.com/gh/cargo-readme/test/tree/master) [![Build Status](https://gitlab.com/cargo-readme/test/badges/master/pipeline.svg)](https://gitlab.com/cargo-readme/test/commits/master) [![Build Status](https://travis-ci.org/cargo-readme/test.svg?branch=master)](https://travis-ci.org/cargo-readme/test) [![Coverage Status](https://codecov.io/gh/cargo-readme/test/branch/master/graph/badge.svg)](https://codecov.io/gh/cargo-readme/test)