Skip to content

Commit

Permalink
docs: add swagger ui in docs (cosmos#15241)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Mar 2, 2023
1 parent de16912 commit 0141817
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "Cosmos SDK - gRPC Gateway docs",
"description": "A REST interface for state queries",
"description": "A REST interface for state queries.",
"version": "1.0.0"
},
"apis": [
Expand Down
2 changes: 1 addition & 1 deletion client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
swagger: '2.0'
info:
title: Cosmos SDK - gRPC Gateway docs
description: A REST interface for state queries
description: A REST interface for state queries.
version: 1.0.0
paths:
/cosmos/auth/v1beta1/account_info/{address}:
Expand Down
2 changes: 2 additions & 0 deletions docs/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ echo "building docusaurus main docs"
mv ~/versioned_docs ~/versioned_sidebars .
npm ci && npm run build
mv build ~/output
echo "adding swagger docs"
cp -r ../client/docs/swagger-ui ~/output/swagger
while read -r branch path_prefix; do
echo "building vuepress $branch docs"
(git clean -fdx && git reset --hard && git checkout $branch && npm install && VUEPRESS_BASE="/$path_prefix/" npm run build)
Expand Down
2 changes: 1 addition & 1 deletion docs/post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ rm -rf docs/tooling/04-hubl.md
rm -rf docs/run-node/04-rosetta.md
rm -rf docs/architecture
rm -rf docs/spec
rm -rf versioned_docs versioned_sidebars versions.json
rm -rf versioned_docs versioned_sidebars versions.json
2 changes: 1 addition & 1 deletion docs/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ cp ../tools/rosetta/README.md ./docs/run-node/04-rosetta.md
cp -r ./architecture ./docs

## Add spec documentation
cp -r ./spec ./docs
cp -r ./spec ./docs
2 changes: 1 addition & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const sidebars = {
{
type: "link",
label: "REST API Spec",
href: "https://v1.cosmos.network/rpc/v0.45.1",
href: "https://docs.cosmos.network/swagger/",
},
{
type: "link",
Expand Down
2 changes: 1 addition & 1 deletion x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Here are some production-grade modules that can be used in Cosmos SDK applicatio
* [NFT](./nft/README.md) - NFT module implemented based on [ADR43](https://docs.cosmos.network/main/architecture/adr-043-nft-module.html).
* [Consensus](./consensus/README.md) - Consensus module for modifying Tendermint's ABCI consensus params.
* [Circuit](./circuit/README.md) - Circuit breaker module for pausing messages.

* [Genutil](./genutil/README.md) - Genesis utilities for the Cosmos SDK.

To learn more about the process of building modules, visit the [building modules reference documentation](https://docs.cosmos.network/main/building-modules/intro).

Expand Down

0 comments on commit 0141817

Please sign in to comment.