Skip to content

docs: add ifeval for 7.10 release#839

Merged
bmorelli25 merged 1 commit intoelastic:masterfrom
bmorelli25:docs-prepare-7.10
Nov 4, 2020
Merged

docs: add ifeval for 7.10 release#839
bmorelli25 merged 1 commit intoelastic:masterfrom
bmorelli25:docs-prepare-7.10

Conversation

@bmorelli25
Copy link
Copy Markdown
Member

Summary

This PR fixes a documentation link that will break when 7.10 becomes the current stack version. It conditionally changes the link location of the Logs app docs based on the stack version defined in github.com/elastic/docs (here).

ifeval::["{branch}"=="7.9"]
APM to the {apm-app-ref}/xpack-logs.html[Logs app].
endif::[]
ifeval::["{branch}"!="7.9"]
APM to the {observability-guide}/monitor-logs.html[Logs app].
endif::[]

Admittedly, this isn't pretty, but it's the cleanest way to ensure this link continues to work for users who click it before and after the 7.10 release.

Tested by building locally with :branch: overridden to 7.9, 7.10, and master.

Target

This PR will need to be backported to 1.x.

Related issue

Follow-ups

After the release of 7.10, I will backport a fix that removes the conditional code.

@bmorelli25 bmorelli25 added the docs label Nov 3, 2020
@bmorelli25 bmorelli25 requested review from a team and axw November 3, 2020 22:03
@bmorelli25 bmorelli25 self-assigned this Nov 3, 2020
@ghost
Copy link
Copy Markdown

ghost commented Nov 3, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #839 opened]

  • Start Time: 2020-11-03T22:03:45.102+0000

  • Duration: 3 min 49 sec

@bmorelli25 bmorelli25 merged commit 9350186 into elastic:master Nov 4, 2020
@bmorelli25 bmorelli25 deleted the docs-prepare-7.10 branch November 4, 2020 15:43
bmorelli25 added a commit to bmorelli25/apm-agent-go that referenced this pull request Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants