From 5e41a5e1e127bf63e4cb93387c1b84ddab17a729 Mon Sep 17 00:00:00 2001 From: yukang Date: Fri, 10 Jan 2025 15:23:32 +0800 Subject: [PATCH 1/3] fix doc issues --- Makefile | 2 +- src/rpc/README.md | 33 ++++++++++++++++++++++++++++++++- src/rpc/cch.rs | 1 - src/rpc/invoice.rs | 1 + src/rpc/payment.rs | 1 + 5 files changed, 35 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 116f1a1ff..f5f5475f8 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ coverage: coverage-run-unittests coverage-collect-data coverage-generate-report .PHONY: gen-rpc-doc gen-rpc-doc: $(if $(shell command -v fiber-rpc-gen),,cargo install fiber-rpc-gen --force) - fiber-rpc-gen ./src/rpc + /Users/yukang/code/rpc-doc-gen/target/debug/fiber-rpc-gen ./src/ if grep -q "TODO: add desc" ./src/rpc/README.md; then \ echo "Warning: There are 'TODO: add desc' in src/rpc/README.md, please add documentation comments to resolve them"; \ exit 1; \ diff --git a/src/rpc/README.md b/src/rpc/README.md index 23d007095..373bf72e7 100644 --- a/src/rpc/README.md +++ b/src/rpc/README.md @@ -48,6 +48,8 @@ You may refer to the e2e test cases in the `tests/bruno/e2e` directory for examp * [Type `Channel`](#type-channel) * [Type `ChannelInfo`](#type-channelinfo) * [Type `ChannelState`](#type-channelstate) + * [Type `HopHint`](#type-hophint) + * [Type `NewInvoiceParams`](#type-newinvoiceparams) * [Type `NodeInfo`](#type-nodeinfo) * [Type `PaymentSessionStatus`](#type-paymentsessionstatus) * [Type `RemoveTlcReason`](#type-removetlcreason) @@ -60,7 +62,6 @@ You may refer to the e2e test cases in the `tests/bruno/e2e` directory for examp ### Module `Cch` RPC module for cross chain hub demonstration. - This is the seccond line @@ -713,6 +714,24 @@ The Channel information. * `chain_hash` - Hash256, The chain hash of the channel. * `udt_type_script` - `Option