Skip to content

Commit daaf5d6

Browse files
authored
docs: Update all docs to prepare for v0.37 (tendermint#9243)
* Update docs references from master to main Signed-off-by: Thane Thomson <[email protected]> * Update DOCS_README to reflect current reality Signed-off-by: Thane Thomson <[email protected]> * Update vuepress config with current versions and updated discussions link Signed-off-by: Thane Thomson <[email protected]> * Update generated docs versions Signed-off-by: Thane Thomson <[email protected]> * Update docs build to use temp folder instead of home Signed-off-by: Thane Thomson <[email protected]> * Document build-docs Makefile target Signed-off-by: Thane Thomson <[email protected]> * Add serve-docs Makefile target to serve local build of docs Signed-off-by: Thane Thomson <[email protected]> * Ensure 404 page is copied during docs build Signed-off-by: Thane Thomson <[email protected]> * Redirect /master/ to /main/ Signed-off-by: Thane Thomson <[email protected]> * Attempt to resolve tendermint#7908 Signed-off-by: Thane Thomson <[email protected]> * Update OpenAPI references from master to main Signed-off-by: Thane Thomson <[email protected]> * Update CHANGELOG references from master to main Signed-off-by: Thane Thomson <[email protected]> * Update Docker readme references from master to main Signed-off-by: Thane Thomson <[email protected]> * Update UPGRADING references from master to main Signed-off-by: Thane Thomson <[email protected]> * Update package-specific documentation references from master to main Signed-off-by: Thane Thomson <[email protected]> * Update spec references from master to main Signed-off-by: Thane Thomson <[email protected]> * Update all code comment references to docs site from master to main Signed-off-by: Thane Thomson <[email protected]> * Build v0.34.x as "latest" Signed-off-by: Thane Thomson <[email protected]> * Explicitly mark v0.34 docs as latest in version selector Signed-off-by: Thane Thomson <[email protected]> * Update all links from docs.tendermint.com/main to docs.tendermint.com/latest Signed-off-by: Thane Thomson <[email protected]> * ci: Redeploy docs on pushes to v0.34.x Signed-off-by: Thane Thomson <[email protected]> * Temporarily copy spec directory into docs while building Signed-off-by: Thane Thomson <[email protected]> * Add nav link to main and clearly mark as unstable Signed-off-by: Thane Thomson <[email protected]> * Revert to only publishing docs in nav for v0.34 and v0.33 with no latest Signed-off-by: Thane Thomson <[email protected]> * Link to docs.tendermint.com/v0.34 from RFCs Signed-off-by: Thane Thomson <[email protected]> * Rather just use main for all docs.tendermint.com references on main branch Signed-off-by: Thane Thomson <[email protected]> * Rename GitHub tree links from master to main Signed-off-by: Thane Thomson <[email protected]> * Update link for ABCI Rust client Signed-off-by: Thane Thomson <[email protected]> * Update github links from master to main Signed-off-by: Thane Thomson <[email protected]> * Update badges in root readme Signed-off-by: Thane Thomson <[email protected]> * Remove codecov badge since we do not use it any more Signed-off-by: Thane Thomson <[email protected]> * Remove Java and Kotlin tutorials Signed-off-by: Thane Thomson <[email protected]> * Remove specs from docs build Signed-off-by: Thane Thomson <[email protected]> * Migrate spec links to GitHub repo from docs site Signed-off-by: Thane Thomson <[email protected]> * Remove references to non-existent PEX reactor spec Signed-off-by: Thane Thomson <[email protected]> * Fix linting badge in README Signed-off-by: Thane Thomson <[email protected]> Signed-off-by: Thane Thomson <[email protected]>
1 parent 3cc9764 commit daaf5d6

File tree

89 files changed

+379
-1608
lines changed

Some content is hidden

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

89 files changed

+379
-1608
lines changed

.github/workflows/docs-deployment.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
- v0.34.x
1112
paths:
1213
- docs/**
1314
- spec/**
@@ -40,7 +41,7 @@ jobs:
4041
- uses: actions/upload-artifact@v3
4142
with:
4243
name: build-output
43-
path: ~/output/
44+
path: /tmp/tendermint-core-docs
4445

4546
deploy:
4647
name: Deploy to GitHub Pages

CHANGELOG.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ Special thanks to external contributors on this release: @james-ray, @fedekunze,
438438
- [abci] [\#5174](https://github.com/tendermint/tendermint/pull/5174) Remove `MockEvidence` in favor of testing with actual evidence types (`DuplicateVoteEvidence` & `LightClientAttackEvidence`) (@cmwaters)
439439
- [abci] [\#5191](https://github.com/tendermint/tendermint/pull/5191) Add `InitChain.InitialHeight` field giving the initial block height (@erikgrinaker)
440440
- [abci] [\#5227](https://github.com/tendermint/tendermint/pull/5227) Add `ResponseInitChain.app_hash` which is recorded in genesis block (@erikgrinaker)
441-
- [config] [\#5147](https://github.com/tendermint/tendermint/pull/5147) Add `--consensus.double_sign_check_height` flag and `DoubleSignCheckHeight` config variable. See [ADR-51](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-051-double-signing-risk-reduction.md) (@dongsam)
441+
- [config] [\#5147](https://github.com/tendermint/tendermint/pull/5147) Add `--consensus.double_sign_check_height` flag and `DoubleSignCheckHeight` config variable. See [ADR-51](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-051-double-signing-risk-reduction.md) (@dongsam)
442442
- [db] [\#5233](https://github.com/tendermint/tendermint/pull/5233) Add support for `badgerdb` database backend (@erikgrinaker)
443443
- [evidence] [\#4532](https://github.com/tendermint/tendermint/pull/4532) Handle evidence from light clients (@melekes)
444444
- [evidence] [#4821](https://github.com/tendermint/tendermint/pull/4821) Amnesia (light client attack) evidence can be detected, verified and committed (@cmwaters)
@@ -452,7 +452,7 @@ Special thanks to external contributors on this release: @james-ray, @fedekunze,
452452
- [rpc] [\#5017](https://github.com/tendermint/tendermint/pull/5017) Add `/check_tx` endpoint to check transactions without executing them or adding them to the mempool (@melekes)
453453
- [rpc] [\#5108](https://github.com/tendermint/tendermint/pull/5108) Subscribe using the websocket for new evidence events (@cmwaters)
454454
- [statesync] Add state sync support, where a new node can be rapidly bootstrapped by fetching state snapshots from peers instead of replaying blocks. See the `[statesync]` config section.
455-
- [evidence] [\#5361](https://github.com/tendermint/tendermint/pull/5361) Add LightClientAttackEvidence and refactor evidence lifecycle - for more information see [ADR-059](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-059-evidence-composition-and-lifecycle.md) (@cmwaters)
455+
- [evidence] [\#5361](https://github.com/tendermint/tendermint/pull/5361) Add LightClientAttackEvidence and refactor evidence lifecycle - for more information see [ADR-059](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-059-evidence-composition-and-lifecycle.md) (@cmwaters)
456456

457457
### IMPROVEMENTS
458458

@@ -532,7 +532,7 @@ This security release fixes:
532532
Tendermint 0.33.0 and above allow block proposers to include signatures for the
533533
wrong block. This may happen naturally if you start a network, have it run for
534534
some time and restart it **without changing the chainID**. (It is a
535-
[misconfiguration](https://docs.tendermint.com/master/tendermint-core/using-tendermint.html)
535+
[misconfiguration](https://docs.tendermint.com/v0.33/tendermint-core/using-tendermint.html)
536536
to reuse chainIDs.) Correct block proposers will accidentally include signatures
537537
for the wrong block if they see these signatures, and then commits won't validate,
538538
making all proposed blocks invalid. A malicious validator (even with a minimal
@@ -831,7 +831,7 @@ and a validator address plus a timestamp. Note we may remove the validator
831831
address & timestamp fields in the future (see ADR-25).
832832

833833
`lite2` package has been added to solve `lite` issues and introduce weak
834-
subjectivity interface. Refer to the [spec](https://github.com/tendermint/spec/blob/master/spec/consensus/light-client.md) for complete details.
834+
subjectivity interface. Refer to the [spec](https://github.com/tendermint/tendermint/blob/main/spec/consensus/light-client.md) for complete details.
835835
`lite` package is now deprecated and will be removed in v0.34 release.
836836

837837
### BREAKING CHANGES:
@@ -1192,7 +1192,7 @@ Special thanks to external contributors on this release: @jon-certik, @gracenoah
11921192
*August 28, 2019*
11931193
11941194
@climber73 wrote the [Writing a Tendermint Core application in Java
1195-
(gRPC)](https://github.com/tendermint/tendermint/blob/master/docs/guides/java.md)
1195+
(gRPC)](https://github.com/tendermint/tendermint/blob/main/docs/guides/java.md)
11961196
guide.
11971197
11981198
Special thanks to external contributors on this release:
@@ -1225,7 +1225,7 @@ Special thanks to external contributors on this release:
12251225
12261226
### FEATURES:
12271227
1228-
- [blockchain] [\#3561](https://github.com/tendermint/tendermint/issues/3561) Add early version of the new blockchain reactor, which is supposed to be more modular and testable compared to the old version. To try it, you'll have to change `version` in the config file, [here](https://github.com/tendermint/tendermint/blob/master/config/toml.go#L303) NOTE: It's not ready for a production yet. For further information, see [ADR-40](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-040-blockchain-reactor-refactor.md) & [ADR-43](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-043-blockchain-riri-org.md)
1228+
- [blockchain] [\#3561](https://github.com/tendermint/tendermint/issues/3561) Add early version of the new blockchain reactor, which is supposed to be more modular and testable compared to the old version. To try it, you'll have to change `version` in the config file, [here](https://github.com/tendermint/tendermint/blob/main/config/toml.go#L303) NOTE: It's not ready for a production yet. For further information, see [ADR-40](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-040-blockchain-reactor-refactor.md) & [ADR-43](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-043-blockchain-riri-org.md)
12291229
- [mempool] [\#3826](https://github.com/tendermint/tendermint/issues/3826) Make `max_msg_bytes` configurable(@bluele)
12301230
- [node] [\#3846](https://github.com/tendermint/tendermint/pull/3846) Allow replacing existing p2p.Reactor(s) using [`CustomReactors`
12311231
option](https://godoc.org/github.com/tendermint/tendermint/node#CustomReactors).
@@ -1542,7 +1542,7 @@ Special thanks to external contributors on this release:
15421542
- [libs/db] [\#3611](https://github.com/tendermint/tendermint/issues/3611) Conditional compilation
15431543
* Use `cleveldb` tag instead of `gcc` to compile Tendermint with CLevelDB or
15441544
use `make build_c` / `make install_c` (full instructions can be found at
1545-
https://docs.tendermint.com/master/introduction/install.html#compile-with-cleveldb-support)
1545+
<https://docs.tendermint.com>)
15461546
* Use `boltdb` tag to compile Tendermint with bolt db
15471547
- [node] [\#3362](https://github.com/tendermint/tendermint/issues/3362) Return an error if `persistent_peers` list is invalid (except
15481548
when IP lookup fails)
@@ -1766,7 +1766,7 @@ more details.
17661766
- [rpc] [\#3269](https://github.com/tendermint/tendermint/issues/2826) Limit number of unique clientIDs with open subscriptions. Configurable via `rpc.max_subscription_clients`
17671767
- [rpc] [\#3269](https://github.com/tendermint/tendermint/issues/2826) Limit number of unique queries a given client can subscribe to at once. Configurable via `rpc.max_subscriptions_per_client`.
17681768
- [rpc] [\#3435](https://github.com/tendermint/tendermint/issues/3435) Default ReadTimeout and WriteTimeout changed to 10s. WriteTimeout can increased by setting `rpc.timeout_broadcast_tx_commit` in the config.
1769-
- [rpc/client] [\#3269](https://github.com/tendermint/tendermint/issues/3269) Update `EventsClient` interface to reflect new pubsub/eventBus API [ADR-33](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-033-pubsub.md). This includes `Subscribe`, `Unsubscribe`, and `UnsubscribeAll` methods.
1769+
- [rpc/client] [\#3269](https://github.com/tendermint/tendermint/issues/3269) Update `EventsClient` interface to reflect new pubsub/eventBus API [ADR-33](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-033-pubsub.md). This includes `Subscribe`, `Unsubscribe`, and `UnsubscribeAll` methods.
17701770
17711771
* Apps
17721772
- [abci] [\#3403](https://github.com/tendermint/tendermint/issues/3403) Remove `time_iota_ms` from BlockParams. This is a
@@ -1819,7 +1819,7 @@ more details.
18191819
- [blockchain] [\#3358](https://github.com/tendermint/tendermint/pull/3358) Fix timer leak in `BlockPool` (@guagualvcha)
18201820
- [cmd] [\#3408](https://github.com/tendermint/tendermint/issues/3408) Fix `testnet` command's panic when creating non-validator configs (using `--n` flag) (@srmo)
18211821
- [libs/db/remotedb/grpcdb] [\#3402](https://github.com/tendermint/tendermint/issues/3402) Close Iterator/ReverseIterator after use
1822-
- [libs/pubsub] [\#951](https://github.com/tendermint/tendermint/issues/951), [\#1880](https://github.com/tendermint/tendermint/issues/1880) Use non-blocking send when dispatching messages [ADR-33](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-033-pubsub.md)
1822+
- [libs/pubsub] [\#951](https://github.com/tendermint/tendermint/issues/951), [\#1880](https://github.com/tendermint/tendermint/issues/1880) Use non-blocking send when dispatching messages [ADR-33](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-033-pubsub.md)
18231823
- [lite] [\#3364](https://github.com/tendermint/tendermint/issues/3364) Fix `/validators` and `/abci_query` proxy endpoints
18241824
(@guagualvcha)
18251825
- [p2p/conn] [\#3347](https://github.com/tendermint/tendermint/issues/3347) Reject all-zero shared secrets in the Diffie-Hellman step of secret-connection
@@ -2517,7 +2517,7 @@ Special thanks to external contributors on this release:
25172517
This release is mostly about the ConsensusParams - removing fields and enforcing MaxGas.
25182518
It also addresses some issues found via security audit, removes various unused
25192519
functions from `libs/common`, and implements
2520-
[ADR-012](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-012-peer-transport.md).
2520+
[ADR-012](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-012-peer-transport.md).
25212521
25222522
BREAKING CHANGES:
25232523
@@ -2598,7 +2598,7 @@ BREAKING CHANGES:
25982598
- [abci] Added address of the original proposer of the block to Header
25992599
- [abci] Change ABCI Header to match Tendermint exactly
26002600
- [abci] [\#2159](https://github.com/tendermint/tendermint/issues/2159) Update use of `Validator` (see
2601-
[ADR-018](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-018-ABCI-Validators.md)):
2601+
[ADR-018](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-018-ABCI-Validators.md)):
26022602
- Remove PubKey from `Validator` (so it's just Address and Power)
26032603
- Introduce `ValidatorUpdate` (with just PubKey and Power)
26042604
- InitChain and EndBlock use ValidatorUpdate
@@ -2620,7 +2620,7 @@ BREAKING CHANGES:
26202620
- [state] [\#1815](https://github.com/tendermint/tendermint/issues/1815) Validator set changes are now delayed by one block (!)
26212621
- Add NextValidatorSet to State, changes on-disk representation of state
26222622
- [state] [\#2184](https://github.com/tendermint/tendermint/issues/2184) Enforce ConsensusParams.BlockSize.MaxBytes (See
2623-
[ADR-020](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-020-block-size.md)).
2623+
[ADR-020](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-020-block-size.md)).
26242624
- Remove ConsensusParams.BlockSize.MaxTxs
26252625
- Introduce maximum sizes for all components of a block, including ChainID
26262626
- [types] Updates to the block Header:
@@ -2631,7 +2631,7 @@ BREAKING CHANGES:
26312631
- [consensus] [\#2203](https://github.com/tendermint/tendermint/issues/2203) Implement BFT time
26322632
- Timestamp in block must be monotonic and equal the median of timestamps in block's LastCommit
26332633
- [crypto] [\#2239](https://github.com/tendermint/tendermint/issues/2239) Secp256k1 signature changes (See
2634-
[ADR-014](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-014-secp-malleability.md)):
2634+
[ADR-014](https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-014-secp-malleability.md)):
26352635
- format changed from DER to `r || s`, both little endian encoded as 32 bytes.
26362636
- malleability removed by requiring `s` to be in canonical form.
26372637
@@ -3431,7 +3431,7 @@ Also includes the Grand Repo-Merge of 2017.
34313431
BREAKING CHANGES:
34323432
34333433
- Config and Flags:
3434-
- The `config` map is replaced with a [`Config` struct](https://github.com/tendermint/tendermint/blob/master/config/config.go#L11),
3434+
- The `config` map is replaced with a [`Config` struct](https://github.com/tendermint/tendermint/blob/main/config/config.go#L11),
34353435
containing substructs: `BaseConfig`, `P2PConfig`, `MempoolConfig`, `ConsensusConfig`, `RPCConfig`
34363436
- This affects the following flags:
34373437
- `--seeds` is now `--p2p.seeds`

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ will indicate their support with a heartfelt emoji.
2626

2727
If the issue would benefit from thorough discussion, maintainers may
2828
request that you create a [Request For
29-
Comment](https://github.com/tendermint/spec/tree/master/rfc)
29+
Comment](https://github.com/tendermint/tendermint/tree/main/docs/rfc)
3030
in the Tendermint spec repo. Discussion
3131
at the RFC stage will build collective understanding of the dimensions
3232
of the problems and help structure conversations around trade-offs.

DOCKER/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DockerHub tags for official releases are [here](https://hub.docker.com/r/tenderm
66

77
Official releases can be found [here](https://github.com/tendermint/tendermint/releases).
88

9-
The Dockerfile for tendermint is not expected to change in the near future. The master file used for all builds can be found [here](https://raw.githubusercontent.com/tendermint/tendermint/master/DOCKER/Dockerfile).
9+
The Dockerfile for Tendermint is not expected to change in the near future. The main file used for all builds can be found [here](https://raw.githubusercontent.com/tendermint/tendermint/main/DOCKER/Dockerfile).
1010

1111
Respective versioned files can be found <https://raw.githubusercontent.com/tendermint/tendermint/vX.XX.XX/DOCKER/Dockerfile> (replace the Xs with the version number).
1212

@@ -20,9 +20,9 @@ Respective versioned files can be found <https://raw.githubusercontent.com/tende
2020

2121
Tendermint Core is Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine, written in any programming language, and securely replicates it on many machines.
2222

23-
For more background, see the [the docs](https://docs.tendermint.com/master/introduction/#quick-start).
23+
For more background, see the [the docs](https://docs.tendermint.com/main/introduction/#quick-start).
2424

25-
To get started developing applications, see the [application developers guide](https://docs.tendermint.com/master/introduction/quick-start.html).
25+
To get started developing applications, see the [application developers guide](https://docs.tendermint.com/main/introduction/quick-start.html).
2626

2727
## How to use this image
2828

@@ -37,7 +37,7 @@ docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint node --proxy_app
3737

3838
## Local cluster
3939

40-
To run a 4-node network, see the `Makefile` in the root of [the repo](https://github.com/tendermint/tendermint/blob/master/Makefile) and run:
40+
To run a 4-node network, see the `Makefile` in the root of [the repo](https://github.com/tendermint/tendermint/blob/main/Makefile) and run:
4141

4242
```sh
4343
make build-linux
@@ -49,8 +49,8 @@ Note that this will build and use a different image than the ones provided here.
4949

5050
## License
5151

52-
- Tendermint's license is [Apache 2.0](https://github.com/tendermint/tendermint/blob/master/LICENSE).
52+
- Tendermint's license is [Apache 2.0](https://github.com/tendermint/tendermint/blob/main/LICENSE).
5353

5454
## Contributing
5555

56-
Contributions are most welcome! See the [contributing file](https://github.com/tendermint/tendermint/blob/master/CONTRIBUTING.md) for more information.
56+
Contributions are most welcome! See the [contributing file](https://github.com/tendermint/tendermint/blob/main/CONTRIBUTING.md) for more information.

Makefile

+17-3
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,30 @@ DESTINATION = ./index.html.md
285285
### Documentation ###
286286
###############################################################################
287287

288+
DOCS_OUTPUT?=/tmp/tendermint-core-docs
289+
290+
# This builds a docs site for each branch/tag in `./docs/versions` and copies
291+
# each site to a version prefixed path. The last entry inside the `versions`
292+
# file will be the default root index.html
288293
build-docs:
289294
@cd docs && \
290295
while read -r branch path_prefix; do \
291296
(git checkout $${branch} && npm ci && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
292-
mkdir -p ~/output/$${path_prefix} ; \
293-
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
294-
cp ~/output/$${path_prefix}/index.html ~/output ; \
297+
mkdir -p $(DOCS_OUTPUT)/$${path_prefix} ; \
298+
cp -r .vuepress/dist/* $(DOCS_OUTPUT)/$${path_prefix}/ ; \
299+
cp $(DOCS_OUTPUT)/$${path_prefix}/index.html $(DOCS_OUTPUT) ; \
300+
cp $(DOCS_OUTPUT)/$${path_prefix}/404.html $(DOCS_OUTPUT) ; \
295301
done < versions ;
296302
.PHONY: build-docs
297303

304+
# Build and serve the local version of the docs on the current branch from
305+
# http://0.0.0.0:8080
306+
serve-docs:
307+
@cd docs && \
308+
npm ci && \
309+
npm run serve
310+
.PHONY: serve-docs
311+
298312
sync-docs:
299313
cd ~/output && \
300314
echo "role_arn = ${DEPLOYMENT_ROLE_ARN}" >> /root/.aws/config ; \

0 commit comments

Comments
 (0)