Filter documentation via a query parameter for better browser interoperability

未關閉
#2,026 5 則留言 0 個 reaction 已指派 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 小時
30 天內合併 PR
13

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

freeCodeCamp/devdocs 的其他 Issue

查看 freeCodeCamp/devdocs 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。