Add option to configure branch for github_edit_link
Chưa có ai nhận issue này.
Đá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
- 35/100
Hướng nghiên cứu
Start by locating the implementation and tests for the github_edit_link tag, then inspect how _config.yml values are read. Add support for a github_edit_branch setting and verify that generated edit links use the configured branch while preserving the existing default behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The github_edit_link tag currently generates edit links that point to the gh-pages branch by default. This is not ideal when using other default branches like main.
It would be helpful to have an option to configure the target branch for github_edit_link, so it can work properly for repositories using non-gh-pages default branches.
Proposal
Add a configuration option such as github_edit_branch to _config.yml:
yaml
github_edit_branch: main
This will make github_edit_link generate links pointing to that branch.
The user can then set this to main, master or other branches as needed.
This will provide more flexibility when using github_edit_link for repositories with different branch setups.
Benefits
- Works for non-gh-pages default branch
- Easy configuration in _config.yml
- More flexibility for users
- Links point to correct branch for editing
Please consider adding this option in a future release. Let me know if any clarification is needed!
- Ngôn ngữ chính
- Ruby
- Star
- 309
- Fork
- 159
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của jekyll/github-metadata
-
jekyll-github-metadata calls Pages API for private repos with Pages disabled, causing fatal 403Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
jekyll/github-metadata#302 ·
-
PageĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
jekyll/github-metadata#294 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
jekyll/github-metadata#290 · 1 bình luận ·
-
Limit and/or Cache API requests to avoid: 403 - API rate limit exceeded for installation ID ___Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
jekyll/github-metadata#266 · 6 bình luận · 4 reaction ·
-
Latest Commit Date for FileĐang mởpinned
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
jekyll/github-metadata#130 · 5 bình luận · 6 reaction ·
Tất cả issue của jekyll/github-metadata
Issue tương tự
-
Remove sidekiq trace filteringĐang mởinstrumentation-sidekiq
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
open-telemetry/opentelemetry-ruby-contrib#2735 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ruby/securerandom#92 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
we-promise/sure#5902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
avo-hq/avo#5065 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày