typst / packages

Packages for Typst.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keywords for Packages

johannes-wolf opened this issue · comments

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).

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

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.

We can add that too

I fixed the search bug.

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

I am fine with keywords 👍.

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!)

(The homepage field is also added.)