Skip to content

Commit c8d829f

Browse files
committed
docs: show current progress with dynamic badges (#773)
1 parent 9941700 commit c8d829f

File tree

3 files changed

+8
-57
lines changed

3 files changed

+8
-57
lines changed

β€Ž.github/workflows/kata-pr-init.ymlβ€Ž

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ jobs:
5858
echo "- [$title]($(basename "$d") \"$id\")"
5959
done > "$base_dir/index.md"
6060
61-
- name: Update statistics
62-
run: |
63-
STATS="|"
64-
for rank in ./kata/*; do
65-
STATS+=" $(find $rank -mindepth 1 -maxdepth 1 -not -empty -type d | wc -l) |"
66-
done
67-
sed -i "28s/.*/$STATS/" ./docs/README.md
68-
6961
- name: Commit changes
7062
id: git
7163
env:

β€Ž.github/workflows/sync-progress.ymlβ€Ž

Lines changed: 0 additions & 41 deletions
This file was deleted.

β€Ždocs/README.mdβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Codewars Handbook β˜•οΈπŸš€
22

3-
[![Views statistics +1 πŸ‘€](https://img.shields.io/badge/dynamic/xml?color=success&label=views&query=//*[name()=%27text%27][3]&url=https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FParanoidUser%2Fcodewars-handbook)](https://hits.seeyoufarm.com/api/count/graph/dailyhits.svg?url=https://github.com/ParanoidUser/codewars-handbook)
4-
[![Completed kata πŸ‘Œ](https://img.shields.io/badge/completed%20kata-69.3%25-red.svg)](https://www.codewars.com/kata/search/java?xids=completed)
5-
[![CI pipeline πŸ› ](https://img.shields.io/github/actions/workflow/status/ParanoidUser/codewars-handbook/build.yml?branch=main)](https://github.com/ParanoidUser/codewars-handbook/actions/workflows/build.yml)
6-
[![Quality gate πŸ”Ž](https://img.shields.io/sonar/alert_status/codewars-handbook?server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/dashboard?id=codewars-handbook)
7-
[![Let's have a chat! πŸ“ž](https://img.shields.io/gitter/room/ParanoidUser/codewars-handbook?color=49c39e)](https://gitter.im/ParanoidUser/codewars-handbook)
3+
[![Build pipeline](https://img.shields.io/github/actions/workflow/status/ParanoidUser/codewars-handbook/build.yml?branch=main)](https://github.com/ParanoidUser/codewars-handbook/actions/workflows/build.yml)
4+
[![Quality gate](https://img.shields.io/sonar/alert_status/codewars-handbook?server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/dashboard?id=codewars-handbook)
5+
![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/paranoiduser/codewars-handbook)
6+
[![Views statistics](https://img.shields.io/badge/dynamic/xml?color=success&label=views&query=//*[name()=%27text%27][3]&url=https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FParanoidUser%2Fcodewars-handbook)](https://hits.seeyoufarm.com/api/count/graph/dailyhits.svg?url=https://github.com/ParanoidUser/codewars-handbook)
7+
[![Solved kata](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress.json)](https://www.codewars.com/kata/search/java?xids=completed)
88

99
[Codewars](https://www.codewars.com) is an online educational platform for computer programming.
1010
On the platform, users known as *code warriors* attempt to solve programming challenges, known as
@@ -23,9 +23,9 @@ on [the official platform](https://www.codewars.com) and verified against the or
2323
<ins>For quick access</ins>, use the index table or search the repository by kata URL, name, ID, or
2424
slug.
2525

26-
| [1 kyu](/kata/1-kyu/index.md) | [2 kyu](/kata/2-kyu/index.md) | [3 kyu](/kata/3-kyu/index.md) | [4 kyu](/kata/4-kyu/index.md) | [5 kyu](/kata/5-kyu/index.md) | [6 kyu](/kata/6-kyu/index.md) | [7 kyu](/kata/7-kyu/index.md) | [8 kyu](/kata/8-kyu/index.md) | [beta](/kata/beta/index.md) | [retired](/kata/retired/index.md) |
27-
|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:---------------------------:|:---------------------------------:|
28-
| 0 | 1 | 2 | 26 | 48 | 446 | 608 | 228 | 59 | 82 |
26+
| [1 kyu](/kata/1-kyu/index.md) | [2 kyu](/kata/2-kyu/index.md) | [3 kyu](/kata/3-kyu/index.md) | [4 kyu](/kata/4-kyu/index.md) | [5 kyu](/kata/5-kyu/index.md) | [6 kyu](/kata/6-kyu/index.md) | [7 kyu](/kata/7-kyu/index.md) | [8 kyu](/kata/8-kyu/index.md) | [beta](/kata/beta/index.md) |
27+
|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:---------------------------------------------------------------------------------------------------------------------------------:|
28+
| ![1 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-1kyu.json) | ![2 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-2kyu.json) | ![3 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-3kyu.json) | ![4 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-4kyu.json) | ![5 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-5kyu.json) | ![6 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-6kyu.json) | ![7 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-7kyu.json) | ![8 kyu](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-8kyu.json) | ![beta](https://img.shields.io/endpoint?url=https%3A%2F%2Fparanoiduser.github.io%2Fcodewars-handbook-badges%2Fprogress-beta.json) |
2929

3030
**Note:** The source code is written in Java 17 and may use language features that are incompatible
3131
with Java 8, 11.

0 commit comments

Comments
Β (0)