lvignoli / typst-action

Typst GitHub action
MIT License
53 stars 10 forks source link

Feature Request: Allow Users to Specify Custom Font Folder #5

Closed DeveloperPaul123 closed 1 year ago

DeveloperPaul123 commented 1 year ago

Typst supports custom font directories with the --font-dir argument. See this section of the documentation. It would be nice to allow users to specify a directory as part of the CI.

One option:


- name: Typst
  uses: lvignoli/typst-action@b2161f52657ae108c74b1ceaf20e5fd4024d77de
  with:
    source_file: |
      resume.typ
    font-dir: ".../fonts"
lvignoli commented 1 year ago

Yes indeed! I expert the CLI to gain many flags and subcommands in the future, so maybe the best idea would be to allow for an additional args field to pass extra options?

DeveloperPaul123 commented 1 year ago

Yes that seems reasonable

lvignoli commented 1 year ago

@DeveloperPaul123 #6 added support for global options, such as the specifying additional font paths with --font-path.

I am closing this now :)

DeveloperPaul123 commented 1 year ago

@lvignoli Thanks for doing that! Do you have an example of how those options need to be passed? I couldn't find any documentation on that in this repo or in the example repository.

Found it!