Skip to content

Commit

Permalink
doc: fix display of lists and code blocks in manpages.
Browse files Browse the repository at this point in the history
The conversion from markdown to manpages does not display lists and
code blocks correctly if they are not preceded by an empty line.

Changelog-None
  • Loading branch information
tonyaldon authored and vincenzopalazzo committed Oct 14, 2023
1 parent 9b69c56 commit 8f6a02c
Show file tree
Hide file tree
Showing 44 changed files with 78 additions and 28 deletions.
1 change: 1 addition & 0 deletions doc/lightning-addpsbtoutput.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ EXAMPLE USAGE

Here is a command to make a PSBT with a 100,000 sat output that leads
to the on-chain wallet.

```shell
lightning-cli addpsbtoutput 100000sat
```
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-checkmessage.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ matches for any one of them. Note: this is implemented far more
efficiently than trying each one, so performance is not a concern.

On failure, an error is returned and core lightning exit with the following error code:

- -32602: Parameter missed or malformed;
- 1301: *pubkey* not found in the graph.

Expand Down
3 changes: 2 additions & 1 deletion doc/lightning-checkrune.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ On success, an object is returned, containing:
[comment]: # (GENERATE-FROM-SCHEMA-END)

The following error codes may occur:

- RUNE\_NOT\_AUTHORIZED (1501): rune is not for this node (or perhaps completely invalid)
- RUNE\_NOT\_PERMITTED (1502): rune does not allow this usage (includes a detailed reason why)
- RUNE\_BLACKLISTED (1503): rune has been explicitly blacklisted.

AUTHOR
------

Shahana Farooqui <<[email protected]>> is mainly responsible
Shahana Farooqui <<[email protected]>> is mainly responsible
for consolidating logic from commando.

SEE ALSO
Expand Down
11 changes: 6 additions & 5 deletions doc/lightning-close.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ can be an integer in which case it is interpreted as number of satoshis
to step at a time. Or it can be an integer followed by "%" to designate
a percentage of the interval to give up. A few examples, assuming the peer
proposes a closing fee of 3000 satoshi and our estimate shows it must be 4000:
* "10": our next proposal will be 4000-10=3990.
* "10%": our next proposal will be 4000-(10% of (4000-3000))=3900.
* "1": our next proposal will be 3999. This is the most extreme case when we

- "10": our next proposal will be 4000-10=3990.
- "10%": our next proposal will be 4000-(10% of (4000-3000))=3900.
- "1": our next proposal will be 3999. This is the most extreme case when we
insist on our fee as much as possible.
* "100%": our next proposal will be 3000. This is the most relaxed case when
- "100%": our next proposal will be 3000. This is the most relaxed case when
we quickly accept the peer's proposal.

The default is "50%".

*wrong\_funding* can only be specified if both sides have offered
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-connect.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ be of the form *id@host* or *id@host:port*. In this case, the *host* and
*host* is the peer's hostname or IP address.

If not specified, the *port* depends on the current network:

- bitcoin **mainnet**: 9735.
- bitcoin **testnet**: 19735.
- bitcoin **signet**: 39735.
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-createinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ lightning-listinvoices(7) to query whether this invoice was created or
not.

The following error codes may occur:

- -1: Catchall nonspecific error.
- 900: An invoice with the given *label* already exists.

Expand Down
1 change: 1 addition & 0 deletions doc/lightning-datastore.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ On success, an object is returned, containing:
[comment]: # (GENERATE-FROM-SCHEMA-END)

The following error codes may occur:

- 1202: The key already exists (and mode said it must not)
- 1203: The key does not exist (and mode said it must)
- 1204: The generation was wrong (and generation was specified)
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-deldatastore.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ On success, an object is returned, containing:
[comment]: # (GENERATE-FROM-SCHEMA-END)

The following error codes may occur:

- 1200: the key does not exist
- 1201: the key does exist, but the generation is wrong
- -32602: invalid parameters
Expand Down
3 changes: 2 additions & 1 deletion doc/lightning-emergencyrecover.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RETURN VALUE
------------

