You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: restructure documentation for v0.1.0 release
- Rewrite README.md with user-friendly GitHub Action documentation
- Create CONTRIBUTING.md with comprehensive developer guidelines
- Move technical documentation from tests/ to CONTRIBUTING.md
- Update package.json version to 0.1.0
- Prepare for first stable release
README now focuses on end-users with clear setup instructions.
CONTRIBUTING.md contains all technical details for developers.
@@ -23,52 +14,110 @@ Add a comment to your `README.md` like this:
23
14
YAML | ██████████████ | 73315
24
15
```
25
16
<!-- END_SECTION:codestats -->
17
+
18
+
## 🚀 Quick Start
19
+
20
+
### Prerequisites
21
+
22
+
1. A [CodeStats](https://codestats.net/) account with a **public profile**
23
+
2. The special markers in your README (see step 2)
24
+
25
+
### Setup
26
+
27
+
1.**Add the markers** to your README.md where you want the stats to appear:
28
+
29
+
```md
30
+
<!-- START_SECTION:codestats -->
31
+
<!-- END_SECTION:codestats -->
26
32
```
27
33
28
-
4. Go to Workflows menu (mentioned in step 1), click `CodeStats Readme`, click `Run workflow`.
29
-
5. Go to your profile page. you will be able to see it.
34
+
2.**Create a workflow** in `.github/workflows/codestats.yml`:
35
+
36
+
```yml
37
+
name: Update CodeStats
38
+
39
+
on:
40
+
schedule:
41
+
- cron: '0 0 * * *'# Daily at midnight
42
+
workflow_dispatch: # Manual trigger
43
+
44
+
jobs:
45
+
update-readme:
46
+
runs-on: ubuntu-latest
47
+
permissions:
48
+
contents: write
49
+
steps:
50
+
- uses: vergissberlin/codestats-readme@v0.1.0
51
+
with:
52
+
CODESTATS_USERNAME: your-codestats-username
53
+
```
54
+
55
+
3. **Customize** (optional) - see [Configuration](#-configuration) below
56
+
57
+
4. **Run** the workflow manually or wait for the next scheduled run
30
58
31
-
## Why only the language stats and not other data from the API?
59
+
## ⚙️ Configuration
32
60
33
-
I am a fan of minimal designs and the profile readme is a great way to show off your skills and interests. The CodeStats API, gets us a **lot of data** about a person's **coding activity**. Using up more data via the CodeStats API will clutter the profile readme and hinder your chances on displaying what you provide **value to the community** like the pinned Repositories. You are _**exercising these languages or learning a new language**_, this will also show that you spend some amount of time to learn and exercise your development skills. That's what matters in the end :heart:
61
+
All configuration is done through workflow inputs:
docker run --rm -v "$PWD:/workspace" -w /workspace \
42
100
-e CODESTATS_USERNAME=your_username \
43
101
-e GITHUB_TOKEN=your_token \
44
102
ghcr.io/vergissberlin/codestats-readme:latest
45
103
```
46
104
47
-
> **Note**: The Docker image is automatically built and pushed to [GitHub Container Registry](https://github.com/vergissberlin/codestats-readme/pkgs/container/codestats-readme) on every release.
105
+
## 🤝 Contributing
48
106
49
-
## Testing
107
+
Want to contribute? Check out [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing, and contribution guidelines.
0 commit comments