-
Notifications
You must be signed in to change notification settings - Fork 62
GH: Add action to build 9.x series plugin docs #1826
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
Conversation
bundle exec ruby plugindocs.rb --skip-existing --output-path ../logstash-docs ../logstash/plugins_version_docs.json | ||
- name: Build docs | ||
working-directory: ./logstash | ||
run: ../docs/build_docs --asciidoctor --respect_edit_url_overrides --doc docs/index.asciidoc --resource=../logstash-docs/docs/ --chunk 1 # sub in new V3 build command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sub in new V3 build command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're still building this repo in ADOC, so this shouldn't be a V3 command.
Tweaked in latest commit.
@bmorelli25 For evaluation/consideration. |
@jsvd This is the idea I mentioned in our 1:1. Will you please take a look and see if there's potential here? |
bundle exec ruby plugindocs.rb --skip-existing --output-path ../logstash-docs ../logstash/plugins_version_docs.json | ||
- name: Build docs | ||
working-directory: ./logstash-docs | ||
run: ../docs/build_docs --asciidoctor --respect_edit_url_overrides --doc docs/index.asciidoc --chunk 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karenzone Bet this path needs adjusting (/lsr/
)
bundle exec ruby plugindocs.rb --skip-existing --output-path ../logstash-docs ../logstash/plugins_version_docs.json | ||
- name: Build docs | ||
working-directory: ./logstash-docs | ||
run: ../docs/build_docs --asciidoctor --respect_edit_url_overrides --doc docs/index.asciidoc --chunk 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: ../docs/build_docs --asciidoctor --respect_edit_url_overrides --doc docs/index.asciidoc --chunk 1 | |
run: ../docs/build_docs --asciidoctor --respect_edit_url_overrides --doc docs/lsr/index.asciidoc --chunk 1 |
Can we backport #1817 to 9.0?
|
WRT backport: |
Closing to avoid confusion. |
Related: elastic/docs-tools#110
Heavy lifting for plugin generation is handled by plugindocs.rb. The GitHub action is where we reach out to the
logstash
repo looking for LSR doc files.Backstory
Until recently, the generated Logstash plugins docs were pulled in with
:include:
statements and built as part of the Logstash Reference (logstash
repo). File format = asciidoc.With the introduction of the new Elastic doc build system, we converted the Logstash Reference docs source to MD. This change breaks our ability to generate Logstash plugin docs for
9.x
andmain
.This PR preserves existing GitHub action behavior for 8.x and earlier doc generation, and adds a new GitHub action to generate docs for
9.x
and.main
.New: "Plugin docgen for specified 9.0 and later"
Renamed: "Plugin docgen for specified 8.x and earlier"
Note: Both GitHub actions still generate output in ADOC format. For
9.0
and later, the migration to MD will be a subsequent process. Check out [Research] Use a GitHub action as a wrapper for migration tooling #10 for an idea.