On success, an object is returned, containing:

- **stubs** (array of hexs):
- Each item is the channel ID of the channel successfully inserted

Expand All @@ -40,4 +41,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:9cfaa9eb4609b36accc3e3b12a352c00ddd402307e4461f4df274146d12f6eb0)
[comment]: # ( SHA256STAMP:9cfaa9eb4609b36accc3e3b12a352c00ddd402307e4461f4df274146d12f6eb0)
1 change: 1 addition & 0 deletions doc/lightning-fetchinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ On success, an object is returned, containing:
[comment]: # (GENERATE-FROM-SCHEMA-END)

The following error codes may occur:

- -1: Catchall nonspecific error.
- 1002: Offer has expired.
- 1003: Cannot find a route to the node making the offer.
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-fundchannel.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ On success, an object is returned, containing:
[comment]: # (GENERATE-FROM-SCHEMA-END)

The following error codes may occur:

- -1: Catchall nonspecific error.
- 300: The maximum allowed funding amount is exceeded.
- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.
Expand Down
3 changes: 2 additions & 1 deletion doc/lightning-invoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ of this invoice.
The *description* is a short description of purpose of payment, e.g. *1
cup of coffee*. This value is encoded into the BOLT11 invoice and is
viewable by any node you send this invoice to (unless *deschashonly* is
true as described below). It must be UTF-8, and cannot use *\\u* JSON
true as described below). It must be UTF-8, and cannot use *\\u* JSON
escape codes.

The *expiry* is optionally the time the invoice is valid for, in seconds.
Expand Down Expand Up @@ -100,6 +100,7 @@ lightning-listinvoices(7) to query whether this invoice was created or
not.

The following error codes may occur:

- -1: Catchall nonspecific error.
- 900: An invoice with the given *label* already exists.
- 901: An invoice with the given *preimage* already exists.
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-invoicerequest.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ should use lightning-listinvoicerequests(7) to query whether it was
created or not.

The following error codes may occur:

- -1: Catchall nonspecific error.

AUTHOR
Expand Down
2 changes: 2 additions & 0 deletions doc/lightning-keysend.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,15 @@ The following warnings may also be returned:
You can monitor the progress and retries of a payment using the lightning-paystatus(7) command.

The following error codes may occur:

- `-1`: Catchall nonspecific error.
- `203`: Permanent failure at destination. The *data* field of the error will be routing failure object.
- `205`: Unable to find a route.
- `206`: Route too expensive. Either the fee or the needed total locktime for the route exceeds your *maxfeepercent* or *maxdelay* settings, respectively. The *data* field of the error will indicate the actual *fee* as well as the *feepercent* percentage that the fee has of the destination payment amount. It will also indicate the actual *delay* along the route.
- `210`: Payment timed out without a payment in progress.

A routing failure object has the fields below:

- `erring_index`: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.
- `erring_node`: The hex string of the pubkey id of the node that reported the error.
- `erring_channel`: The short channel ID of the channel that has the error, or *0:0:0* if the destination node raised the error.
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-listdatastore.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ On success, an object containing **datastore** is returned. It is an array of o
[comment]: # (GENERATE-FROM-SCHEMA-END)

The following error codes may occur:

- -32602: invalid parameters.

AUTHOR
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-listpeers.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ On success, an object with a "peers" key is returned containing a list
of 0 or more objects.

Each object in the list contains the following data:

- *id* : The unique id of the peer
- *connected* : A boolean value showing the connection status
- *netaddr* : A list of network addresses the node is listening on
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-listtransactions.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ On success, an object containing **transactions** is returned. It is an array o
[comment]: # (GENERATE-FROM-SCHEMA-END)

On failure, one of the following error codes may be returned:

- -32602: Error in given parameters.

EXAMPLE JSON RESPONSE
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-makesecret.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ On success, an object is returned, containing:


The following error codes may occur:

- -1: Catchall nonspecific error.

AUTHOR
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-multifundchannel.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ On success, an object is returned, containing:
On failure, none of the channels are created.

