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

TEST crossdoc links for output-elasticsearch #1775

Closed
wants to merge 1 commit into from

Conversation

karenzone
Copy link
Contributor

@karenzone karenzone commented Dec 26, 2024

TEST: DO NOT MERGE

Related: elastic/docs-tools#42

I've tested docs locally for logstash-plugins/logstash-output-elasticsearch#1197.
A local test can catch:

  • some improper asciidoc formatting (if it's serious enough to prevent a successful build).
    Example: Using the same anchor text in more than one place.
  • missing include or referenced files or bad links (within the plugin doc or from the Logstash Reference)

After we get a successful build, we can PREVIEW the doc to spot other formatting errors--not bad enough to fail, but ugly.
Example: Tables or bulleted lists not rendering properly.

A full doc build against all of elastic.co docs is the best way to be sure that we don't have any hidden cross-doc links coming from other docs. Example: Elasticsearch Reference linking to the elasticsearch output plugin. Fortunately, CI can handle this test case, hence this PR.

Obviously, if we have bad links coming from other docs, those links will need to be updated in the other doc(s).

Note to self @karenzone: Remind people that this ad hoc build strategy doesn't fully test docs generated with VPR builds. That is, even with this testing, we could still have introduced potential failures.

About this test

This PR is a result of manually copying the body of the plugin doc from logstash-plugins/logstash-output-elasticsearch#1197, and pasting it into the existing generated output in logstash-docs. Then I let CI do the testing against our full Elastic.co doc set.

@karenzone karenzone assigned karenzone and unassigned karenzone Dec 26, 2024
Copy link
Contributor Author

@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.

@karenzone
Copy link
Contributor Author

Test complete.
Closing without merge so that the usual docgen workflow can do its job.

@karenzone karenzone closed this Dec 26, 2024
@karenzone karenzone deleted the TEST-1197-es-output branch December 26, 2024 20:53
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.

1 participant