book: Build RPC docs for darkfid2.

This commit is contained in:
parazyd
2022-04-23 19:22:33 +02:00
parent 4aeab08dae
commit a1aeade1e8
2 changed files with 11 additions and 5 deletions

View File

@@ -1,9 +1,16 @@
.POSIX:
DARKFID_JSONRPC = src/clients/darkfid_jsonrpc.md
all:
echo "# darkfid JSON-RPC API" > src/clients/darkfid_jsonrpc.md
./build_jsonrpc.py ../bin/darkfid/src/main.rs \
>> src/clients/darkfid_jsonrpc.md
echo "# darkfid JSON-RPC API" > $(DARKFID_JSONRPC)
./build_jsonrpc.py ../bin/darkfid2/src/main.rs >> $(DARKFID_JSONRPC)
echo "## blockchain methods" >> $(DARKFID_JSONRPC)
./build_jsonrpc.py ../bin/darkfid2/src/rpc_blockchain.rs >> $(DARKFID_JSONRPC)
echo "## wallet methods" >> $(DARKFID_JSONRPC)
./build_jsonrpc.py ../bin/darkfid2/src/rpc_wallet.rs >> $(DARKFID_JSONRPC)
echo "## miscellaneous methods" >> $(DARKFID_JSONRPC)
./build_jsonrpc.py ../bin/darkfid2/src/rpc_misc.rs >> $(DARKFID_JSONRPC)
echo "# cashierd JSON-RPC API" > src/clients/cashierd_jsonrpc.md
./build_jsonrpc.py ../bin/cashierd/src/main.rs \