racket / racket-pkg-website

A frontend for the Racket Package Catalog.
Other
9 stars 15 forks source link

Packages display docs for implied packages #49

Closed cfinegan closed 6 years ago

cfinegan commented 6 years ago

This pull request edits the HTML rendering for the package table so that packages which imply other packages also imply the documentation of the those packages. So if (for example) the package gui implies the package gui-docs, then the table listing for gui should no longer complain that gui needs documentation (as long as gui-docs contains some documentation).

This pull request pulls the implied packages field from all-pkgs.json, and thus requires racket/pkg-index#13 to work.

The code for appending the current package's docs to its implied packages' docs may be slightly incorrect. I'm assuming that the item returned by (package-docs pkg) is an atomic item representing a single doc, as opposed to a list of docs. If the item returned by package-docs is actually a list of doc items, then it would necessary to change the call to list* on line 636 so that it calls append instead.