Skip to content

*: consistently use versioned URLs to docs#18986

Merged
benesch merged 1 commit intocockroachdb:masterfrom
benesch:docs-urls
Oct 4, 2017
Merged

*: consistently use versioned URLs to docs#18986
benesch merged 1 commit intocockroachdb:masterfrom
benesch:docs-urls

Conversation

@benesch
Copy link
Copy Markdown
Contributor

@benesch benesch commented Oct 3, 2017

Previously, some links to the docs website hardcoded the "stable"
version alias. Since the "stable" content is updated with every release,
the link points to increasingly irrelevant content for old binaries.
Instead, derive a docs "permalink" from the binary's version. (This
logic previously existed in sql/parser; this commit simply applies that
logic to docs URLs in other packages.)

Fix #18984.

@knz can you review? (The reviewers field is broken.)

@benesch benesch requested a review from a team October 3, 2017 17:05
@benesch benesch requested a review from a team as a code owner October 3, 2017 17:05
@benesch benesch requested review from a team October 3, 2017 17:05
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz
Copy link
Copy Markdown
Contributor

knz commented Oct 3, 2017

:lgtm:


Reviewed 8 of 8 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@mrtracy
Copy link
Copy Markdown
Contributor

mrtracy commented Oct 3, 2017

LGTM

Previously, some links to the docs website hardcoded the "stable"
version alias. Since the "stable" content is updated with every release,
the link points to increasingly irrelevant content for old binaries.
Instead, derive a docs "permalink" from the binary's version. (This
logic previously existed in sql/parser; this commit simply applies that
logic to docs URLs in other packages.)

Fix cockroachdb#18984.
@benesch
Copy link
Copy Markdown
Contributor Author

benesch commented Oct 4, 2017

TFTRs!

@benesch benesch merged commit 15e73fc into cockroachdb:master Oct 4, 2017
@benesch benesch deleted the docs-urls branch October 4, 2017 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants