Docs search: let pages declare tags so related searches find them

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

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

評価

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

調査の方向性

Start with the search endpoint in app/docs/api/search/route.ts and the docs frontmatter schema in source.config.ts, where the blog's optional tags list shows the pattern to follow. Check how the search index is built and whether it can weight tags above body text. Done means a page is found by a tag that does not appear in its body, existing pages still validate, and pnpm test and pnpm build pass.

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

説明

documentation enhancement frontend help wanted

Copied from DeadantCo/answerLoops#109 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/480 — originally opened by @NathanTarbert on 2026-10-26

Problem

Docs search matches page titles and body text, but nothing else. Someone searching "webhook", "SSO" or "Ollama" gets results ordered only by where the word happens to appear, and a page can't say what else it should be found for. A visitor looking for "self-host" or "Docker" can miss the right page because it uses different words.

Where

  • app/docs/api/search/route.ts serves the search (built on Fumadocs' createFromSource).
  • source.config.ts defines the docs frontmatter schema.
  • The blog already has an optional tags list in its frontmatter (source.config.ts), which is a pattern to follow.

Suggested approach

  1. Add an optional tags field (a list of strings) to the docs frontmatter schema.
  2. Include the tags in the search index so they influence matching, and check whether the search library supports weighting them above body text.
  3. Add useful tags to the pages people search for most (the integrations, self-hosting and billing pages first).
  4. Check the result list shows enough context to tell similar pages apart.

Acceptance criteria

  • Docs frontmatter accepts an optional tags list, and existing pages still validate.
  • A search for a tag that doesn't appear in a page's body still finds that page.
  • At least the top 15 most-visited pages have sensible tags.
  • A test covers the search route returning a page by tag.
  • pnpm test and pnpm build pass.

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

主要言語
TypeScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

DeadantCo/answerLoopsdev のほかの issue

DeadantCo/answerLoopsdev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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