typst / packages

Packages for Typst.
Apache License 2.0
544 stars 350 forks source link

Keywords for Packages #67

Closed johannes-wolf closed 1 year ago

johannes-wolf commented 1 year ago

It would be nice to be able to supply a list of tags in typst.toml. Those tags could then be used for searching for packages on the typst "Packages" page. Otherwise everything has to be included in the description, and it looks like the description is not updated for different versions on the Package page (I am not sure though, but entering "plot" into the filter bar should display "CeTZ" because it has the word "plotting" in its description).

laurmaedje commented 1 year ago

We can add tags, but the description search thing seems to be just a bug.

Leedehai commented 1 year ago

Now that we are on this, wondering if typst.toml can have one more field called "homepage" (or just "issues") that holds a URL like Node's package.json, and show a link icon to that URL on https://typst.app/docs/packages? That way, users know where to file issues to the package. Otherwise, I guess some issues that should be filed on the package's repo will be filed here.

laurmaedje commented 1 year ago

We can add that too

laurmaedje commented 1 year ago

I fixed the search bug.

laurmaedje commented 1 year ago

@johannes-wolf Maybe keywords is a clearer name than tags? Would that work for you, or where you thinking of something else?

johannes-wolf commented 1 year ago

I am fine with keywords :+1:.

laurmaedje commented 1 year ago

This is implemented now (both here and in the frontend search). You can also make a PR to update the keywords and description of your existing package without releasing a new version as it is non-breaking and not problematic if a user doesn't have the most recent changes in their cache (exception: your package code reads its own manifest!)

laurmaedje commented 1 year ago

(The homepage field is also added.)