Filter documentation via a query parameter for better browser interoperability

Đang mở
#2,026 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@torresga đang làm issue này rồi.

Từ ngày 5/10/2023.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
search, web-dev

Hướng nghiên cứu

Bắt đầu từ endpoint truy vấn DevDocs được nêu trong issue, https://devdocs.io/#q=%s, và theo dõi cách trình duyệt xử lý tham số q cũng như việc lọc tài liệu. Hoàn thành khi một URL có thể chứa doc=ruby3-1 để việc tìm kiếm chỉ được thực hiện trên bộ tài liệu được yêu cầu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Ruby
Star
39.7k
Fork
2.7k
Merge trung bình
5 ngày 10 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của freeCodeCamp/devdocs

Tất cả issue của freeCodeCamp/devdocs

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.