The following error codes may occur:

* -1: Catchall nonspecific error.
- 300: The maximum allowed funding amount is exceeded.
- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-multiwithdraw.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ On failure, an error is reported and the withdrawal transaction is not
created.

The following error codes may occur:

- -1: Catchall nonspecific error.
- 301: There are not enough funds in the internal wallet (including
fees) to create the transaction.
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-offer.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ If the offer already existed, and is still active, that is returned;
if it's not active then this call fails.

The following error codes may occur:

- -1: Catchall nonspecific error.
- 1000: Offer with this offer\_id already exists (but is not active).

Expand Down
3 changes: 3 additions & 0 deletions doc/lightning-openchannel_update.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ On success, an object is returned, containing:
[comment]: # (GENERATE-FROM-SCHEMA-END)

If *commitments\_secured* is true, will also return:

- The derived *channel\_id*.
- A *close\_to* script, iff a `close_to` address was provided to
`openchannel_init` and the peer supports `option_upfront_shutdownscript`.
- The *funding\_outnum*, the index of the funding output for this channel
in the funding transaction.

On error, the returned object will contain `code` and `message` properties,
with `code` being one of the following:

- -32602: If the given parameters are wrong.
- -1: Catchall nonspecific error.
Expand Down
2 changes: 2 additions & 0 deletions doc/lightning-pay.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ You can monitor the progress and retries of a payment using the
lightning-paystatus(7) command.

The following error codes may occur:

- -1: Catchall nonspecific error.
- 201: Already paid with this *hash* using different amount or
destination.
Expand All @@ -137,6 +138,7 @@ Error codes 202 and 204 will only get reported at **sendpay**; in
**pay** we will keep retrying if we would have gotten those errors.

A routing failure object has the fields below:

- *erring\_index*: The index of the node along the route that reported
the error. 0 for the local node, 1 for the first hop, and so on.
- *erring\_node*: The hex string of the pubkey id of the node that
Expand Down
11 changes: 8 additions & 3 deletions doc/lightning-plugin.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ killed and restarted except if its an important (or builtin) plugin.
If the plugin doesn't complete the "getmanifest" and "init" handshakes within 60 seconds,
the command will timeout and kill the plugin.
Additional *options* may be passed to the plugin, but requires all parameters to
be passed as keyword=value pairs, for example:
`lightning-cli -k plugin subcommand=start plugin=helloworld.py greeting='A crazy'`
(using the `-k|--keyword` option is recommended)
be passed as keyword=value pairs using the `-k|--keyword` option which
is recommended. For example the following command starts the plugin
helloworld.py (present in the plugin directory) with the option
greeting set to 'A crazy':

```
lightning-cli -k plugin subcommand=start plugin=helloworld.py greeting='A crazy'
```

*subcommand* **stop** takes a plugin executable *path* or *name* as argument and stops the plugin.
If the plugin subscribed to "shutdown", it may take up to 30 seconds before this
Expand Down
3 changes: 2 additions & 1 deletion doc/lightning-recoverchannel.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RETURN VALUE
------------

On success, an object is returned, containing:

- **stubs** (array of hexs):
- Each item is the channel ID of the channel successfully inserted

Expand All @@ -42,4 +43,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:9cfaa9eb4609b36accc3e3b12a352c00ddd402307e4461f4df274146d12f6eb0)
[comment]: # ( SHA256STAMP:9cfaa9eb4609b36accc3e3b12a352c00ddd402307e4461f4df274146d12f6eb0)
23 changes: 8 additions & 15 deletions doc/lightning-renepay.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,22 +116,15 @@ lightning-renepaystatus(7) command.

The following error codes may occur:

-1: Catchall nonspecific error.

200: Other payment attempts are in progress.

203: Permanent failure at destination.

205: Unable to find a route.

206: Payment routes are too expensive.

