mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
book: Build darkfid RPC doc in a for loop.
This commit is contained in:
11
doc/Makefile
11
doc/Makefile
@@ -4,13 +4,10 @@ DARKFID_JSONRPC = src/clients/darkfid_jsonrpc.md
|
||||
|
||||
all:
|
||||
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)
|
||||
for i in blockchain tx wallet misc; do \
|
||||
echo "## $$i methods" >> $(DARKFID_JSONRPC);\
|
||||
./build_jsonrpc.py ../bin/darkfid2/src/rpc_$$i.rs >> $(DARKFID_JSONRPC);\
|
||||
done
|
||||
|
||||
echo "# cashierd JSON-RPC API" > src/clients/cashierd_jsonrpc.md
|
||||
./build_jsonrpc.py ../bin/cashierd/src/main.rs \
|
||||
|
||||
Reference in New Issue
Block a user