github-action-readme-generator 1.8.10 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +65 -5
- package/action.yml +1 -1
- package/dist/bin/index.js +72 -1
- package/dist/mjs/readme-editor.d.ts +5 -0
- package/dist/mjs/readme-editor.js +7 -0
- package/dist/mjs/readme-editor.js.map +1 -1
- package/dist/mjs/sections/index.js +4 -0
- package/dist/mjs/sections/index.js.map +1 -1
- package/dist/mjs/sections/update-contents.d.ts +9 -0
- package/dist/mjs/sections/update-contents.js +87 -0
- package/dist/mjs/sections/update-contents.js.map +1 -0
- package/dist/types/index.d.ts +17 -0
- package/package.json +15 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.9.1](https://github.com/bitflight-devops/github-action-readme-generator/compare/v1.9.0...v1.9.1) (2026-01-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* disambiguate duplicate TOC anchors and persist empty TOC ([767a192](https://github.com/bitflight-devops/github-action-readme-generator/commit/767a192f871de95f14a66d1e6aa677df8f97334d))
|
|
7
|
+
|
|
8
|
+
# [1.9.0](https://github.com/bitflight-devops/github-action-readme-generator/compare/v1.8.10...v1.9.0) (2026-01-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* implement table of contents generation for contents section ([3e9a0a4](https://github.com/bitflight-devops/github-action-readme-generator/commit/3e9a0a4e1f1180c94ea0666b12abeb5ed325afdd))
|
|
14
|
+
|
|
1
15
|
## [1.8.10](https://github.com/bitflight-devops/github-action-readme-generator/compare/v1.8.9...v1.8.10) (2026-01-25)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src=".github/hero.png" alt="GitHub Action README Generator" width="800" />
|
|
4
|
+
|
|
5
|
+
</div>
|
|
6
|
+
|
|
1
7
|
<div align="center" >
|
|
2
8
|
<!-- start title -->
|
|
3
9
|
|
|
@@ -14,15 +20,43 @@
|
|
|
14
20
|
</div>
|
|
15
21
|
<!-- start description -->
|
|
16
22
|
|
|
17
|
-
📓
|
|
23
|
+
📓 The docs generator for GitHub Actions. Auto-syncs action.yml → README.md with 8 sections including inputs, outputs, usage, badges & branding. Sensible defaults, highly configurable.
|
|
18
24
|
|
|
19
25
|
<!-- end description -->
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
## Quick Start
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npx github-action-readme-generator
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
That's it. Run this in your GitHub Action repository and your README.md is updated.
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
| | Feature | Description |
|
|
38
|
+
| :----------------: | ------------------- | ------------------------------------------------------------ |
|
|
39
|
+
| :white_check_mark: | **Inputs Table** | Auto-generates markdown table from `action.yml` inputs |
|
|
40
|
+
| :white_check_mark: | **Outputs Table** | Auto-generates markdown table from `action.yml` outputs |
|
|
41
|
+
| :white_check_mark: | **Usage Example** | Creates ready-to-copy YAML workflow snippet |
|
|
42
|
+
| :white_check_mark: | **Auto-Versioning** | Updates `uses: owner/repo@v1.2.3` on every release |
|
|
43
|
+
| :white_check_mark: | **GitHub Badges** | Adds release, commit, issues, and download badges |
|
|
44
|
+
| :white_check_mark: | **SVG Branding** | Generates icon from action.yml branding (100+ icons) |
|
|
45
|
+
| :white_check_mark: | **Easy Setup** | Add section markers to README, configure via `.ghadocs.json` |
|
|
46
|
+
| :white_check_mark: | **Dual Mode** | Use as CLI (`npx`) or GitHub Action in workflows |
|
|
47
|
+
|
|
48
|
+
## How It Works
|
|
49
|
+
|
|
50
|
+
This tool uses markdown comments as section markers in your README:
|
|
22
51
|
|
|
23
|
-
|
|
52
|
+
```markdown
|
|
53
|
+
<!-- start inputs -->
|
|
54
|
+
<!-- end inputs -->
|
|
55
|
+
```
|
|
24
56
|
|
|
25
|
-
|
|
57
|
+
Run the generator, and content between these markers is automatically updated from your `action.yml`. See [`README.example.md`](./README.example.md) for a complete template.
|
|
58
|
+
|
|
59
|
+
**Works as both CLI and GitHub Action** - configure via [`.ghadocs.json`](./.ghadocs.json), command line args, or the Action's `with:` section.
|
|
26
60
|
|
|
27
61
|
## CLI Usage
|
|
28
62
|
|
|
@@ -120,6 +154,22 @@ This configuration will automatically regenerate your README whenever `action.ym
|
|
|
120
154
|
```
|
|
121
155
|
|
|
122
156
|
<!-- start contents -->
|
|
157
|
+
|
|
158
|
+
## Table of Contents
|
|
159
|
+
|
|
160
|
+
- [Quick Start](#quick-start)
|
|
161
|
+
- [Features](#features)
|
|
162
|
+
- [How It Works](#how-it-works)
|
|
163
|
+
- [CLI Usage](#cli-usage)
|
|
164
|
+
- [Stand Alone Usage - if you have a Docker Action](#stand-alone-usage-if-you-have-a-docker-action)
|
|
165
|
+
- [Install with Yarn or NPM as a dev dependency](#install-with-yarn-or-npm-as-a-dev-dependency)
|
|
166
|
+
- [Add a script to your project file](#add-a-script-to-your-project-file)
|
|
167
|
+
- [Using as a Pre-commit Hook](#using-as-a-pre-commit-hook)
|
|
168
|
+
- [Configuration](#configuration)
|
|
169
|
+
- [Example `.ghadocs.json` with all possible values](#example-ghadocsjson-with-all-possible-values)
|
|
170
|
+
- [Usage](#usage)
|
|
171
|
+
- [Inputs](#inputs)
|
|
172
|
+
|
|
123
173
|
<!-- end contents -->
|
|
124
174
|
|
|
125
175
|
## Usage
|
|
@@ -127,7 +177,7 @@ This configuration will automatically regenerate your README whenever `action.ym
|
|
|
127
177
|
<!-- start usage -->
|
|
128
178
|
|
|
129
179
|
```yaml
|
|
130
|
-
- uses: bitflight-devops/github-action-readme-generator@v1.
|
|
180
|
+
- uses: bitflight-devops/github-action-readme-generator@v1.9.0
|
|
131
181
|
with:
|
|
132
182
|
# Description: The absolute or relative path to the `action.yml` file to read in
|
|
133
183
|
# from.
|
|
@@ -260,3 +310,13 @@ This configuration will automatically regenerate your README whenever `action.ym
|
|
|
260
310
|
|
|
261
311
|
<!-- start [.github/ghadocs/examples/] -->
|
|
262
312
|
<!-- end [.github/ghadocs/examples/] -->
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
<div align="center">
|
|
317
|
+
|
|
318
|
+
<img src=".github/bitflight-devops.png" alt="Bitflight DevOps" width="400" />
|
|
319
|
+
|
|
320
|
+
**Built by [Bitflight DevOps](https://github.com/bitflight-devops)**
|
|
321
|
+
|
|
322
|
+
</div>
|
package/action.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: GitHub Action's Readme Generator
|
|
3
3
|
author: Jamie Nelson <jamie@bitflight.io>
|
|
4
|
-
description: 📓
|
|
4
|
+
description: 📓 The docs generator for GitHub Actions. Auto-syncs action.yml → README.md with 8 sections including inputs, outputs, usage, badges & branding. Sensible defaults, highly configurable.
|
|
5
5
|
|
|
6
6
|
branding:
|
|
7
7
|
icon: book-open
|