Repository navigation
Conversation
- Don't search for packages relative to the checked package
- This required the packages to be in a `preview/<name>/<version>` directory
- Make the `typst/packages` repo optional
- Change how the path of the `typst/packages` repo is determined.
- Read `TYPST_PACKAGES_REPO` instead `PACKAGES_DIR` environment variable
- Don't fall back to `GITHUB_WORKSPACE` in `check` command
- Add CLI options for search locations and system fonts
- `--packages-repo` to specify the location of the `typst/packages` repository
- `--package-path` and `--package-cache-path` analogous to `typst-cli`
- Special value `unset` can be used to not search them at all
- `--ignore-system-fonts` analogous to `typst-cli`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #102
This fixes a few inconsistencies with how the
excludewas handled and also makes the world aware of ignored files.It also changes how the
Workspaceis set up:preview/<name>/<version>directorytypst/packagesrepo optionaltypst/packagesrepo is determined.TYPST_PACKAGES_REPOinsteadPACKAGES_DIRenvironment variableGITHUB_WORKSPACEincheckcommand--packages-repoto specify the location of thetypst/packagesrepository--package-pathand--package-cache-pathanalogous totypst-cliunsetcan be used to not search them at all--ignore-system-fontsanalogous totypst-clidotenvy::dotenv()call. I don't think that is currently used by us. And I want to remove as much implicit behavior, to make the package-check work in a predictable way by default. I'd also be fine with adding a--dot-envflag or similar, if you think that would pulls its weight.