Missing hyperlinks to types and functions in external packages (Haddock on Hackage).

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
haskell
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với các báo cáo được liên kết trên Hackage cho monoidmap-aeson và so sánh chúng với các bản build cục bộ và các bản build của GitHub Actions bằng Haddock 2.30.0. Kiểm tra cách Hackage tạo các liên kết tài liệu cho monoidmap so với aeson và monoid-subclasses. Công việc được hoàn thành khi xác định được nguyên nhân của các liên kết bị thiếu và ghi lại hoặc triển khai một bản sửa lỗi để MonoidMap và fromList liên kết chính xác trên Hackage.

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

Mô tả

When Hackage generates Haddock documentation for monoidmap-aeson, it:

  • successfully generates hyperlinks to types and functions in packages such as aeson and monoid-subclasses.
  • but fails to generate hyperlinks to types and functions from the monoidmap package.

Logs and debugging

Is it possible to inspect logs for haddock generation on hackage? I can see logs here, but can't see an obvious cause for the hyperlink failure. (Though perhaps I'm looking in the wrong place?)

Versions

This has happened for all of the following versions:

I initially assumed that there must be something broken in the monoidmap-aeson package.

However, when I run cabal haddock locally on the same source code, or as part of CI (which uses Haddock version 2.30.0), everything works as expected, and all hyperlinks are generated successfully. 🤷🏻

Expected behaviour

Documentation built by GitHub actions (link) (Haddock version 2.30.0):

Image

Note that symbols like MonoidMap and fromList are successfully hyperlinked.

Actual behaviour

Documentation built on Hackage (link):

Image

Note that symbols like ToJSON, encode, and Sum are hyperlinked, but MonoidMap and fromList are not, and yet both of these are exported from the Data.MonoidMap module, as already published on hackage (see monoidmap:Data.MonoidMap).

Workarounds

I know it's possible to upload documentation manually, but I'd like to figure out if there's something I'm doing wrong that is preventing Hackage from successfully generating hyperlinks to monoidmap.

Ngôn ngữ chính
Haskell
Star
471
Fork
228
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
3

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 haskell/hackage-server

Tất cả issue của haskell/hackage-server

Issue tương tự

Thêm issue về Haskell

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.