readme-aura 0.4.8 → 0.4.10
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/README.md +10 -11
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/default-templates/source-profile.js.map +1 -0
- package/dist/default-templates/source-project.js.map +1 -0
- package/dist/default-templates/workflow.js.map +1 -0
- package/dist/init.d.ts +1 -1
- package/dist/init.js +5 -5
- package/dist/init.js.map +1 -1
- package/package.json +1 -1
- package/readme.source.md +9 -10
- package/dist/templates/source-profile.js.map +0 -1
- package/dist/templates/source-project.js.map +0 -1
- package/dist/templates/workflow.js.map +0 -1
- /package/dist/{templates → default-templates}/source-profile.d.ts +0 -0
- /package/dist/{templates → default-templates}/source-profile.js +0 -0
- /package/dist/{templates → default-templates}/source-project.d.ts +0 -0
- /package/dist/{templates → default-templates}/source-project.js +0 -0
- /package/dist/{templates → default-templates}/workflow.d.ts +0 -0
- /package/dist/{templates → default-templates}/workflow.js +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://www.npmjs.com/package/readme-aura)
|
|
2
2
|
|
|
3
3
|
Write custom **React/JSX components** directly inside your Markdown, and readme-aura will render them into beautiful SVGs that work on GitHub.
|
|
4
4
|
|
|
@@ -29,7 +29,7 @@ npx readme-aura build
|
|
|
29
29
|
|
|
30
30
|
That's it. Push to `main` and the workflow will auto-generate your `README.md` on every push.
|
|
31
31
|
|
|
32
|
-
> `init` auto-detects profile repos (`username/username`) and picks the right template.
|
|
32
|
+
> `init` auto-detects profile repos (`username/username`) and picks the right default template.
|
|
33
33
|
|
|
34
34
|
### Commands
|
|
35
35
|
|
|
@@ -58,16 +58,15 @@ That's it. Push to `main` and the workflow will auto-generate your `README.md` o
|
|
|
58
58
|
|
|
59
59
|
### Example Templates
|
|
60
60
|
|
|
61
|
-
Pass any
|
|
61
|
+
Pass any template name from the [`examples/custom-templates/`](https://github.com/collectioneur/readme-aura/tree/main/examples/custom-templates) folder as `--template` and `init` will fetch its `readme.source.md` directly from GitHub and write it to your project:
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
64
|
npx readme-aura init --template DarkOrbs
|
|
65
65
|
npx readme-aura init --template PurpleGlow
|
|
66
66
|
npx readme-aura init --template LightOrbs
|
|
67
|
-
npx readme-aura init --template SocialMediaButton
|
|
68
67
|
```
|
|
69
68
|
|
|
70
|
-
No extra downloads, no local files needed
|
|
69
|
+
No extra downloads, no local files needed - the template is pulled on the fly and placed in `readme.source.md`, ready to build. Run `npx readme-aura build` right after and you get a working README.
|
|
71
70
|
|
|
72
71
|
## What `init` Creates
|
|
73
72
|
|
|
@@ -128,7 +127,7 @@ All parameters are written directly on the opening fence line of an ` ```aura `
|
|
|
128
127
|
| `inline` | flag | – | Render as an inline `<img>` instead of a block paragraph. Consecutive inline blocks are automatically joined on one line |
|
|
129
128
|
| `align` | `center` | `left` | `right` | – | Wrap a group of consecutive inline blocks in `<p align="...">`. Only meaningful when `inline` is set |
|
|
130
129
|
|
|
131
|
-
**Example
|
|
130
|
+
**Example – centered row of social buttons:**
|
|
132
131
|
|
|
133
132
|
````markdown
|
|
134
133
|
```aura width=120 height=44 link="https://github.com/you" inline align=center
|
|
@@ -147,7 +146,7 @@ Output in README.md:
|
|
|
147
146
|
</p>
|
|
148
147
|
```
|
|
149
148
|
|
|
150
|
-
> The `align` value is read from the first block in the group that declares it. Blocks without `align` still join the same group
|
|
149
|
+
> The `align` value is read from the first block in the group that declares it. Blocks without `align` still join the same group – only the wrapper is controlled by the flag.
|
|
151
150
|
|
|
152
151
|
## Components
|
|
153
152
|
|
|
@@ -195,8 +194,8 @@ readme-aura ships with ready-to-use components you can drop into any ` ```aura `
|
|
|
195
194
|
|
|
196
195
|
| Prop | Default | Description |
|
|
197
196
|
|------|---------|-------------|
|
|
198
|
-
| `icon` |
|
|
199
|
-
| `text` |
|
|
197
|
+
| `icon` | – | Icon image path or URL |
|
|
198
|
+
| `text` | – | Button label |
|
|
200
199
|
| `backgroundColor` | `#111111` | Fill color |
|
|
201
200
|
| `textColor` | `#f5f5f5` | Label color |
|
|
202
201
|
| `fontSize` | `13` | Label font size |
|
|
@@ -208,7 +207,7 @@ readme-aura ships with ready-to-use components you can drop into any ` ```aura `
|
|
|
208
207
|
|
|
209
208
|
## Animations
|
|
210
209
|
|
|
211
|
-
You can add **CSS-based SVG animations** using the `<style>` injection mechanism. Satori renders a static frame at build time; the browser animates the SVG when it is displayed (e.g. on GitHub).
|
|
210
|
+
You can add **CSS-based SVG animations** using the `<style>` injection mechanism, or **SMIL animations** (`<animate>`, `<animateTransform>`, `<animateMotion>`) directly on SVG elements. Satori renders a static frame at build time; the browser animates the SVG when it is displayed (e.g. on GitHub).
|
|
212
211
|
|
|
213
212
|
**How it works:** Add a `<style>` block in your JSX. Define `@keyframes` and apply them to elements by `#id` or `.class`. The renderer extracts and injects the CSS into the final SVG.
|
|
214
213
|
|
|
@@ -218,7 +217,7 @@ You can add **CSS-based SVG animations** using the `<style>` injection mechanism
|
|
|
218
217
|
|
|
219
218
|
[](https://www.npmjs.com/package/readme-aura)
|
|
220
219
|
|
|
221
|
-
**Limitations:** No JavaScript
|
|
220
|
+
**Limitations:** No JavaScript. GitHub strips scripts but supports both CSS animations and SMIL. Prefer `transform` and `opacity` for best CSS compatibility.
|
|
222
221
|
|
|
223
222
|
## Tech Stack
|
|
224
223
|
|
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ program
|
|
|
19
19
|
program
|
|
20
20
|
.command('init')
|
|
21
21
|
.description('Scaffold readme-aura in your project (workflow, source template, gitignore audit)')
|
|
22
|
-
.option('--template <name>', 'Template: profile, project (auto-detected), or
|
|
22
|
+
.option('--template <name>', 'Template: profile, project (auto-detected), or a custom template name like DarkOrbs, PurpleGlow (fetched from examples/custom-templates/ on GitHub)')
|
|
23
23
|
.option('--force', 'Overwrite existing files', false)
|
|
24
24
|
.action(async (opts) => {
|
|
25
25
|
console.log('\n readme-aura init\n');
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAwB,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,aAAa,CAAC;KACnB,WAAW,CAAC,gFAAgF,CAAC;KAC7F,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,mFAAmF,CAAC;KAChG,MAAM,CACL,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"cli.js","source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CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-project.js","sourceRoot":"","sources":["../../src/default-templates/source-project.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,qBAAqB,CAAC,GAAoB;IACxD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAuGsD,GAAG,CAAC,KAAK;;;;;wBAKhD,GAAG,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/default-templates/workflow.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;CAuBR,CAAC;AACF,CAAC"}
|
package/dist/init.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type GitHubRemote } from './github.js';
|
|
2
2
|
export interface InitOptions {
|
|
3
3
|
cwd?: string;
|
|
4
|
-
/** 'profile', 'project', or any
|
|
4
|
+
/** 'profile', 'project', or any template name from examples/custom-templates/ (e.g. 'DarkOrbs') */
|
|
5
5
|
template?: string;
|
|
6
6
|
force?: boolean;
|
|
7
7
|
}
|
package/dist/init.js
CHANGED
|
@@ -2,11 +2,11 @@ import { writeFile, readFile, mkdir, access } from 'node:fs/promises';
|
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
4
|
import { parseGitHubRemote } from './github.js';
|
|
5
|
-
import { generateWorkflow } from './templates/workflow.js';
|
|
6
|
-
import { generateSourceProfile } from './templates/source-profile.js';
|
|
7
|
-
import { generateSourceProject } from './templates/source-project.js';
|
|
8
|
-
const EXAMPLES_RAW_BASE = 'https://raw.githubusercontent.com/collectioneur/readme-aura/main/examples';
|
|
9
|
-
const EXAMPLES_BROWSE_URL = 'https://github.com/collectioneur/readme-aura/tree/main/examples';
|
|
5
|
+
import { generateWorkflow } from './default-templates/workflow.js';
|
|
6
|
+
import { generateSourceProfile } from './default-templates/source-profile.js';
|
|
7
|
+
import { generateSourceProject } from './default-templates/source-project.js';
|
|
8
|
+
const EXAMPLES_RAW_BASE = 'https://raw.githubusercontent.com/collectioneur/readme-aura/main/examples/custom-templates';
|
|
9
|
+
const EXAMPLES_BROWSE_URL = 'https://github.com/collectioneur/readme-aura/tree/main/examples/custom-templates';
|
|
10
10
|
async function fileExists(path) {
|
|
11
11
|
try {
|
|
12
12
|
await access(path);
|
package/dist/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAqB,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAqB,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;A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npx readme-aura build
|
|
|
211
211
|
|
|
212
212
|
That's it. Push to `main` and the workflow will auto-generate your `README.md` on every push.
|
|
213
213
|
|
|
214
|
-
> `init` auto-detects profile repos (`username/username`) and picks the right template.
|
|
214
|
+
> `init` auto-detects profile repos (`username/username`) and picks the right default template.
|
|
215
215
|
|
|
216
216
|
### Commands
|
|
217
217
|
|
|
@@ -240,16 +240,15 @@ That's it. Push to `main` and the workflow will auto-generate your `README.md` o
|
|
|
240
240
|
|
|
241
241
|
### Example Templates
|
|
242
242
|
|
|
243
|
-
Pass any
|
|
243
|
+
Pass any template name from the [`examples/custom-templates/`](https://github.com/collectioneur/readme-aura/tree/main/examples/custom-templates) folder as `--template` and `init` will fetch its `readme.source.md` directly from GitHub and write it to your project:
|
|
244
244
|
|
|
245
245
|
```bash
|
|
246
246
|
npx readme-aura init --template DarkOrbs
|
|
247
247
|
npx readme-aura init --template PurpleGlow
|
|
248
248
|
npx readme-aura init --template LightOrbs
|
|
249
|
-
npx readme-aura init --template SocialMediaButton
|
|
250
249
|
```
|
|
251
250
|
|
|
252
|
-
No extra downloads, no local files needed
|
|
251
|
+
No extra downloads, no local files needed - the template is pulled on the fly and placed in `readme.source.md`, ready to build. Run `npx readme-aura build` right after and you get a working README.
|
|
253
252
|
|
|
254
253
|
## What `init` Creates
|
|
255
254
|
|
|
@@ -403,7 +402,7 @@ All parameters are written directly on the opening fence line of an `` ```aura `
|
|
|
403
402
|
| `inline` | flag | – | Render as an inline `<img>` instead of a block paragraph. Consecutive inline blocks are automatically joined on one line |
|
|
404
403
|
| `align` | `center` \| `left` \| `right` | – | Wrap a group of consecutive inline blocks in `<p align="...">`. Only meaningful when `inline` is set |
|
|
405
404
|
|
|
406
|
-
**Example
|
|
405
|
+
**Example – centered row of social buttons:**
|
|
407
406
|
|
|
408
407
|
```markdown
|
|
409
408
|
```aura width=120 height=44 link="https://github.com/you" inline align=center
|
|
@@ -421,7 +420,7 @@ Output in README.md:
|
|
|
421
420
|
</p>
|
|
422
421
|
```
|
|
423
422
|
|
|
424
|
-
> The `align` value is read from the first block in the group that declares it. Blocks without `align` still join the same group
|
|
423
|
+
> The `align` value is read from the first block in the group that declares it. Blocks without `align` still join the same group – only the wrapper is controlled by the flag.
|
|
425
424
|
|
|
426
425
|
## Components
|
|
427
426
|
|
|
@@ -470,8 +469,8 @@ readme-aura ships with ready-to-use components you can drop into any `` ```aura
|
|
|
470
469
|
|
|
471
470
|
| Prop | Default | Description |
|
|
472
471
|
|------|---------|-------------|
|
|
473
|
-
| `icon` |
|
|
474
|
-
| `text` |
|
|
472
|
+
| `icon` | – | Icon image path or URL |
|
|
473
|
+
| `text` | – | Button label |
|
|
475
474
|
| `backgroundColor` | `#111111` | Fill color |
|
|
476
475
|
| `textColor` | `#f5f5f5` | Label color |
|
|
477
476
|
| `fontSize` | `13` | Label font size |
|
|
@@ -483,7 +482,7 @@ readme-aura ships with ready-to-use components you can drop into any `` ```aura
|
|
|
483
482
|
|
|
484
483
|
## Animations
|
|
485
484
|
|
|
486
|
-
You can add **CSS-based SVG animations** using the `<style>` injection mechanism. Satori renders a static frame at build time; the browser animates the SVG when it is displayed (e.g. on GitHub).
|
|
485
|
+
You can add **CSS-based SVG animations** using the `<style>` injection mechanism, or **SMIL animations** (`<animate>`, `<animateTransform>`, `<animateMotion>`) directly on SVG elements. Satori renders a static frame at build time; the browser animates the SVG when it is displayed (e.g. on GitHub).
|
|
487
486
|
|
|
488
487
|
**How it works:** Add a `<style>` block in your JSX. Define `@keyframes` and apply them to elements by `#id` or `.class`. The renderer extracts and injects the CSS into the final SVG.
|
|
489
488
|
|
|
@@ -535,7 +534,7 @@ You can add **CSS-based SVG animations** using the `<style>` injection mechanism
|
|
|
535
534
|
</div>
|
|
536
535
|
```
|
|
537
536
|
|
|
538
|
-
**Limitations:** No JavaScript
|
|
537
|
+
**Limitations:** No JavaScript. GitHub strips scripts but supports both CSS animations and SMIL. Prefer `transform` and `opacity` for best CSS compatibility.
|
|
539
538
|
|
|
540
539
|
## Tech Stack
|
|
541
540
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-profile.js","sourceRoot":"","sources":["../../src/templates/source-profile.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,qBAAqB,CAAC,GAAoB;IACxD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAuGsD,GAAG,CAAC,KAAK;;;;;uDAKjB,GAAG,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B/D,CAAC;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-project.js","sourceRoot":"","sources":["../../src/templates/source-project.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,qBAAqB,CAAC,GAAoB;IACxD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAuGsD,GAAG,CAAC,KAAK;;;;;wBAKhD,GAAG,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/templates/workflow.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;CAuBR,CAAC;AACF,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|