File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,26 @@ only work in a few specific directories (the ones for your own packages). Git
88allows for "sparse checkouts", which reduce the time it takes to clone the
99repository and its size on your disk.
1010
11- Follow these steps to clone the repository:
11+ First, make sure you have forked the repository to your own GitHub account.
12+ Then, follow these steps to clone the repository:
1213
1314``` sh
14- git clone --depth 1 --no-checkout --filter=
" tree:0" [email protected] :
typst /packages
15+ git clone --depth 1 --no-checkout --filter=
" tree:0" [email protected] :
{your-username} /packages
1516cd packages
1617git sparse-checkout init
1718git sparse-checkout set packages/preview/{your-package-name}
19+ git remote add upstream
[email protected] :typst/packages
20+ git config remote.upstream.partialclonefilter tree:0
1821git checkout main
1922```
2023
24+ The ` packages ` directory you are in still corresponds to the whole repository.
25+ Do not delete or edit the ` README.md ` , ` LICENSE ` or any other file at the root.
26+ Instead, create the directory ` packages/preview/{your-package-name}/{version} `
27+ and copy your files here. Note that ` packages/ ` is a directory in the
28+ ` packages ` repository: if you look at the full path, there should be two
29+ consecutive parts called ` packages ` .
30+
2131## Don't use submodules
2232
2333The Typst package repository requires the files to be actually copied
You can’t perform that action at this time.
0 commit comments