Skip to content

Commit e7066c4

Browse files
authored
docs: Code blocks in SDK docs are broken (#11189)
1 parent 81e9d0b commit e7066c4

File tree

77 files changed

+310
-307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+310
-307
lines changed

.markdownlint.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"MD024": { "siblings_only": true },
77
"MD025": false,
88
"MD033": false,
9+
"MD034": false,
910
"no-hard-tabs": false,
1011
"whitespace": false
1112
}

CHANGELOG.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ that error is that the account doesn't exist.
16651665
* Added a `ModuleAccount` for the mint module
16661666
[\#4472](https://github.com/cosmos/cosmos-sdk/issues/4472) validation for crisis genesis
16671667
* [\#3985](https://github.com/cosmos/cosmos-sdk/issues/3985) `ValidatorPowerRank` uses potential consensus power instead of tendermint power
1668-
* [\#4104](https://github.com/cosmos/cosmos-sdk/issues/4104) Gaia has been moved to its own repository: <https://github.com/cosmos/gaia>
1668+
* [\#4104](https://github.com/cosmos/cosmos-sdk/issues/4104) Gaia has been moved to its own repository: https://github.com/cosmos/gaia
16691669
* [\#4104](https://github.com/cosmos/cosmos-sdk/issues/4104) Rename gaiad.toml to app.toml. The internal contents of the application
16701670
config remain unchanged.
16711671
* [\#4159](https://github.com/cosmos/cosmos-sdk/issues/4159) create the default module patterns and module manager
@@ -2427,7 +2427,7 @@ BUG FIXES
24272427
* Gaia CLI (`gaiacli`)
24282428
* [\#3417](https://github.com/cosmos/cosmos-sdk/pull/3417) Fix `q slashing signing-info` panic by ensuring safety of user input and properly returning not found error
24292429
* [\#3345](https://github.com/cosmos/cosmos-sdk/issues/3345) Upgrade ledger-cosmos-go dependency to v0.9.3 to pull
2430-
<https://github.com/ZondaX/ledger-cosmos-go/commit/ed9aa39ce8df31bad1448c72d3d226bf2cb1a8d1> in order to fix a derivation path issue that causes `gaiacli keys add --recover`
2430+
https://github.com/ZondaX/ledger-cosmos-go/commit/ed9aa39ce8df31bad1448c72d3d226bf2cb1a8d1 in order to fix a derivation path issue that causes `gaiacli keys add --recover`
24312431
to malfunction.
24322432
* [\#3419](https://github.com/cosmos/cosmos-sdk/pull/3419) Fix `q distr slashes` panic
24332433
* [\#3453](https://github.com/cosmos/cosmos-sdk/pull/3453) The `rest-server` command didn't respect persistent flags such as `--chain-id` and `--trust-node` if they were
@@ -2464,7 +2464,7 @@ BREAKING CHANGES
24642464
* [\#3320](https://github.com/cosmos/cosmos-sdk/pull/3320) Ensure all `gaiacli query` commands respect the `--output` and `--indent` flags
24652465

24662466
* Gaia
2467-
* <https://github.com/cosmos/cosmos-sdk/issues/2838> - Move store keys to constants
2467+
* https://github.com/cosmos/cosmos-sdk/issues/2838 - Move store keys to constants
24682468
* [\#3162](https://github.com/cosmos/cosmos-sdk/issues/3162) The `--gas` flag now takes `auto` instead of `simulate`
24692469
in order to trigger a simulation of the tx before the actual execution.
24702470
* [\#3285](https://github.com/cosmos/cosmos-sdk/pull/3285) New `gaiad tendermint version` to print libs versions
@@ -3097,7 +3097,7 @@ BUG FIXES
30973097
* [docs] Fixed light client section links
30983098

30993099
* SDK
3100-
* [\#1988](https://github.com/cosmos/cosmos-sdk/issues/1988) Make us compile on OpenBSD (disable ledger) [#1988] (<https://github.com/cosmos/cosmos-sdk/issues/1988>)
3100+
* [\#1988](https://github.com/cosmos/cosmos-sdk/issues/1988) Make us compile on OpenBSD (disable ledger)
31013101
* [\#2105](https://github.com/cosmos/cosmos-sdk/issues/2105) Fix DB Iterator leak, which may leak a go routine.
31023102
* [ledger] [\#2064](https://github.com/cosmos/cosmos-sdk/issues/2064) Fix inability to sign and send transactions via the LCD by
31033103
loading a Ledger device at runtime.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ For example, in vscode your `.vscode/settings.json` should look like:
207207

208208
## Branching Model and Release
209209

210-
User-facing repos should adhere to the trunk based development branching model: <https://trunkbaseddevelopment.com/>. User branches should start with a user name, example: `{moniker}/{issue#}-branch-name`.
210+
User-facing repos should adhere to the trunk based development branching model: https://trunkbaseddevelopment.com. User branches should start with a user name, example: `{moniker}/{issue#}-branch-name`.
211211

212212
The Cosmos SDK repository is a [multi Go module](https://github.com/golang/go/wiki/Modules#is-it-possible-to-add-a-module-to-a-multi-module-repository) repository. It means that we have more than one Go module in a single repository.
213213

cosmovisor/RELEASE_NOTES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
### New execution model
44

55
With this release we are shifting to a new CLI design:
6+
67
* in the past, Cosmovisor was designed to act as a wrapper for a Cosmos App. An admin could link it and use it instead of the Cosmos App. When running it will pass all options and configuration parameters to the app. Hence the only way to configure the Cosmovisor was through environment variables.
78
* now, we are moving to a more traditional model, where Cosmovisor has it's own command set and is a true supervisor.
89

910
New commands have been added:
11+
1012
* `run` will start the Cosmos App and pass remaining arguments to the app (similar to `npm run`)
1113
* `help` will display Cosmovisor help
1214
* `version` will display both Cosmovisor and the associated app version.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# secp256k1
22

3-
This package is copied from <https://github.com/ethereum/go-ethereum/tree/729bf365b5f17325be9107b63b233da54100eec6/crypto/secp256k1>
3+
This package is copied from https://github.com/ethereum/go-ethereum/tree/729bf365b5f17325be9107b63b233da54100eec6/crypto/secp256k1
44

55
Unlike the rest of go-ethereum it is MIT licensed so compatible with our Apache2.0 license. We opt to copy in here rather than depend on go-ethereum to avoid issues with vendoring of the GPL parts of that repository by downstream.

docs/DOCS_README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you want to open a PR in Cosmos SDK to update the documentation, please follo
1919

2020
## Docs Build Workflow
2121

22-
The documentation for Cosmos SDK is hosted at <https://docs.cosmos.network/> and built from the files in the `/docs` directory.
22+
The documentation for Cosmos SDK is hosted at https://docs.cosmos.network/ and built from the files in the `/docs` directory.
2323

2424
### How It Works
2525

@@ -84,7 +84,7 @@ Install the theme and all dependencies.
8484
npm run serve
8585
```
8686

87-
Run `pre` and `post` hooks and start a hot-reloading web-server. See output of this command for the URL (it is often <https://localhost:8080>).
87+
Run `pre` and `post` hooks and start a hot-reloading web-server. See output of this command for the URL (it is often https://localhost:8080).
8888

8989
To build documentation as a static website run `npm run build`. You will find the website in `.vuepress/dist` directory.
9090

docs/architecture/adr-002-docs-structure.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Accepted
7070
* Developers only have to update `/docs` folder when they open a PR (and not `/examples` for example).
7171
* Easier for developers to find what they need to update in the docs thanks to reworked architecture.
7272
* Cleaner vuepress build for website docs.
73-
* Will help build an executable doc (cf <https://github.com/cosmos/cosmos-sdk/issues/2611>)
73+
* Will help build an executable doc (cf https://github.com/cosmos/cosmos-sdk/issues/2611)
7474

7575
### Neutral
7676

@@ -81,6 +81,6 @@ Accepted
8181

8282
## References
8383

84-
* <https://github.com/cosmos/cosmos-sdk/issues/1460>
85-
* <https://github.com/cosmos/cosmos-sdk/pull/2695>
86-
* <https://github.com/cosmos/cosmos-sdk/issues/2611>
84+
* https://github.com/cosmos/cosmos-sdk/issues/1460
85+
* https://github.com/cosmos/cosmos-sdk/pull/2695
86+
* https://github.com/cosmos/cosmos-sdk/issues/2611

docs/architecture/adr-004-split-denomination-keys.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ None in particular.
115115

116116
## References
117117

118-
* Ref: <https://github.com/cosmos/cosmos-sdk/issues/4982>
119-
* Ref: <https://github.com/cosmos/cosmos-sdk/issues/5467>
120-
* Ref: <https://github.com/cosmos/cosmos-sdk/issues/5492>
118+
* Ref: https://github.com/cosmos/cosmos-sdk/issues/4982
119+
* Ref: https://github.com/cosmos/cosmos-sdk/issues/5467
120+
* Ref: https://github.com/cosmos/cosmos-sdk/issues/5492

docs/architecture/adr-016-validator-consensus-key-rotation.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Context
99

10-
Validator consensus key rotation feature has been discussed and requested for a long time, for the sake of safer validator key management policy (e.g. <https://github.com/tendermint/tendermint/issues/1136>). So, we suggest one of the simplest form of validator consensus key rotation implementation mostly onto Cosmos SDK.
10+
Validator consensus key rotation feature has been discussed and requested for a long time, for the sake of safer validator key management policy (e.g. https://github.com/tendermint/tendermint/issues/1136). So, we suggest one of the simplest form of validator consensus key rotation implementation mostly onto Cosmos SDK.
1111

1212
We don't need to make any update on consensus logic in Tendermint because Tendermint does not have any mapping information of consensus key and validator operator key, meaning that from Tendermint point of view, a consensus key rotation of a validator is simply a replacement of a consensus key to another.
1313

@@ -109,7 +109,7 @@ Proposed
109109
### Positive
110110

111111
* Validators can immediately or periodically rotate their consensus key to have better security policy
112-
* improved security against Long-Range attacks (<https://nearprotocol.com/blog/long-range-attacks-and-a-new-fork-choice-rule>) given a validator throws away the old consensus key(s)
112+
* improved security against Long-Range attacks (https://nearprotocol.com/blog/long-range-attacks-and-a-new-fork-choice-rule) given a validator throws away the old consensus key(s)
113113

114114
### Negative
115115

@@ -120,6 +120,6 @@ Proposed
120120

121121
## References
122122

123-
* on tendermint repo : <https://github.com/tendermint/tendermint/issues/1136>
124-
* on cosmos-sdk repo : <https://github.com/cosmos/cosmos-sdk/issues/5231>
125-
* about multiple consensus keys : <https://github.com/tendermint/tendermint/issues/1758#issuecomment-545291698>
123+
* on tendermint repo : https://github.com/tendermint/tendermint/issues/1136
124+
* on cosmos-sdk repo : https://github.com/cosmos/cosmos-sdk/issues/5231
125+
* about multiple consensus keys : https://github.com/tendermint/tendermint/issues/1758#issuecomment-545291698

docs/architecture/adr-019-protobuf-state-encoding.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,5 +375,5 @@ seamless.
375375

376376
## References
377377

378-
1. <https://github.com/cosmos/cosmos-sdk/issues/4977>
379-
2. <https://github.com/cosmos/cosmos-sdk/issues/5444>
378+
1. https://github.com/cosmos/cosmos-sdk/issues/4977
379+
2. https://github.com/cosmos/cosmos-sdk/issues/5444

docs/architecture/adr-020-protobuf-transaction-encoding.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ processors because:
270270
not `TxBody`)
271271

272272
There are also scenarios where we may choose to safely ignore unknown fields
273-
(<https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-624400188>) to
273+
(https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-624400188) to
274274
provide graceful forwards compatibility with newer clients.
275275

276276
We propose that field numbers with bit 11 set (for most use cases this is
@@ -379,7 +379,7 @@ can gracefully transition away from Amino JSON.
379379

380380
### `SIGN_MODE_DIRECT_AUX`
381381

382-
(\*Documented as option (3) in <https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-628026933>)
382+
(\*Documented as option (3) in https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-628026933)
383383

384384
We could add a mode `SIGN_MODE_DIRECT_AUX`
385385
to support scenarios where multiple signatures
@@ -437,7 +437,7 @@ To generate a signature in `SIGN_MODE_DIRECT_AUX` these steps would be followed:
437437
438438
### `SIGN_MODE_DIRECT_RELAXED`
439439
440-
(_Documented as option (1)(a) in <https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-628026933>_)
440+
(_Documented as option (1)(a) in https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-628026933_)
441441
442442
This is a variation of `SIGN_MODE_DIRECT` where multiple signers wouldn't need to
443443
coordinate public keys and signing modes in advance. It would involve an alternate

docs/architecture/adr-027-deterministic-protobuf-serialization.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ for all protobuf documents we need in the context of Cosmos SDK signing.
260260
* Simple enough to keep the barrier to implement transaction signing low
261261
* It allows us to continue to use 0 and other empty values in SignDoc, avoiding
262262
the need to work around 0 sequences. This does not imply the change from
263-
<https://github.com/cosmos/cosmos-sdk/pull/6949> should not be merged, but not
263+
https://github.com/cosmos/cosmos-sdk/pull/6949 should not be merged, but not
264264
too important anymore.
265265

266266
### Negative
@@ -288,27 +288,27 @@ the need of implementing a custom serializer that adheres to this standard (and
288288
implementation detail and the details of any particular implementation may
289289
change in the future. Therefore, protocol buffer parsers must be able to parse
290290
fields in any order._ from
291-
<https://developers.google.com/protocol-buffers/docs/encoding#order>
292-
* <sup>2</sup> <https://developers.google.com/protocol-buffers/docs/encoding#signed_integers>
291+
https://developers.google.com/protocol-buffers/docs/encoding#order
292+
* <sup>2</sup> https://developers.google.com/protocol-buffers/docs/encoding#signed_integers
293293
* <sup>3</sup> _Note that for scalar message fields, once a message is parsed
294294
there's no way of telling whether a field was explicitly set to the default
295295
value (for example whether a boolean was set to false) or just not set at all:
296296
you should bear this in mind when defining your message types. For example,
297297
don't have a boolean that switches on some behavior when set to false if you
298298
don't want that behavior to also happen by default._ from
299-
<https://developers.google.com/protocol-buffers/docs/proto3#default>
299+
https://developers.google.com/protocol-buffers/docs/proto3#default
300300
* <sup>4</sup> _When a message is parsed, if the encoded message does not
301301
contain a particular singular element, the corresponding field in the parsed
302302
object is set to the default value for that field._ from
303-
<https://developers.google.com/protocol-buffers/docs/proto3#default>
303+
https://developers.google.com/protocol-buffers/docs/proto3#default
304304
* <sup>5</sup> _Also note that if a scalar message field is set to its default,
305305
the value will not be serialized on the wire._ from
306-
<https://developers.google.com/protocol-buffers/docs/proto3#default>
306+
https://developers.google.com/protocol-buffers/docs/proto3#default
307307
* <sup>6</sup> _For enums, the default value is the first defined enum value,
308308
which must be 0._ from
309-
<https://developers.google.com/protocol-buffers/docs/proto3#default>
309+
https://developers.google.com/protocol-buffers/docs/proto3#default
310310
* <sup>7</sup> _For message fields, the field is not set. Its exact value is
311311
language-dependent._ from
312-
<https://developers.google.com/protocol-buffers/docs/proto3#default>
312+
https://developers.google.com/protocol-buffers/docs/proto3#default
313313
* Encoding rules and parts of the reasoning taken from
314314
[canonical-proto3 Aaron Craelius](https://github.com/regen-network/canonical-proto3)

docs/architecture/adr-028-public-key-addresses.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ a security break of one account type shouldn't impact the security of other acco
2929
One initial proposal was extending the address length and
3030
adding prefixes for different types of addresses.
3131

32-
@ethanfrey explained an alternate approach originally used in <https://github.com/iov-one/weave>:
32+
@ethanfrey explained an alternate approach originally used in https://github.com/iov-one/weave:
3333

3434
> I spent quite a bit of time thinking about this issue while building weave... The other cosmos Sdk.
3535
> Basically I define a condition to be a type and format as human readable string with some binary data appended. This condition is hashed into an Address (again at 20 bytes). The use of this prefix makes it impossible to find a preimage for a given address with a different condition (eg ed25519 vs secp256k1).
36-
> This is explained in depth here <https://weave.readthedocs.io/en/latest/design/permissions.html>
37-
> And the code is here, look mainly at the top where we process conditions. <https://github.com/iov-one/weave/blob/master/conditions.go>
36+
> This is explained in depth here https://weave.readthedocs.io/en/latest/design/permissions.html
37+
> And the code is here, look mainly at the top where we process conditions. https://github.com/iov-one/weave/blob/master/conditions.go
3838
3939
And explained how this approach should be sufficiently collision resistant:
4040

@@ -60,7 +60,7 @@ In the issue we discussed various modifications:
6060

6161
### Requirements
6262

63-
* Support currently used tools - we don't want to break an ecosystem, or add a long adaptation period. Ref: <https://github.com/cosmos/cosmos-sdk/issues/8041>
63+
* Support currently used tools - we don't want to break an ecosystem, or add a long adaptation period. Ref: https://github.com/cosmos/cosmos-sdk/issues/8041
6464
* Try to keep the address length small - addresses are widely used in state, both as part of a key and object value.
6565

6666
### Scope

docs/architecture/adr-029-fee-grant-module.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ created to use it
148148

149149
## References
150150

151-
* Blog article describing initial work: <https://medium.com/regen-network/hacking-the-cosmos-cosmwasm-and-key-management-a08b9f561d1b>
152-
* Initial public specification: <https://gist.github.com/aaronc/b60628017352df5983791cad30babe56>
153-
* Original subkeys proposal from B-harvest which influenced this design: <https://github.com/cosmos/cosmos-sdk/issues/4480>
151+
* Blog article describing initial work: https://medium.com/regen-network/hacking-the-cosmos-cosmwasm-and-key-management-a08b9f561d1b
152+
* Initial public specification: https://gist.github.com/aaronc/b60628017352df5983791cad30babe56
153+
* Original subkeys proposal from B-harvest which influenced this design: https://github.com/cosmos/cosmos-sdk/issues/4480

docs/architecture/adr-030-authz-module.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ SDK users
244244

245245
## References
246246

247-
* Initial Hackatom implementation: <https://github.com/cosmos-gaians/cosmos-sdk/tree/hackatom/x/delegation>
248-
* Post-Hackatom spec: <https://gist.github.com/aaronc/b60628017352df5983791cad30babe56#delegation-module>
249-
* B-Harvest subkeys spec: <https://github.com/cosmos/cosmos-sdk/issues/4480>
247+
* Initial Hackatom implementation: https://github.com/cosmos-gaians/cosmos-sdk/tree/hackatom/x/delegation
248+
* Post-Hackatom spec: https://gist.github.com/aaronc/b60628017352df5983791cad30babe56#delegation-module
249+
* B-Harvest subkeys spec: https://github.com/cosmos/cosmos-sdk/issues/4480

docs/architecture/adr-031-msg-service.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This isn’t really documented anywhere and clients would need to know the inter
4141
of the Cosmos SDK to parse that value and return it to users.
4242

4343
Also, there may be cases where we want to use these return values programatically.
44-
For instance, <https://github.com/cosmos/cosmos-sdk/issues/7093> proposes a method for
44+
For instance, https://github.com/cosmos/cosmos-sdk/issues/7093 proposes a method for
4545
doing inter-module Ocaps using the `Msg` router. A well-defined return type would
4646
improve the developer UX for this approach.
4747

docs/architecture/adr-034-account-rekeying.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ Breaks the current assumed relationship between address and pubkeys as H(pubkey)
7373

7474
## References
7575

76-
* <https://www.algorand.com/resources/blog/announcing-rekeying>
76+
* https://www.algorand.com/resources/blog/announcing-rekeying

docs/architecture/adr-035-rosetta-api-support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,4 @@ Proposed
208208

209209
## References
210210

211-
* <https://www.rosetta-api.org/>
211+
* https://www.rosetta-api.org/

docs/architecture/adr-036-arbitrary-signature.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Backwards compatibility is maintained as this is a new message spec definition.
126126

127127
## References
128128

129-
1. <https://github.com/cosmos/ics/pull/33>
130-
2. <https://github.com/cosmos/cosmos-sdk/pull/7727#discussion_r515668204>
131-
3. <https://github.com/cosmos/cosmos-sdk/pull/7727#issuecomment-722478477>
132-
4. <https://github.com/cosmos/cosmos-sdk/pull/7727#issuecomment-721062923>
129+
1. https://github.com/cosmos/ics/pull/33
130+
2. https://github.com/cosmos/cosmos-sdk/pull/7727#discussion_r515668204
131+
3. https://github.com/cosmos/cosmos-sdk/pull/7727#issuecomment-722478477
132+
4. https://github.com/cosmos/cosmos-sdk/pull/7727#issuecomment-721062923

0 commit comments

Comments
 (0)