Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownBadgeBuilder

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Helper to add common badges to README.

Inheritance

  • object
  • MarkdownBadgeBuilder

Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

public MarkdownBadgeBuilder Build(string url) #

Adds a CI build badge link (explicit URL only, no dynamic image).

Parameters

url string required
public MarkdownBadgeBuilder BuildForGitHub(string owner, string repo, string? workflow = null, string? branch = null) #

Convenience for GitHub Actions badge with Shields.io (workflow file required for dynamic status image).

Parameters

owner string required
repo string required
workflow string? = null optional
branch string? = null optional
public MarkdownBadgeBuilder Coverage(string url) #

Adds a code coverage badge using Shields.io for Codecov.

Parameters

url string required
public MarkdownBadgeBuilder CoverageCodecov(string owner, string repo, string? branch = null) #

Adds a Codecov coverage badge and link for the given repo/branch.

Parameters

owner string required
GitHub owner or org.
repo string required
Repository name.
branch string? = null optional
Optional branch for the badge.
public MarkdownBadgeBuilder Custom(string text, string url, string? title = null) #

Adds a custom badge label linked to a URL.

Parameters

text string required
url string required
title string? = null optional
public MarkdownBadgeBuilder NuGet(string id) #

Adds a NuGet badge using Shields.io.

Parameters

id string required