Mount autoops-insights cloud docs in site navigation

オープン 初心者向け
#4,495 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, github, yaml

調査の方向性

まず config/navigation.yml と既存の AutoOps Elasticsearch エントリを読みます。ナビゲーションエントリで衝突しない path_prefix を設定し、ソース TOC をマウントする方法を確認します。autoops-insights://cloud に専用のプレフィックスで cloud TOC を追加します。既存の Elasticsearch エントリを維持したまま、ナビゲーションのプレフィックスチェッカーが cloud ページを受け入れることを確認します。

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

説明

enhancement needs triage
What is getting in your way?

elastic/autoops-insights is adding a second docs folder, generated/docs/cloud/, next to the existing generated/docs/elasticsearch/ catalog. docs-build on those PRs fails in NavigationPrefixChecker because the published navigation only mounts the Elasticsearch toc.

config/navigation.yml today:

# AutoOps insights
# https://github.com/elastic/autoops-insights/blob/main/generated/docs/elasticsearch/toc.yml
- toc: autoops-insights://elasticsearch
  path_prefix: reference/autoops-insights

The cloud pages link to each other (cloud/index.md and the insight page). The assembler cannot place autoops-insights://cloud/... in the navigation, and those paths are not phantoms, so the build errors:

Can not validate 'autoops-insights://cloud/incident.md' it's not declared in any link reference nor is it a phantom
Can not validate 'autoops-insights://cloud/index.md' it's not declared in any link reference nor is it a phantom

The same check fails for autoops-insights://cloud/notice.md on the notice PR.

What would you like instead?

Add a navigation entry for autoops-insights://cloud (source toc: generated/docs/cloud/toc.yml in elastic/autoops-insights).

The existing Elasticsearch entry already owns reference/autoops-insights, so the cloud prefix has to be chosen so it does not collide with that prefix. Two open content PRs are blocked on this:

Anything else?

Vale and the docs prose checks pass. Only the navigation prefix check fails. The cloud toc currently lists index.md plus one insight page (incident.md or notice.md, depending on which PR merges first).

主要言語
C#
スター
25
フォーク
44
平均マージ
17時間 21分
マージ済み PR(30日)
343

環境構築

はじめの一歩

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

elastic/docs-builder のほかの issue

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

似ている issue

C# の issue をもっと見る

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

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