Qingpeng Li
b544df802d
fix(client): await `clipboard.writeText` so that fallback works in non-secure contexts ( #5119 )
2 weeks ago
WizardsBowl
b28667b6b0
fix(theme): navbar menu group is incorrectly highlighted ( #5113 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 weeks 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.
4 weeks ago
Divyansh Singh
5b7ccbccdd
chore: bump deps, remove rimraf
4 weeks ago
Divyansh Singh
f1bef95eee
fix(theme): keep pnum,tnum features in Inter
...
closes #5096
4 weeks ago
Tatsunori Uchino
f09593b073
fix(theme): add `rel="alternate"` and `hreflang` to links in language menu ( #5108 )
4 weeks ago
Tatsunori Uchino
a01bba0cad
feat(theme): add Japanese translation for "copied" label ( #5106 )
4 weeks ago
Divyansh Singh
d7effffdbb
feat(theme): enable text-autospace and text-spacing-trim ( closes #4996 )
4 weeks ago
Divyansh Singh
3146ce48ed
feat(theme): support specifying list of details in home page features ( closes #5101 )
4 weeks 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>
4 weeks ago
Divyansh Singh
a28e171604
fix(theme): remove margin between code groups and blocks in markdown containers
...
closes #5099
1 month ago
hotdogc1017
f8d8c0d712
feat(theme): use `@layer __vitepress_base` to wrap the styles in base.css ( #4905 )
1 month ago
seeksky
923aa90252
fix(theme): highlight active link in mobile nav menu ( #5086 ) ( closes #5068 , closes #5074 )
2 months ago
seeksky
b2008654ff
fix(theme): align badges in h1 and h2 ( #5087 ) ( closes #5063 )
2 months ago
Michael Cozzolino
f119b18e39
fix(theme): add fallback for `heroImageSlotExists` ( #5076 )
...
for users who are importing VPHero in custom theme
2 months ago
Evan You
66cf64e6d1
fix: always log error when failed to fetch page
2 months ago
Divyansh Singh
8ed6ea048c
fix(theme): overflow clip is buggy on safari
...
closes #5050
x-ref: 06f0e1a (#5039 ), 0ee7158 (#5027 )
3 months ago
Divyansh Singh
06f0e1a5c9
fix(theme): navbar overflowing on mobile devices
...
closes #5039
3 months ago
Kevin Deng
5e0d7dab83
chore: replace debug with obug ( #5030 )
3 months ago
Yuji Sugiura
d16d1970bc
chore: update oxc-minify to 0.98 ( #5033 )
3 months ago
Divyansh Singh
179ee621d9
fix: log dead links in dev mode too
...
closes #4419
4 months ago
Divyansh Singh
dfb02a479f
feat(client): emit `vitepress:codeGroupTabActivate` custom event when a code group tab is activated
...
closes #5023
4 months ago
Divyansh Singh
0ee71588de
fix(theme): sidebar alignment when scrollbar is there on page
...
closes #5027
4 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.
4 months ago
froQ
a6e6e59905
refactor: use shiki's transformerMetaHighlight
4 months ago
Divyansh Singh
4e548f5424
fix: simplify lang extraction logic; use markdown-it plugins in type-safe manner; bump deps
4 months ago
Bjorn Lu
bf2715ed67
feat: prevent `$` symbol selection in shell code ( #5025 )
4 months ago
Dmitrii Savelev
be260fda6e
fix(theme): use nav height css var for curtain top in sidebar ( #4993 )
4 months ago
Brainshaker95
113d230478
fix(theme): disable whitespace wrapping for VPBadge ( #4968 )
5 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>
5 months ago
Divyansh Singh
612c45895d
fix: git log parsing when there are empty commits in history ( #4965 )
5 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.
5 months ago
Miroma
34cfa91b6f
feat(theme): allow passing functions for nav links ( #4963 )
5 months ago
Divyansh Singh
31d87e2738
feat: export cacheAllGitTimestamps and getGitTimestamp
...
x-ref: https://github.com/vuejs/vitepress/issues/4954#issuecomment-3337312956
5 months ago
Divyansh Singh
6dfcdd3fe8
perf: make a single git call for timestamps instead of calling it for each file ( #4958 )
5 months ago
Divyansh Singh
6d7422f8fa
fix: respect markdown.cache = false on build too
5 months ago
Divyansh Singh
d46107fa25
fix(client,a11y): improve focus handling and scrolling behavior in router ( #4943 )
6 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>
6 months ago
Divyansh Singh
c2eaccd0d2
fix(theme): avoid use of `:where` in selector list for now
...
x-ref: #4923
6 months ago
Divyansh Singh
f0b29d7ef3
fix(theme): add lang and dir attributes to language picker
6 months ago
Divyansh Singh
82fac5d22c
fix(theme): adjust margin of code blocks inside containers
...
closes #4921
6 months ago
Divyansh Singh
2b77fb3a72
fix: print full path in dead links check
...
closes #4919
6 months ago
Divyansh Singh
d1a8061eb4
fix(hmr): don't load config twice on server restart
6 months ago
Divyansh Singh
d3a15673bd
fix(hmr): no need for server restart on theme change
6 months ago
Divyansh Singh
9fc8462726
feat: add markdown-it-cjk-friendly
...
closes #3762
closes #4752
BREAKING CHANGE: [markdown-it-cjk-friendly](https://www.npmjs.com/package/markdown-it-cjk-friendly ) is enabled by default. This intentionally deviates from the official commonmark spec for the benefit of CJK users. **For most users, no change is required.** If you were using hacks to patch `scanDelims`, you can remove those. To disable the plugin, set `markdown: { cjkFriendly: false }` in your vitepress config.
6 months ago
Divyansh Singh
1c8815d53e
fix(theme): use clipboard-check instead of clipboard-copy for code copied icon
7 months ago
Divyansh Singh
43b36c0c19
fix(theme): fix local nav alignment and increase touch area
7 months ago
Divyansh Singh
b83799a6e7
chore: bump deps
7 months ago
Divyansh Singh
914467e17f
fix: hmr not working for snippet imports in dynamic routes
7 months ago
Divyansh Singh
7df3052512
fix(theme): nav background doesn't extend fully and gap after sidebar with non-overlay scrollbars
...
closes #4653
Co-authored-by: Burrito <burritoyangster@gmail.com>
7 months ago