Miroma
5bcaef03ea
feat(md): optionally strip #region markers
...
if `stripMarkersFromSnippets` is set, `<<<` snippets will strip out all
region markers:
```file.ts
// #region A
// #region B
console.log("Hello, World!");
// #endregion
// #endregion
```
<<< file.ts#A
...would not include "#region B" anymore
3 months ago
Miroma
6e8827146e
fix(md)!: warn if region not found
...
when a region is not in the source file,
instead of including the whole file,
warn that the #region was not found in it.
fix #4625
3 months ago
Miroma
cb83272074
fix(md)!: include all regions with the same name
...
VitePress supports including a part of a file through a VS Code region.
However, when multiple regions have the same name, only one is included.
The workaround plugin suggested in #3690 is no longer maintained. [^1]
Furthermore, it suffers from a memory leak causing huge RAM usage. [^2]
While we at Fabric Docs have forked the plugin [^3] to fix some issues,
it still feels fragile. Another problem is having to use two different
syntaxes (`<<<` vs `@[]()`) for doing the same thing, causing confusion.
Since this feature has been requested by VitePress directly, I don't
think there's any point in working on the plugin any further.
fix #3690
[^1]: <https://github.com/fabioaanthony/markdown-it-vuepress-code-snippet-enhanced/issues/7 >
[^2]: <https://discord.com/channels/507304429255393322/1208846408552030238/1407245292482330695 > via <https://discord.fabricmc.net/ >
[^3]: <https://github.com/IMB11/md-it-enhanced-snippets >
3 months ago
Divyansh Singh
19357f9d33
fix(theme): prevent `sub` and `sup` elements from affecting line height
...
based on normalize.css
closes #5173
3 months ago
dependabot[bot]
cb8f5531ce
chore(deps-dev): bump lodash.template from 4.5.0 to 4.18.1 ( #5169 )
...
Bumps [lodash.template](https://github.com/lodash/lodash ) from 4.5.0 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.5.0...4.18.1 )
---
updated-dependencies:
- dependency-name: lodash.template
dependency-version: 4.18.1
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago
Divyansh Singh
73f7b0b984
fix(theme): correct mixed LTR/RTL text rendering in code blocks
4 months ago
lilianakatrina684-a11y
202ee70260
fix: keep translation links in the current tab ( #5158 )
4 months ago
Divyansh Singh
9a2d16516b
chore: revert icons plugin bump
4 months ago
Divyansh Singh
856858d26a
fix: normalize `/index` to `/`
...
closes #5165
4 months ago
Divyansh Singh
1278c59f51
chore: bump deps
4 months ago
Divyansh Singh
62e1a4c49f
docs: add og tags
4 months ago
Divyansh Singh
8ad215400a
docs: add descriptions [lunaria-ignore]
4 months ago
Divyansh Singh
d96bf1dc61
fix: escape description in head
4 months ago
Divyansh Singh
09af6c73a8
docs: fix og tags
4 months ago
dependabot[bot]
abc88d1696
chore(deps-dev): bump picomatch from 4.0.3 to 4.0.4 ( #5164 )
...
Bumps [picomatch](https://github.com/micromatch/picomatch ) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/micromatch/picomatch/releases )
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micromatch/picomatch/compare/4.0.3...4.0.4 )
---
updated-dependencies:
- dependency-name: picomatch
dependency-version: 4.0.4
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
Divyansh Singh
6730fb8462
fix(theme): avatars misaligned in team member cards
...
closes #5160
4 months ago
Joaquín Sánchez
4fc1db83d7
docs: add `home-hero-actions-before-actions` slot to layout slots ( #5155 )
4 months ago
Divyansh Singh
fccc617102
feat(markdown): expose Shiki color replacements in markdown options ( #5153 )
4 months ago
Bugo
6dd3632960
docs(ru): update translations ( #5152 )
4 months ago
Divyansh Singh
e2430d1331
chore: adjust heading level
4 months ago
Divyansh Singh
6beafe9e04
release: v2.0.0-alpha.17
4 months ago
Joaquín Sánchez
74a73d869c
feat(client): add `home-hero-actions-before-actions` slot ( #5151 )
4 months ago
Divyansh Singh
17696c358b
fix(theme): close sidebar on resize ( closes #5145 )
4 months ago
Divyansh Singh
ca1e875129
fix: disable brotli compression in preview server
...
x-ref: https://github.com/faker-js/faker/pull/3755
Local tests suggest that `zlib.createBrotliCompress` is around 50x slower than `zlib.createGzip`. Although brotli produces 25% smaller for the test subject, such low speed is not desirable for `vitepress preview` as the command is meant for local servers.
This aligns the preview compression with vite.
4 months ago
Divyansh Singh
5ad39ab934
docs: add special thanks section
4 months ago
Sergio
44e2675889
feat: support text-fragments ( #5140 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
4 months ago
Divyansh Singh
d019acd3ca
chore: fix typo
4 months ago
Divyansh Singh
f811d581a1
fix(theme): enable `line-break: strict` for `<li>` too
4 months ago
Divyansh Singh
21a5fb6a96
fix(theme): disable text autospace in `<pre>` ( closes #5115 )
4 months ago
Tatsunori Uchino
8096eaca4f
fix(theme): strip system-ui from font-family-base ( #4988 )
4 months ago
Divyansh Singh
cd71695da5
docs: sync Node.js version with Vite
4 months ago
Divyansh Singh
fc0f203f0a
fix(build): deterministic local search indexing and non-blocking initial scan ( closes #4081 )
4 months ago
dependabot[bot]
cf9994d3c2
chore(deps-dev): bump rollup from 4.57.1 to 4.59.0 ( #5132 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 4.57.1 to 4.59.0.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.57.1...v4.59.0 )
---
updated-dependencies:
- dependency-name: rollup
dependency-version: 4.59.0
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
Divyansh Singh
896e49a777
fix(theme): add margin to images in vp-doc ( closes #5136 )
4 months ago
Rosano
f2d826caa8
docs: fix typo ( #5135 ) [lunaria-ignore]
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
4 months ago
Linbo-cyber
687ea42d4b
docs: add defineRoutes example to dynamic routes guide ( #5127 )
5 months ago
dependabot[bot]
642061db57
chore(deps-dev): bump markdown-it from 14.1.0 to 14.1.1 ( #5118 )
...
Bumps [markdown-it](https://github.com/markdown-it/markdown-it ) from 14.1.0 to 14.1.1.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md )
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.1.0...14.1.1 )
---
updated-dependencies:
- dependency-name: markdown-it
dependency-version: 14.1.1
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months ago
Qingpeng Li
b544df802d
fix(client): await `clipboard.writeText` so that fallback works in non-secure contexts ( #5119 )
5 months ago
WizardsBowl
b28667b6b0
fix(theme): navbar menu group is incorrectly highlighted ( #5113 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
5 months ago
Divyansh Singh
2e36f5c312
docs: fix typo
5 months ago
Divyansh Singh
c0acfa104b
docs: sync deploy guides
5 months ago
agneliutkiene
d334e7a69c
docs: add Hostinger to deployment guide ( #5111 )
5 months ago
Divyansh Singh
fb21fdf675
fix: `processIncludes` no longer swallows errors
...
**BREAKING CHANGE:**
The previous `<!-- @include: ./path/to/file -->` syntax silently ignored errors when files did not exist. This behavior was originally intended as an escape hatch while documenting includes, but better solutions now exist using Shiki transformers.
For most users, no code changes are required. If you now see errors, it means your includes are broken and were previously not being reported.
Users who intentionally reference non-existent files or want to document includes without resolving them can configure `markdown.codeTransformers` with a `postprocess` hook. See `docs/.vitepress/config.ts` in this repo for an example.
5 months ago
Divyansh Singh
5e12ef7f13
docs: format
5 months ago
Divyansh Singh
5b7ccbccdd
chore: bump deps, remove rimraf
5 months ago
Divyansh Singh
f1bef95eee
fix(theme): keep pnum,tnum features in Inter
...
closes #5096
5 months ago
Tatsunori Uchino
f09593b073
fix(theme): add `rel="alternate"` and `hreflang` to links in language menu ( #5108 )
5 months ago
Tatsunori Uchino
a01bba0cad
feat(theme): add Japanese translation for "copied" label ( #5106 )
5 months ago
Divyansh Singh
d7effffdbb
feat(theme): enable text-autospace and text-spacing-trim ( closes #4996 )
5 months ago
Divyansh Singh
3146ce48ed
feat(theme): support specifying list of details in home page features ( closes #5101 )
5 months ago