void 0.10.2 → 0.10.3
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/dist/{auth-cmd-DLvXvN-0.mjs → auth-cmd-CblKzAdD.mjs} +2 -2
- package/dist/{better-auth-shared-a7H3wk9J.d.mts → better-auth-shared-jkksALri.d.mts} +2 -2
- package/dist/build-cmd-CJQSRupz.mjs +140 -0
- package/dist/{cache-CHFZmqa5.mjs → cache-CMzjhxHh.mjs} +1 -1
- package/dist/{cancel-deploy-BwpT4U4a.mjs → cancel-deploy-S2N8NSv6.mjs} +1 -1
- package/dist/cli/cli.mjs +142 -31
- package/dist/{client-CTHvucDv.mjs → client-YIzxv2ZO.mjs} +12 -0
- package/dist/{create-project-CruTH_TQ.mjs → create-project-pLQdzEPe.mjs} +1 -1
- package/dist/{db-BxnfKs7f.mjs → db-hAmBumot.mjs} +3 -3
- package/dist/{delete-IQe1O4Re.mjs → delete-CfSe3EJO.mjs} +1 -1
- package/dist/{deploy-CuxXxVgz.mjs → deploy-DpOdwtla.mjs} +3 -3
- package/dist/{domain-Bq6kzr_T.mjs → domain-CkowysQx.mjs} +1 -1
- package/dist/{env-BD3U_0Av.mjs → env-CIwG2y7G.mjs} +1 -1
- package/dist/{env-helpers-ZatKyjen.d.mts → env-helpers-B_ks681T.d.mts} +1 -1
- package/dist/{gen-Dgi4D7GC.mjs → gen-q6McxXgE.mjs} +1 -1
- package/dist/{github-cmd-CD0Z8KCF.mjs → github-cmd-D3L0f93X.mjs} +18 -7
- package/dist/{handler-DczZlaXR.d.mts → handler-B7rCOy21.d.mts} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +5 -5
- package/dist/{init-CTe46nIr.mjs → init-CZP69LJu.mjs} +5 -5
- package/dist/{link-BGFW4pHD.mjs → link-BKLElphS.mjs} +2 -2
- package/dist/{list-CbGxdbe7.mjs → list-B7qXBBjo.mjs} +1 -1
- package/dist/{login-v4wle1vn.mjs → login-B3l_sDwT.mjs} +1 -1
- package/dist/{logs-BFgY5Vqc.mjs → logs-AXm660MB.mjs} +1 -1
- package/dist/{mcp-STKL-uWs.mjs → mcp-D2plINxM.mjs} +1 -1
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/head-client.d.mts +1 -1
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/index.d.mts +2 -2
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/{project-cmd-DZh-vbEL.mjs → project-cmd-InegJruy.mjs} +8 -8
- package/dist/{protocol-63PHtCHS.d.mts → protocol-6UZCowS1.d.mts} +3 -3
- package/dist/{rollback-o0M0Qo_n.mjs → rollback-CHVE-DeT.mjs} +1 -1
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/client-react.d.mts +2 -2
- package/dist/runtime/client-solid.d.mts +2 -2
- package/dist/runtime/client-svelte.d.mts +2 -2
- package/dist/runtime/client-vue.d.mts +2 -2
- package/dist/runtime/client.d.mts +2 -2
- package/dist/runtime/env-helpers.d.mts +1 -1
- package/dist/runtime/env-public-client.d.mts +1 -1
- package/dist/runtime/env-public.d.mts +2 -2
- package/dist/runtime/fetch-stream.d.mts +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/live.d.mts +2 -2
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +2 -2
- package/dist/runtime/ws.d.mts +3 -3
- package/dist/{secret-gs_yyGZL.mjs → secret-CVKwIOm3.mjs} +1 -1
- package/package.json +2 -2
- package/skills/void/docs/guide/pages-routing/markdown.md +12 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/README.md +2 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-footnote/README.md +135 -0
- package/skills/void/docs/reference/cli.md +53 -14
- /package/dist/{auth-nEUVHuFI.d.mts → auth-Dz2CCn4T.d.mts} +0 -0
- /package/dist/{fetch-error-BQMdPvge.d.mts → fetch-error-B6RaJ-eZ.d.mts} +0 -0
- /package/dist/{head-JAH2l3fg.d.mts → head-eOUCWUNy.d.mts} +0 -0
- /package/dist/{prepare-DH2WnEpD.mjs → prepare-DRRboRqH.mjs} +0 -0
- /package/dist/{providers-BkiAlEad.d.mts → providers-BJIoduK9.d.mts} +0 -0
- /package/dist/{runner-pg-BAheiT6v.mjs → runner-pg-EuhrFW3D.mjs} +0 -0
- /package/dist/{skills--OMgLmXW.mjs → skills-Dl3u05da.mjs} +0 -0
- /package/dist/{standard-schema-BCBv-QaP.d.mts → standard-schema-Cy0lfeWv.d.mts} +0 -0
- /package/dist/{subcommand-prompt-ClwpLlKD.mjs → subcommand-prompt-B8ng0FTS.mjs} +0 -0
- /package/dist/{types-BnHMXezo.d.mts → types-BodZGegX.d.mts} +0 -0
- /package/dist/{yarn-pnp-DhCHHLAz.mjs → yarn-pnp-WLW2IHUY.mjs} +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# markdown-it-footnote
|
|
2
|
+
|
|
3
|
+
[](https://github.com/markdown-it/markdown-it-footnote/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.org/package/markdown-it-footnote)
|
|
5
|
+
[](https://coveralls.io/r/markdown-it/markdown-it-footnote?branch=master)
|
|
6
|
+
|
|
7
|
+
> Footnotes plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.
|
|
8
|
+
|
|
9
|
+
__v2.+ requires `markdown-it` v5.+, see changelog.__
|
|
10
|
+
|
|
11
|
+
Markup is based on [pandoc](http://johnmacfarlane.net/pandoc/README.html#footnotes) definition.
|
|
12
|
+
|
|
13
|
+
__Normal footnote__:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Here is a footnote reference,[^1] and another.[^longnote]
|
|
17
|
+
|
|
18
|
+
[^1]: Here is the footnote.
|
|
19
|
+
|
|
20
|
+
[^longnote]: Here's one with multiple blocks.
|
|
21
|
+
|
|
22
|
+
Subsequent paragraphs are indented to show that they
|
|
23
|
+
belong to the previous footnote.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
html:
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<p>Here is a footnote reference,<sup class="footnote-ref"><a href="#fn1" id="fnref1">[1]</a></sup> and another.<sup class="footnote-ref"><a href="#fn2" id="fnref2">[2]</a></sup></p>
|
|
30
|
+
<p>This paragraph won’t be part of the note, because it
|
|
31
|
+
isn’t indented.</p>
|
|
32
|
+
<hr class="footnotes-sep">
|
|
33
|
+
<section class="footnotes">
|
|
34
|
+
<ol class="footnotes-list">
|
|
35
|
+
<li id="fn1" class="footnote-item"><p>Here is the footnote. <a href="#fnref1" class="footnote-backref">↩</a></p>
|
|
36
|
+
</li>
|
|
37
|
+
<li id="fn2" class="footnote-item"><p>Here’s one with multiple blocks.</p>
|
|
38
|
+
<p>Subsequent paragraphs are indented to show that they
|
|
39
|
+
belong to the previous footnote. <a href="#fnref2" class="footnote-backref">↩</a></p>
|
|
40
|
+
</li>
|
|
41
|
+
</ol>
|
|
42
|
+
</section>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
__Inline footnote__:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
Here is an inline note.^[Inlines notes are easier to write, since
|
|
49
|
+
you don't have to pick an identifier and move down to type the
|
|
50
|
+
note.]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
html:
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<p>Here is an inline note.<sup class="footnote-ref"><a href="#fn1" id="fnref1">[1]</a></sup></p>
|
|
57
|
+
<hr class="footnotes-sep">
|
|
58
|
+
<section class="footnotes">
|
|
59
|
+
<ol class="footnotes-list">
|
|
60
|
+
<li id="fn1" class="footnote-item"><p>Inlines notes are easier to write, since
|
|
61
|
+
you don’t have to pick an identifier and move down to type the
|
|
62
|
+
note. <a href="#fnref1" class="footnote-backref">↩</a></p>
|
|
63
|
+
</li>
|
|
64
|
+
</ol>
|
|
65
|
+
</section>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## Install
|
|
70
|
+
|
|
71
|
+
node.js, browser:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm install markdown-it-footnote --save
|
|
75
|
+
bower install markdown-it-footnote --save
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Use
|
|
79
|
+
|
|
80
|
+
```js
|
|
81
|
+
var md = require('markdown-it')()
|
|
82
|
+
.use(require('markdown-it-footnote'));
|
|
83
|
+
|
|
84
|
+
md.render(/*...*/) // See examples above
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
_Differences in browser._ If you load script directly into the page, without
|
|
88
|
+
package system, module will add itself globally as `window.markdownitFootnote`.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Customize
|
|
92
|
+
|
|
93
|
+
If you want to customize the output, you'll need to replace the template
|
|
94
|
+
functions. To see which templates exist and their default implementations,
|
|
95
|
+
look in [`index.js`](index.js). The API of these template functions is out of
|
|
96
|
+
scope for this plugin's documentation; you can read more about it [in the
|
|
97
|
+
markdown-it
|
|
98
|
+
documentation](https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer).
|
|
99
|
+
|
|
100
|
+
To demonstrate with an example, here is how you might replace the `<hr>` that
|
|
101
|
+
this plugin emits by default with an `<h4>` emitted by your own template
|
|
102
|
+
function override:
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
const md = require('markdown-it')().use(require('markdown-it-footnote'));
|
|
106
|
+
|
|
107
|
+
md.renderer.rules.footnote_block_open = () => (
|
|
108
|
+
'<h4 class="mt-3">Footnotes</h4>\n' +
|
|
109
|
+
'<section class="footnotes">\n' +
|
|
110
|
+
'<ol class="footnotes-list">\n'
|
|
111
|
+
);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Here's another example that customizes footnotes for epub books:
|
|
115
|
+
|
|
116
|
+
```js
|
|
117
|
+
const backrefLabel = 'back to text';
|
|
118
|
+
|
|
119
|
+
const epubRules = {
|
|
120
|
+
footnote_ref: ['<a', '<a epub:type="noteref"'],
|
|
121
|
+
footnote_open: ['<li', '<li epub:type="footnote"'],
|
|
122
|
+
footnote_anchor: ['<a', `<a aria-label="${backrefLabel}"`],
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
Object.keys(epubRules).map(rule => {
|
|
126
|
+
let defaultRender = md.renderer.rules[rule];
|
|
127
|
+
md.renderer.rules[rule] = (tokens, idx, options, env, self) => {
|
|
128
|
+
return defaultRender(tokens, idx, options, env, self).replace(...epubRules[rule]);
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
[MIT](https://github.com/markdown-it/markdown-it-footnote/blob/master/LICENSE)
|
|
@@ -35,6 +35,7 @@ Use this page as a command reference. If you are setting up a project for the fi
|
|
|
35
35
|
| `void project rollback` | Roll back to a previous deployment |
|
|
36
36
|
| `void project cancel` | Cancel an active deployment |
|
|
37
37
|
| `void project purge-cache` | Purge all cached pages |
|
|
38
|
+
| `void build logs` | Stream, tail, or download build logs |
|
|
38
39
|
| `void mcp` | Start the Void MCP server |
|
|
39
40
|
| `void init` | Setup wizard for new or existing projects |
|
|
40
41
|
|
|
@@ -606,13 +607,16 @@ Connect a GitHub repository to a Void project for automatic deploys. On every pu
|
|
|
606
607
|
|
|
607
608
|
**Options**
|
|
608
609
|
|
|
609
|
-
| Flag | Description
|
|
610
|
-
| --------------------- |
|
|
611
|
-
| `--project <name>` | Project name (alias for the positional argument)
|
|
612
|
-
| `--installation <id>` | GitHub App installation ID (required when you have multiple installations)
|
|
613
|
-
| `--repo <owner/repo>` | Repository full name — required unless the installation grants exactly one repo
|
|
614
|
-
| `--branch <name>` | Branch to deploy from — **required in non-interactive mode**
|
|
615
|
-
| `--executor <type>` | Build executor: `container` (default) or `github_actions`
|
|
610
|
+
| Flag | Description |
|
|
611
|
+
| --------------------- | --------------------------------------------------------------------------------- |
|
|
612
|
+
| `--project <name>` | Project name (alias for the positional argument) |
|
|
613
|
+
| `--installation <id>` | GitHub App installation ID (required when you have multiple installations) |
|
|
614
|
+
| `--repo <owner/repo>` | Repository full name — required unless the installation grants exactly one repo |
|
|
615
|
+
| `--branch <name>` | Branch to deploy from — **required in non-interactive mode** |
|
|
616
|
+
| `--executor <type>` | Build executor: `container` (default) or `github_actions` |
|
|
617
|
+
| `--workflow <path>` | Authorized deploy workflow file — defaults to `.github/workflows/void-deploy.yml` |
|
|
618
|
+
|
|
619
|
+
The `--workflow` path is the workflow file the GitHub OIDC exchange authorizes to mint this project's deploy token. It defaults to the scaffolded `.github/workflows/void-deploy.yml`; set it only if your deploy step lives in a different workflow file (it must be under `.github/workflows/` and end in `.yml`/`.yaml`). Because the exchange is secretless, **only this one workflow** can mint a deploy token — any other workflow in the repo (including an unsafe `pull_request_target`) is rejected. Pointing it at a broad, multi-purpose workflow widens that trust, so prefer a dedicated file.
|
|
616
620
|
|
|
617
621
|
**Non-interactive use (CI)**
|
|
618
622
|
|
|
@@ -633,17 +637,18 @@ void github connect my-app \
|
|
|
633
637
|
void github update [project] [options]
|
|
634
638
|
```
|
|
635
639
|
|
|
636
|
-
Update an existing connection's deploy **branch** and/or **
|
|
640
|
+
Update an existing connection's deploy **branch**, **build executor**, and/or authorized **workflow file**. Use this to change settings on a project that is already connected — for example, flipping the executor from `container` to `github_actions` for a monorepo whose Void app lives in a subdirectory, moving the deploy branch, or pointing the OIDC trust at a different workflow file. The project must already be connected (run `void github connect` first); the repository and installation are not changed.
|
|
637
641
|
|
|
638
642
|
**Options**
|
|
639
643
|
|
|
640
|
-
| Flag | Description
|
|
641
|
-
| ------------------- |
|
|
642
|
-
| `--project <name>` | Project name (alias for the positional argument)
|
|
643
|
-
| `--branch <name>` | New branch to deploy from
|
|
644
|
-
| `--executor <type>` | New build executor: `container` or `github_actions`
|
|
644
|
+
| Flag | Description |
|
|
645
|
+
| ------------------- | ---------------------------------------------------------------- |
|
|
646
|
+
| `--project <name>` | Project name (alias for the positional argument) |
|
|
647
|
+
| `--branch <name>` | New branch to deploy from |
|
|
648
|
+
| `--executor <type>` | New build executor: `container` or `github_actions` |
|
|
649
|
+
| `--workflow <path>` | New authorized deploy workflow file (under `.github/workflows/`) |
|
|
645
650
|
|
|
646
|
-
Interactively (TTY), `void github update` shows the current branch and executor and prompts for new values, defaulting each to the current setting. When stdin is not a TTY, it never prompts: pass at least one of `--branch` / `--executor`, or it fails closed. If nothing actually changes, the command reports "no changes" and does not call the API.
|
|
651
|
+
Interactively (TTY), `void github update` shows the current branch and executor and prompts for new values, defaulting each to the current setting. `--workflow` is flag-only — it is never prompted for; pass it explicitly to change the authorized workflow file. When stdin is not a TTY, it never prompts: pass at least one of `--branch` / `--executor` / `--workflow`, or it fails closed. If nothing actually changes, the command reports "no changes" and does not call the API.
|
|
647
652
|
|
|
648
653
|
```
|
|
649
654
|
void github update my-app --executor github_actions
|
|
@@ -651,6 +656,40 @@ void github update my-app --executor github_actions
|
|
|
651
656
|
|
|
652
657
|
**Project resolution** follows the same order as deploy: positional / `--project`, `VOID_PROJECT`, linked project (`.void/project.json`).
|
|
653
658
|
|
|
659
|
+
## Build
|
|
660
|
+
|
|
661
|
+
Inspect Deploy-on-GitHub builds.
|
|
662
|
+
|
|
663
|
+
### `void build logs`
|
|
664
|
+
|
|
665
|
+
```
|
|
666
|
+
void build logs [build] [--follow] [--output <file>] [--project <slug>]
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
Stream, tail, or download the build logs for a **container** build. With no
|
|
670
|
+
`[build]` argument, targets the project's most recent build.
|
|
671
|
+
|
|
672
|
+
| Flag | Purpose | Default |
|
|
673
|
+
| ------------------------ | ----------------------------------------------------------------- | ------- |
|
|
674
|
+
| `--follow`, `-f` | Live-tail: poll until the build reaches a terminal status. | off |
|
|
675
|
+
| `--output <file>`, `-o` | Write logs to a file instead of stdout (appends while following). | stdout |
|
|
676
|
+
| `--project <slug>`, `-p` | Target project. | linked |
|
|
677
|
+
|
|
678
|
+
**Project resolution** follows the same order as deploy: positional / `--project`,
|
|
679
|
+
`VOID_PROJECT`, linked project (`.void/project.json`).
|
|
680
|
+
|
|
681
|
+
Builds run on **GitHub Actions** keep their logs on GitHub — the command prints
|
|
682
|
+
the Actions run URL instead of streaming. Only the last 10,000 log lines of a
|
|
683
|
+
container build are retained.
|
|
684
|
+
|
|
685
|
+
Examples:
|
|
686
|
+
|
|
687
|
+
```
|
|
688
|
+
void build logs # print the latest build's logs
|
|
689
|
+
void build logs -f # follow the latest build until it finishes
|
|
690
|
+
void build logs bld_123 -o build.log # download a specific build's logs
|
|
691
|
+
```
|
|
692
|
+
|
|
654
693
|
## Custom Domains
|
|
655
694
|
|
|
656
695
|
### `void domain add`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|