Filter documentation via a query parameter for better browser interoperability

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

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

@torresga がすでに取り組んでいます。

2023年10月5日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby
領域
search, web-dev

調査の方向性

Issue に示されている DevDocs のクエリエンドポイント https://devdocs.io/#q=%s から始め、ブラウザーが q パラメーターとドキュメントのフィルタリングをどのように処理するかを追跡します。URL に doc=ruby3-1 を含めることで、要求されたドキュメントセットだけを対象に検索が実行されれば完了です。

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

説明

feature

Feature request

Filter documentation via an optional query parameter

Summary

DevDocs makes it really easy to filter on a specific set of docs in the UI, which is great. I use this in conjunction with browser site search to pass queries directly to the DevDocs search endpoint to skip landing on the main page first. However, there is one disadvantage: I can't seem to filter the documentation from the search endpoint directly. If want to search for a ruby-specific method from site search, I need to land on the main DevDocs page and filter manually.

Browsers are embracing custom site search functionality to allow quick access to search endpoints that can be invoked via a shortcut and this has become an important part of my workflow. It would be great to have documentation filtering in the search API to improve the interoperability of DevDocs search.

Examples

The query endpoint looks like this:

https://devdocs.io/#q=%s where %s is replaced with my query string

It would be great to be able to do something like this to search only within Ruby 3.1:
https://devdocs.io/#q=%s&doc=ruby3-1

主要言語
Ruby
スター
39.7k
フォーク
2.7k
平均マージ
5日 10時間
マージ済み PR(30日)
13

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

freeCodeCamp/devdocs のほかの issue

freeCodeCamp/devdocs の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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