diff --git a/templates/generate.rs.html b/templates/generate.rs.html index 8fb5211..7c3a759 100644 --- a/templates/generate.rs.html +++ b/templates/generate.rs.html @@ -1,7 +1,7 @@ @use super::base; @use crate::statics::VersionInfo; -@(version_info: VersionInfo, repo_count: usize, domain: &str, url: &str, service: &str, path: &str) +@(version_info: VersionInfo, repo_count: usize, base_url: &str, url: &str, service: &str, path: &str) @:base("Hits-of-Code Badges", "Badge Generator", { @@ -10,7 +10,7 @@ Here is the markdown for the badge for @url/@path
-[](https://@domain/view/@service/@path) +[](@base_url/view/@service/@path)
@@ -18,6 +18,6 @@ It will be rendered like this
-}, version_info, repo_count) diff --git a/templates/index.rs.html b/templates/index.rs.html index 8bbcbab..188df4e 100644 --- a/templates/index.rs.html +++ b/templates/index.rs.html @@ -1,7 +1,7 @@ @use super::base; @use crate::statics::VersionInfo; -@(version_info: VersionInfo, repo_count: usize, domain: &str) +@(version_info: VersionInfo, repo_count: usize, base_url: &str) @:base("Hits-of-Code Badges", "Hits-of-Code Badges", { @@ -24,7 +24,7 @@ used for GitHub, GitLab and Bitbucket repositories. Just put the following code+
![]()
-[](https://@domain/view/<service>/<user>/<repo>) +[](@base_url/view/<service>/<user>/<repo>)
@@ -33,7 +33,7 @@ following Markdown
-[](https://@domain/view/github/vbrandl/hoc) +[](@base_url/view/github/vbrandl/hoc)
@@ -41,7 +41,7 @@ would render this badge:
-@@ -55,7 +55,7 @@ in your repository or you want a badge for another branch of your repository, ju You can also request the HoC as JSON by appending![]()
/json
to the request path. This will return a JSON object
with three fields: count
(the HoC value), commits
(the number of commits) and
head
(the commit ref of HEAD). Requesting https://@domain/github/vbrandl/hoc/json might return something along
+href="@base_url/github/vbrandl/hoc/json">@base_url/github/vbrandl/hoc/json might return something along
the lines of
diff --git a/templates/overview.rs.html b/templates/overview.rs.html
index 8f5338f..f3b5ba7 100644
--- a/templates/overview.rs.html
+++ b/templates/overview.rs.html
@@ -19,7 +19,7 @@ To include the badge in your readme, use the following markdown:
-[](https://@repo_info.domain/view/@repo_info.path?branch=@repo_info.branch) +[](@repo_info.base_url/view/@repo_info.path?branch=@repo_info.branch)