Skip to content

Commit

Permalink
docs,mkdocs.yml,Makefile: improve docs
Browse files Browse the repository at this point in the history
- Creates generated markdown docs for API methods
  ./docs/JSON-RPC-API/modules
- 'make docs-generate' (re)creates these files
- ./docs/core/index.md is added including some hopefully
  useful information about what makes core-geth core-geth

Date: 2021-01-15 06:43:58-06:00
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Jan 21, 2021
1 parent 9422e73 commit 75b4b1d
Show file tree
Hide file tree
Showing 24 changed files with 23,352 additions and 27 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ build/_vendor/pkg
/build/_workspace/
/build/cache/
/build/bin/
/build/static/
/geth*.zip

# travis
Expand Down Expand Up @@ -54,4 +55,4 @@ les/transactions.rlp
# Files generated by docs build
/MANIFEST
/manifest.json
/site
/site
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ clean: clean-evmc
mkdocs-serve: ## Serve generated documentation (during development)
@build/mkdocs-serve.sh

docs-generate: ## Generate JSON RPC API documentation from the OpenRPC service discovery document.
env COREGETH_GEN_OPENRPC_DOCS=on go test -count=1 -run BuildStatic ./ethclient

# The devtools target installs tools required for 'go generate'.
# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.

Expand Down
2 changes: 1 addition & 1 deletion docs/apis/jsonrpc-apis.md → docs/JSON-RPC-API/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ hide:
- toc # Hide table of contents
---

# JSON-RPC APIs
# Using JSON-RPC APIs

## Programmatically interfacing `geth` nodes

Expand Down
Loading

0 comments on commit 75b4b1d

Please sign in to comment.