-
Notifications
You must be signed in to change notification settings - Fork 4
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
Plan for Logstash documentation migration #366
Comments
Thanks for writing this up, @bmorelli25. I'd like to work with you to clarify some info in your Summary and Problem statement sections. I'm convinced that Option 3 is the way to go. |
Meeting with @karenzone 2/3/25I met with @karenzone today to discuss the Logstash/V3 migration, and we agree that option three is likely attainable within the next few weeks. Option three means that we will maintain the existing logstash-docs automation and layer the adoc-to-md migration tool on top of it. We’re planning to sync with @siamakp-elastic and @lcawl to ensure we're aligned and can move forward smoothly. In the meantime, there are some tasks that Karen and I will get started on. Logstash Versioned Plugin Reference (VPR)The VPR docs currently live in the versioned_plugin_docs branch of the elastic/logstash-docs repo. This content is updated automatically, and any new files/dirs are wiped when this happens. ExampleI’ve migrated a point-in-time snapshot of the VPR docs and published them here. These docs can be built using docs-builder. To build them, clone the docs-builder repo and run:
Short term to-dos:
Logstash Reference (LSR)The LSR docs consist of two parts:
@bmorelli25 is testing building this content from a new index.asciidoc file in the logstash-docs repo. This is causing quite a few errors, but I’ll continue investigating this in the following branch: logstash-docs. To-dos:
Current plugin docs workflowRight now, Karen's workflow with the Logstash plugin docs (both VPR and LSR Plugins) is:
Proposed plugin docs workflowThe goal of the above tasks is to get to the following workflow:
Visualizedgraph LR
subgraph "Automation Process"
A[Automation creates PR] --> B{Which Branch?}
B -->|main| C[LSR Plugins]
B -->|versioned_plugin_docs| D[VPR]
end
subgraph "Review Process"
C --> E[Karen Reviews]
D --> E
E --> F{Builds Successfully?}
F -->|No| G[Fix Issues]
G --> E
F -->|Yes| H[Merge PR]
end
subgraph "Post-Merge Process"
H --> I[Post-commit Action]
I --> J[Build with docs-builder]
J --> K{Build Successful?}
K -->|No| L[Fix Build]
L --> J
K -->|Yes| M[Commit to logstash-md repo]
end
subgraph "Deployment"
M --> N[V3 Assembler]
N --> O[Deploy to Docs Site]
end
|
@bmorelli25: To clarify, during Doc Freeze and migration, we can still work on plugin docs, and merge the content from plugin docgen to these branches:
|
Yes. Unlike other repos, you can also merge to |
Talked with @reakaleek. Notes:
Overall, it sounds very doable. |
Hi! Not sure if these are the existing syntax errors mentioned in earlier comments, but while addressing errors in the migrated reference content, the codeblock in the JDBC static filter plugin generated lots of this error: " Both inline and classic callouts are not supported". It's due to the Ideally it would be fixed in the source files so it doesn't reappear when the content is re-generated. If you want me to create an issue in the logstash or logstash-docs repo to track that request, just lmk! |
Thanks for this cleanup work, @lcawl. |
@karenzone, @lcawl, and I met to discuss Logstash/V3 today. Here are some notes and recommendations.
Summary
Logstash documentation consists of two main content sets:
The
logstash-docs
repo acts as a middle-ground repository that houses all built AsciiDoc documentation for Logstash plugins.The problem
The current automation for Logstash documentation is error-prone and time-consuming to manage. Rewriting this automation is necessary, but neither docs-eng nor logstash-eng has the resources to accomplish this by March 25. A practical plan is needed to determine what can realistically be done by this deadline.
Options
1. Leave all Logstash docs behind
We would not migrate Logstash docs to V3 at this time. Instead, we would connect the Logstash AsciiDoc content with the V3 experience and modify the legacy AsciiDoc tooling to allow this functionality. This option avoids additional V3 engineering work but requires tooling on the unknown Asciidoc build side. It is also likely to result in a poor user experience.
I'm really worried about this option because I don't know what is required on the Asciidoc side. Removing all of the other
main
andmaster
docs will really bork up the Asciidoc build. There be 🐉's and I'm afraid this will turn into to way more work than we think.2. Treat LSR and VPR as separate content sets (migrate some)
This approach would migrate the LSR to V3 without the plugin content and leave the VPR in AsciiDoc. While this simplifies the migration for part of the Logstash docs, it significantly degrades the user experience since Logstash is not functional without its plugins.
I see no win with this option. It's a poor user experience and combines all of the cons from both options 1 and 3.
3. Migrate both content sets repeatedly with adoc-to-md
toc.yml
files:toc.yml
.adoc-to-md
conversion script after each commit to the logstash-docs repo.Differs a complete automation rewrite, offers a good user experience, and it might actually not be that difficult to implement.
I think it's worth further exploring option 3
Related
The text was updated successfully, but these errors were encountered: