Skip to content

docs: Update all docs to prepare for v0.37#9243

Merged
thanethomson merged 36 commits intomainfrom
thane/9096-tmdocs
Aug 19, 2022
Merged

docs: Update all docs to prepare for v0.37#9243
thanethomson merged 36 commits intomainfrom
thane/9096-tmdocs

Conversation

@thanethomson
Copy link
Contributor

@thanethomson thanethomson commented Aug 13, 2022

Partially addresses #9096.

In addition to updating all links from master to main in the docs folder, this PR:

  • Removes the v0.35.x docs build
  • Adds a convenience Makefile target to serve the docs locally (make serve-docs)
  • Attempts to resolve OpenAPI link on docs.tendermint.com is static #7908
  • Updates some communication-oriented links (e.g. pointing people to discussions)
  • Updates most links to the old spec repo to instead point to this repo (I say "most" because many links have specific commit hashes, or are links to issues in the spec repo, so it's probably best to leave them as-is)

In order for the documentation to build correctly, we first need to merge the following PRs before we merge this one:

Important files to review in this PR:


PR checklist

  • Tests written/updated, or no tests needed
  • CHANGELOG_PENDING.md updated, or no changelog entry needed
  • Updated relevant documentation (docs/) and code comments, or no
    documentation updates needed

@thanethomson thanethomson changed the title docs: Update docs.tendermint.com build to prepare for v0.37 docs: Update all docs to prepare for v0.37 Aug 13, 2022
@thanethomson thanethomson marked this pull request as ready for review August 13, 2022 21:34
@thanethomson thanethomson requested a review from ebuchman as a code owner August 13, 2022 21:34
@thanethomson thanethomson requested review from a team August 13, 2022 21:34
@thanethomson thanethomson marked this pull request as draft August 13, 2022 21:38
Copy link
Contributor

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I think in some cases we need to stop using main and use a fixed tag or commit so it doesn't change and become broken

@tychoish
Copy link
Contributor

Why is this PR marked draft but the other two aren't?

I sort of feel like it would be more clear to do the s/master/main and then back port that and then do any other changes to the legacy branches, but this works two. I don't have a high degree of confidence in the docs build system, but I think that's fine as long as we watch/test each deploy and are ready to do reverts as needed.

@thanethomson
Copy link
Contributor Author

Why is this PR marked draft but the other two aren't?

As per the PR description, the other two PRs need to be merged first before this one. The way the docs build says that each of the other two branches are checked out and built as well whenever we push to main. Merging this first would mean we'd need another incidental update to the docs in main to trigger the docs deployment workflow.

@cason
Copy link

cason commented Aug 16, 2022

What is the policy to rename master -> main or master -> latest?

@thanethomson thanethomson force-pushed the thane/9096-tmdocs branch 2 times, most recently from 4cd8930 to 062dd36 Compare August 17, 2022 00:25
@thanethomson thanethomson marked this pull request as ready for review August 18, 2022 01:17
@thanethomson
Copy link
Contributor Author

What is the policy to rename master -> main or master -> latest?

After much back and forth, I decided to just go from master -> main. I considered a rename from master -> unstable, but it's probably less confusing overall to keep it main.

If we went with latest it wouldn't be built from main, it would be built from our latest release branch (i.e. "latest stable"). We can still opt to enable this if we really want (it's literally a one-line change in the docs/versions file). I'm still skeptical of the value of this because then we'd need to keep our docs/.vuepress/redirects file up-to-date. Every time there's any structural change to any document (docs site page, specification, ADR, RFC, etc.) we'd need to update that redirects file.

@thanethomson thanethomson mentioned this pull request Aug 18, 2022
39 tasks
the `master` branch. Any updates to files in this directory
on those branches will automatically trigger a website deployment. Under the hood,
the private website repository has a `make build-docs` target consumed by a CircleCI job in that repo.
There is a [GitHub Action](../.github/workflows/docs-deployment.yml) that is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe if this is rendered in the docs site it will be wrong, but it's fine if that's never the case. It's always safe to do absolute/full URL links

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is rendered, but it's not actively linked to from anywhere in the docs. The GitHub version of this doc is linked to from here.

Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
…link

Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
…/latest

Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
…ranch

Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
@thanethomson thanethomson merged commit daaf5d6 into main Aug 19, 2022
@thanethomson thanethomson deleted the thane/9096-tmdocs branch August 19, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done/Merged

Development

Successfully merging this pull request may close these issues.

OpenAPI link on docs.tendermint.com is static

4 participants