@@ -37,29 +37,36 @@ larger than they need to be.
3737
3838There are two solutions to limit this problem: excluding files from the archive
3939(using the ` exclude ` key in your [ package manifest] [ manifest ] ), or simply not
40- commiting the files to this repository in the first place.
40+ committing the files to this repository in the first place.
4141
4242To know which strategy to apply to each file, we can split them in three groups:
4343
44- - Files that are necessary for the package to work. If any of these files are
45- removed, the package would break for the end user. This includes the manifest
46- file, main Typst file and its dependencies, and in case of a template package,
47- any file in the template directory.
48- - Files that are necessary for the package to be displayed correctly on Typst
49- Universe. This includes the README, and any files that are linked from there
50- (manuals, examples, illustrations, etc.). These files can easily be accessed
51- by opening the package README.
52- - Other files. This generally includes test files, build scripts, but also
53- examples or manuals that are not linked in the README. These files would be
54- almost impossible to access for the final user, unless they browse this GitHub
55- repository or their local package cache.
56-
57- The first two groups should be commited to this repository, but files that are
58- not strictly necessary for the package to work (the second group) should be
59- excluded in ` typst.toml ` . The third group should simply not be copied here, or
60- you should consider linking them from your README so that they are easily
61- discoverable. A good example showing how to link examples and a manual is
62- [ CeTZ] [ cetz ] .
44+ __ 1. Required files__ \
45+ Files that are necessary for the package to work. If any of these files are
46+ removed, the package would break for the end user. This includes the manifest
47+ file, main Typst file and its dependencies, and in case of a template package,
48+ any file in the template directory.
49+
50+ __ 2. Documentation files__ \
51+ Files that are necessary for the package to be displayed correctly on Typst
52+ Universe. This includes the README, and any files that are linked from there
53+ (manuals, examples, illustrations, etc.). These files can easily be accessed
54+ by opening the package README.
55+
56+ __ 3. Other files__ \
57+ This generally includes test files, build scripts, but also examples or manuals
58+ that are not linked in the README. These files would be almost impossible to
59+ access for the final user, unless they browse this GitHub repository or their
60+ local package cache.
61+
62+ The first two groups (required and documentation files) should be committed to
63+ this repository. And files that are not strictly necessary for the package to
64+ work (documentation files) should be excluded in ` typst.toml ` . They will still
65+ be available on typst universe to link to from the README.\
66+ The third group should simply not be committed to this repository. If you think
67+ some of the remaining files are important, they probably belong to the second
68+ group and should be linked in the README, so that they are easily discoverable.
69+ A good example showing how to link examples and a manual is [ CeTZ] [ cetz ] .
6370
6471The only exceptions to this rule are the LICENSE file (that should always be
6572available along with the source code, so it should not be excluded), and the
0 commit comments