From 439d5c0cb11acc6987309e1fdd1e7329cd300a36 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 20 Apr 2019 12:33:09 +0200 Subject: [PATCH] Update index layout --- static/index.html | 50 +++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/static/index.html b/static/index.html index f27877d..f58ba95 100644 --- a/static/index.html +++ b/static/index.html @@ -9,11 +9,11 @@
-

Hits-of-Code Badges

-
+
+

Hits-of-Code Badges

+
-
-
+

This API offers badges for the Hits-of-Code metric for your repositories. This metric was proposed by Yegor Bugayenko as an @@ -21,7 +21,7 @@ This API offers badges for the Hits-of-Code metric for your repositories. This m

- Instead of counting the number of existing lines in a codebase, the number of modified lines is counted. That way, the +Instead of counting the number of existing lines in a codebase, the number of modified lines is counted. That way, the metric can only grow and never shrink. While this metric still cannot give any information about the code quality, it gives an overview about the amount of work put into a codebase.

@@ -30,40 +30,32 @@ gives an overview about the amount of work put into a codebase. There is a command-line tool to calculate the HoC of a repository, but some people might want a nice badge to put in their README, that's why I implemented this API. Currently the API can be used for GitHub, GitLab and Bitbucket repositories. Just put the following code in your README: -

 [![Hits-of-Code](https://hitsofcode.com/<service>/<user>/<repo>)](https://hitsofcode.com/<service>/<user>/<repo>)
 
-

where <service> is one of github, gitlab or bitbucket. So the following Markdown -

 [![Hits-of-Code](https://hitsofcode.com/github/vbrandl/hoc)](https://hitsofcode.com/view/github/vbrandl/hoc)
 
-

would render this badge: -

 
 
-
+

Colors

-

You can generate badges with custom colors via the color query parameter. The following predefined colors are supported: -

-
 
 
 
@@ -78,34 +70,50 @@ are supported:
 
 
 
-
 
+

You can also pass HTML color codes: -

  
 
-
+

Source Code

-
+

The whole service is licensed under the MIT license and the source code can be found on GitHub. Feature proposals or pull requests are welcome. -

+

Contact

-
+

You can reach me via mail: mail+hoc@vbrandl.net preferably using my GPG key (from a keyserver), or by using any other UID from my key. -

+

+ + +