⭐ Repository stats#
Display a link to your repository with live star and fork counts.
Configuration#
Configure repository stats via html_context in conf.py. This component supports GitHub and GitLab.
html_context = {
"github_user": "your-username",
"github_repo": "your-repo",
}
html_context = {
"gitlab_user": "your-username",
"gitlab_repo": "your-repo",
}
Configuration options#
Key |
Description |
|---|---|
|
Your username or organization name |
|
Repository name |
Styling#
Customize the component appearance with CSS variables:
:root {
--bz-repo-stats-background: color-mix(in oklab, var(--bz-color-surface-4), var(--bz-color-surface-3));
--bz-repo-stats-background-hover: var(--bz-color-surface-3);
--bz-repo-stats-border-color: var(--bz-color-outline);
--bz-repo-stats-color: var(--bz-color-text);
--bz-repo-stats-color-variant: var(--bz-color-muted);
--bz-repo-stats-font-size: var(--bz-size-sm);
--bz-repo-stats-font-family: inherit;
}