Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add branch attribute to resolve doc paths #535

Conversation

dedemorton
Copy link
Contributor

At some point, someone on the doc team added a branch attribute to the shared attributes file, but didn't realize that the versioned plugin reference does not set the branch attribute (because it's not tied to a specific release). This meant that links were not resolving correctly.

This PR sets the branch to current so all links will point to the current version of the docs.

This approach (pointing to current for everything) makes the linking in the versioned plugin reference a bit fragile. As links break (because we move stuff around or features go away), we'll need to fix them in the docs.

@jsvd Another option is to set the branch attribute individually in each generated plugin doc file to override the branch setting (the link would point to the version of the Logstash reference that was available when that version of the plugin was released). We don't have a huge number of links, so maybe fixing them manually is acceptable for now, but over time, this issue needs to be addressed.

Copy link
Contributor

@karenzone karenzone left a comment

Choose a reason for hiding this comment

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

LGTM

@dedemorton dedemorton merged commit e10482b into elastic:versioned_plugin_docs May 2, 2018
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.

2 participants