Joaquín Sánchez
74a73d869c
feat(client): add `home-hero-actions-before-actions` slot ( #5151 )
5 months ago
Divyansh Singh
17696c358b
fix(theme): close sidebar on resize ( closes #5145 )
5 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.
5 months ago
Sergio
44e2675889
feat: support text-fragments ( #5140 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
6 months ago
Divyansh Singh
d019acd3ca
chore: fix typo
6 months ago
Divyansh Singh
f811d581a1
fix(theme): enable `line-break: strict` for `<li>` too
6 months ago
Divyansh Singh
21a5fb6a96
fix(theme): disable text autospace in `<pre>` ( closes #5115 )
6 months ago
Tatsunori Uchino
8096eaca4f
fix(theme): strip system-ui from font-family-base ( #4988 )
6 months ago
Divyansh Singh
fc0f203f0a
fix(build): deterministic local search indexing and non-blocking initial scan ( closes #4081 )
6 months ago
Divyansh Singh
896e49a777
fix(theme): add margin to images in vp-doc ( closes #5136 )
6 months ago
Qingpeng Li
b544df802d
fix(client): await `clipboard.writeText` so that fallback works in non-secure contexts ( #5119 )
6 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>
7 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.
7 months ago
Divyansh Singh
5b7ccbccdd
chore: bump deps, remove rimraf
7 months ago
Divyansh Singh
f1bef95eee
fix(theme): keep pnum,tnum features in Inter
...
closes #5096
7 months ago
Tatsunori Uchino
f09593b073
fix(theme): add `rel="alternate"` and `hreflang` to links in language menu ( #5108 )
7 months ago
Tatsunori Uchino
a01bba0cad
feat(theme): add Japanese translation for "copied" label ( #5106 )
7 months ago
Divyansh Singh
d7effffdbb
feat(theme): enable text-autospace and text-spacing-trim ( closes #4996 )
7 months ago
Divyansh Singh
3146ce48ed
feat(theme): support specifying list of details in home page features ( closes #5101 )
7 months ago
Dylan Tientcheu
0d646a66cd
feat(theme): upgrade DocSearch to 4.5 with sidepanel ( #5092 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
7 months ago
Divyansh Singh
a28e171604
fix(theme): remove margin between code groups and blocks in markdown containers
...
closes #5099
7 months ago
hotdogc1017
f8d8c0d712
feat(theme): use `@layer __vitepress_base` to wrap the styles in base.css ( #4905 )
7 months ago
seeksky
923aa90252
fix(theme): highlight active link in mobile nav menu ( #5086 ) ( closes #5068 , closes #5074 )
7 months ago
seeksky
b2008654ff
fix(theme): align badges in h1 and h2 ( #5087 ) ( closes #5063 )
7 months ago
Michael Cozzolino
f119b18e39
fix(theme): add fallback for `heroImageSlotExists` ( #5076 )
...
for users who are importing VPHero in custom theme
8 months ago
Evan You
66cf64e6d1
fix: always log error when failed to fetch page
8 months ago
Divyansh Singh
8ed6ea048c
fix(theme): overflow clip is buggy on safari
...
closes #5050
x-ref: 06f0e1a (#5039 ), 0ee7158 (#5027 )
9 months ago
Divyansh Singh
06f0e1a5c9
fix(theme): navbar overflowing on mobile devices
...
closes #5039
9 months ago
Kevin Deng
5e0d7dab83
chore: replace debug with obug ( #5030 )
9 months ago
Yuji Sugiura
d16d1970bc
chore: update oxc-minify to 0.98 ( #5033 )
9 months ago
Divyansh Singh
179ee621d9
fix: log dead links in dev mode too
...
closes #4419
9 months ago
Divyansh Singh
dfb02a479f
feat(client): emit `vitepress:codeGroupTabActivate` custom event when a code group tab is activated
...
closes #5023
9 months ago
Divyansh Singh
0ee71588de
fix(theme): sidebar alignment when scrollbar is there on page
...
closes #5027
9 months ago
Divyansh Singh
0899618556
fix: disable markdown-it-attrs for fenced code blocks
...
BREAKING CHANGE: `markdown-it-attrs` is disabled for fenced code blocks. For most users no change is required. If you want to add classes to code blocks, do it using shiki transformers instead.
9 months ago
froQ
a6e6e59905
refactor: use shiki's transformerMetaHighlight
9 months ago
Divyansh Singh
4e548f5424
fix: simplify lang extraction logic; use markdown-it plugins in type-safe manner; bump deps
9 months ago
Bjorn Lu
bf2715ed67
feat: prevent `$` symbol selection in shell code ( #5025 )
9 months ago
Dmitrii Savelev
be260fda6e
fix(theme): use nav height css var for curtain top in sidebar ( #4993 )
10 months ago
Brainshaker95
113d230478
fix(theme): disable whitespace wrapping for VPBadge ( #4968 )
11 months ago
Elecmonkey
3d61619ec0
feat(markdown): support custom display-name for fenced code blocks ( #4960 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
11 months ago
Divyansh Singh
612c45895d
fix: git log parsing when there are empty commits in history ( #4965 )
11 months ago
Divyansh Singh
bce0b53659
fix: rename `markdown.cjkFriendly` to `markdown.cjkFriendlyEmphasis`
...
closes #4952
BREAKING CHANGE: Rename `cjkFriendly` to `cjkFriendlyEmphasis` in your vitepress config. **Most people should be unaffected** unless they want to disable the CJK emphasis behavior added v2.0.0-alpha.12.
11 months ago
Miroma
34cfa91b6f
feat(theme): allow passing functions for nav links ( #4963 )
11 months ago
Divyansh Singh
31d87e2738
feat: export cacheAllGitTimestamps and getGitTimestamp
...
x-ref: https://github.com/vuejs/vitepress/issues/4954#issuecomment-3337312956
11 months ago
Divyansh Singh
6dfcdd3fe8
perf: make a single git call for timestamps instead of calling it for each file ( #4958 )
11 months ago
Divyansh Singh
6d7422f8fa
fix: respect markdown.cache = false on build too
11 months ago
Divyansh Singh
d46107fa25
fix(client,a11y): improve focus handling and scrolling behavior in router ( #4943 )
11 months ago
Joaquín Sánchez
187bf250e6
feat(i18n,a11y): change last update logic ( #4935 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
12 months ago
Divyansh Singh
c2eaccd0d2
fix(theme): avoid use of `:where` in selector list for now
...
x-ref: #4923
12 months ago
Divyansh Singh
f0b29d7ef3
fix(theme): add lang and dir attributes to language picker
12 months ago