DocsV3: Update plugin docgen tooling to work with new MD files and structure

オープン
#110 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
github-actions, ruby

調査の方向性

plugindocs.rb と reference_docs.yml GitHub Action から始め、main/9.x と 8.x 以前のブランチでプラグインのドキュメントがどのように生成されるかを比較します。現在の動作について、リンクされている workaround と関連する issue を確認します。新しい MD ベースのブランチでツールがプラグインのドキュメントを生成し、古い ASCIIDOC ブランチに対する同等のサポートも維持できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

LSR

Current stack-versioned plugin docs tooling generates plugin docs for inclusion in the Logstash Reference (LSR). I broke plugin doc generation (for main and 9.0) when I replaced asciidoc source files in the logstash repo with the new MD source files. Tooling is looking for logstash/docs/index.asciidoc, but it's no longer there.

Line 1574 Can't find --doc /home/runner/work/logstash-docs/logstash-docs/logstash/docs/index.asciidoc

Update:
We have work-arounds that let us generate plugin docs PRs after:

Decisions
  • Where should conversion happen? Source? Enrichment? End-of-pipeline?
  • When to migrate source content?
  • We'll likely need a phased approach (short-term, mid-term, long-term) to deal with complexity and volume. What does that look like?
Considerations
  • Need ability to support both MD (for 9.0+) and ASCIIDOC (for 8.x and earlier).
  • File location and Include path settings are different for 9.0+ and 8.x.
  • Link format varies between ADOC and MD, and so far, has required manual cleanup
Tooling affected
Related and relevant
Requirements
  • Stack-versioned docs tooling should be modified to generate plugin docs for main 9.0, and 9.x branches
  • Stack-versioned docs tooling should maintain existing (or equivalent) functionality to build plugin docs for 8.x series and earlier branches.
主要言語
Ruby
スター
4
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

elastic/docs-tools のほかの issue

elastic/docs-tools の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。