207: Invoice expired. Payment took too long before expiration, or
- -1: Catchall nonspecific error.
- 200: Other payment attempts are in progress.
- 203: Permanent failure at destination.
- 205: Unable to find a route.
- 206: Payment routes are too expensive.
- 207: Invoice expired. Payment took too long before expiration, or
already expired at the time you initiated payment.

210: Payment timed out without a payment in progress.

212: Invoice is invalid.
- 210: Payment timed out without a payment in progress.
- 212: Invoice is invalid.

AUTHOR
------
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-reserveinputs.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ which was reserved:
On failure, an error is reported and no UTXOs are reserved.

The following error codes may occur:

- -32602: Invalid parameter, such as specifying a spent/reserved input in *psbt*.

AUTHOR
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-sendinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ If **status** is "paid":
[comment]: # (GENERATE-FROM-SCHEMA-END)

The following error codes may occur:

- -1: Catchall nonspecific error.
- 1002: Offer has expired.
- 1003: Cannot find a route to the node making the offer.
Expand Down
2 changes: 2 additions & 0 deletions doc/lightning-sendpay.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ error from the final destination implies the payment should not be
retried.

The following error codes may occur:

- -1: Catchall nonspecific error.
- 201: Already paid with this *hash* using different amount or
destination.
Expand All @@ -112,6 +113,7 @@ The following error codes may occur:
- 212: *localinvreqid* refers to an invalid, or used, local invoice\_request.

A routing failure object has the fields below:

- *erring\_index*. The index of the node along the route that reported
the error. 0 for the local node, 1 for the first hop, and so on.
- *erring\_node*. The hex string of the pubkey id of the node that
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-setchannel.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ ERRORS
------

The following error codes may occur:

- -1: Channel is in incorrect state, i.e. Catchall nonspecific error.
- -32602: JSONRPC2\_INVALID\_PARAMS, i.e. Given id is not a channel ID
or short channel ID.
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-setconfig.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ERRORS
------

The following error codes may occur:

- -32602: JSONRPC2\_INVALID\_PARAMS, i.e. the parameter is not dynamic, or the val was invalid.

AUTHOR
Expand Down
1 change: 1 addition & 0 deletions doc/lightning-signinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ On success, an object is returned, containing:
On failure, an error is returned.

The following error codes may occur:

- -1: Catchall nonspecific error.

AUTHOR
Expand Down
2 changes: 2 additions & 0 deletions doc/lightning-splice_init.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ lightning-cli splice_init -- $CHANNEL_ID -100000
Here is an example set of splice commands that will splice in 100,000 sats to
the first channel that comes out of `listpeerchannels`. The example assumes
you already have at least one confirmed channel.

```shell
RESULT=$(lightning-cli listpeerchannels);
CHANNEL_ID=$(echo $RESULT| jq -r ".channels[0].channel_id");
Expand Down Expand Up @@ -65,6 +66,7 @@ lightning-cli splice_signed $CHANNEL_ID $PSBT
Here is an example set of splice commands that will splice out 100,000 sats from
first channel that comes out of `listpeerchannels`. The example assumes
you already have at least one confirmed channel.

```shell
RESULT=$(lightning-cli listpeerchannels);
CHANNEL_ID=$(echo $RESULT| jq -r ".channels[0].channel_id");
Expand Down
2 changes: 2 additions & 0 deletions doc/lightning-splice_signed.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ to it or it will fail.

In this example we funded the psbt from our lightning node, so we can use the
lightning node to sign for its funds.

```shell
RESULT=$(lightning-cli signpsbt $PSBT)
PSBT=$(echo $RESULT | jq -r ".signed_psbt")
Expand All @@ -38,6 +39,7 @@ lightning-cli splice_signed $CHANNEL_ID $PSBT
Here is a full example set of splice commands that will splice in 100,000 sats
to the first channel that comes out of `listpeerchannels`. The example assumes
you already have at least one confirmed channel.

```shell
RESULT=$(lightning-cli listpeerchannels)
CHANNEL_ID=$(echo $RESULT| jq -r ".channels[0].channel_id")
Expand Down
Loading

0 comments on commit 8f6a02c

Please sign in to comment.