Skip to content

Commit

Permalink
docs: update links
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 18, 2025
1 parent 5ef5d56 commit cc7da12
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/guide/best-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const highlighter = await createHighlighterCore({
})
```

To compose the fine-grained bundles easily, we also provide the [`shiki-codegen`](/integrations/codegen) tool to generate the fine-grained bundles for you.
To compose the fine-grained bundles easily, we also provide the [`shiki-codegen`](/packages/codegen) tool to generate the fine-grained bundles for you.

Learn more about [Fine-Grained Bundles](/guides/bundles#fine-grained-bundle).
Learn more about [Fine-Grained Bundles](/guide/bundles#fine-grained-bundle).

## Use Shorthands

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/bundles.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ outline: deep
The main `shiki` entries bundles all supported themes and languages via lazy dynamic imports. The efficiency shouldn't be a concern to most of the scenarios as the grammar would only be imported/downloaded when it is used. However, when you bundle Shiki into browsers runtime or web workers, even those files are not imported, they still add up to your dist size. We provide the [fine-grained bundle](#fine-grained-bundle) to help you compose languages and themes one-by-one as you need.

::: info
If you are building a web application, or in a performance-sensitive environment, it's always better to use the [fine-grained bundles](<(#fine-grained-bundle)>) to reduce the bundle size and memory usage. Learn more about [Best Performance Practices](/guide/best-performance).
If you are building a web application, or in a performance-sensitive environment, it's always better to use the [fine-grained bundles](#fine-grained-bundle) to reduce the bundle size and memory usage. Learn more about [Best Performance Practices](/guide/best-performance).
:::

## Bundle Presets
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/regex-engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ const highlighter = await createHighlighterCore({

If you are not using the custom grammars that requires transpilation, you can use the `createJavaScriptRawEngine` to skip the transpilation step further reducing bundle size.

If you are using [`shiki-codegen`](/integrations/codegen), you can generate the pre-compiled languages with the `--precompiled` and `--engine=javascript-raw` flags.
If you are using [`shiki-codegen`](/packages/codegen), you can generate the pre-compiled languages with the `--precompiled` and `--engine=javascript-raw` flags.
2 changes: 1 addition & 1 deletion docs/guide/shorthands.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ export const {
)
```

You can also use [`shiki-codegen`](/integrations/codegen) to generate the fine-grained bundles for you.
You can also use [`shiki-codegen`](/packages/codegen) to generate the fine-grained bundles for you.

0 comments on commit cc7da12

Please sign in to comment.