lilianakatrina684-a11y
202ee70260
fix: keep translation links in the current tab ( #5158 )
5 months ago
Divyansh Singh
fccc617102
feat(markdown): expose Shiki color replacements in markdown options ( #5153 )
5 months ago
Divyansh Singh
6beafe9e04
release: v2.0.0-alpha.17
5 months ago
Joaquín Sánchez
74a73d869c
feat(client): add `home-hero-actions-before-actions` slot ( #5151 )
5 months ago
Sergio
44e2675889
feat: support text-fragments ( #5140 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
5 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
08ca699175
test: use global timeouts in static data hmr tests
11 months ago
Divyansh Singh
9238e00c9f
test: add postcssIsolateStyles snapshots
1 year ago
Divyansh Singh
0944777893
feat: make postcssIsolateStyles idempotent
...
BREAKING CHANGE: `includeFiles` option in `postcssIsolateStyles` now defaults to `[/vp-doc\.css/, /base\.css/]` You can remove explicit `includeFiles` if you were using it just to run it on `vp-doc.css`. To revert back to older behavior pass `includeFiles: [/base\.css/]`. The underlying implementation is changed and `transform` and `exclude` options are no longer supported. Use `postcss-prefix-selector` directly if you've advanced use cases.
1 year ago
Divyansh Singh
318c14fa7c
fix: make paths in `watchedFiles` absolute as mentioned in the docs
1 year ago
Alex
a629b03f0e
fix(build): ignore escaped `:` when splitting selector in `postcssIsolateStyles` ( #4830 )
1 year ago
Yuxuan Zhang
544cd81259
feat(theme)!: add `isHome` frontmatter option ( #4673 )
...
BREAKING CHANGE: `useLocalNav` and `useSidebar` are removed in favor of `useLayout`. To migrate, just do find and replace. Sidebar controls are no longer exported, but I didn't find any usage on GitHub. If there is demand, we can export respective composables later. `DefaultTheme.DocSidebar` and `DefaultTheme.DocLocalNav` types are also removed.
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
Co-authored-by: userquin <userquin@gmail.com>
1 year ago
Divyansh Singh
b99d5123c9
feat: support using header anchors in markdown file inclusion ( #4608 )
...
closes #4375
closes #4382
Co-authored-by: btea <2356281422@qq.com>
1 year ago
John Simons
1a2f81de4d
feat: allow matching region end in snippets without tag ( #4287 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
a62ea6a832
feat: dynamic routes plugin overhaul ( #4525 )
...
BREAKING CHANGES: Internals are modified a bit to better support vite 6 and handle HMR more correctly. For most users this won't need any change on their side.
1 year ago
Divyansh Singh
b930b8d531
fix: deterministic code group ids ( #4565 )
2 years ago
Anthony Fu
80622356f1
feat: use `markdown-it-async`, remove `synckit` ( #4507 )
...
BREAKING CHANGES: markdown-it-async is used instead of markdown-it
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
翠 / green
6a2efc385c
feat!: upgrade vite to v6 ( #4504 )
2 years ago
Divyansh Singh
36bde803c8
chore: maintenance and cleanup
2 years ago
Divyansh Singh
3e11b6abf5
feat: allow ignoring certain headers and their subtrees completely in outline
...
closes #4171
2 years ago
Divyansh Singh
82863166fb
chore: skip data loader hmr test
2 years ago
Divyansh Singh
612d66fbb5
chore: add tests for data loader hmr
2 years ago
Divyansh Singh
01d0d45292
fix(theme/regression): typo in component props resulting in nested titles not showing in navbar
...
closes #4042
2 years ago
Joaquín Sánchez
fa87d8150d
feat: allow using components in navigation bar ( #4000 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
SuperLi
143b1e91f3
feat(markdown): support including specific regions from markdown files ( #3978 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
烽宁
55be3f14d7
feat: support custom image lazy loading ( #3346 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Anthony Fu
75f18e4733
feat: migrate to shikiji ( #3237 )
3 years ago
Divyansh Singh
d2238eedb7
feat: switch to vite 5 and bump deps ( #3200 )
...
BREAKING CHANGE: VitePress now runs on Vite 5. Please refer https://vitejs.dev/guide/migration for breaking changes and migration guide if you're relying on some Vite-specific things.
3 years ago
Divyansh Singh
dbbffa2487
fix(build): remove frontmatter in md file inclusion
...
closes #3195
3 years ago
Divyansh Singh
7991180080
fix(build): handle .mjs/.mts files as data / path loaders ( #3058 )
3 years ago
Divyansh Singh
e99aaad9cf
fix(build): handle importing code snippets not having an extension ( #2978 )
3 years ago
Damien Guard
00dc1e6742
feat: allow customizing markdown renderer used for local search indexing ( #2770 )
...
BREAKING CHANGES: `search.options.exclude` for local search is removed in favor of more flexible `search.options._render`
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
9ae94877db
chore: fix tests
3 years ago
Divyansh Singh
52884d9d4b
feat(theme): allow setting base path in sidebar items ( #2734 )
3 years ago
Divyansh Singh
e3f8fc7972
fix(theme): allow using h1 headings in outline
...
closes #1529
3 years ago
Divyansh Singh
fb048a6f72
fix(search): add useFocusTrap and mark.js to optimizeDeps ( #2682 )
3 years ago
Jérémy Riverain
37d5b273fb
feat(search): allow excluding content from search results ( #2602 )
...
closes #2344
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
e8074e60ec
fix(build): resolve nested md inclusions properly
...
closes #2584
closes #2586
Co-authored-by: Jeff Tian <jeff.tian@outlook.com>
3 years ago
烽宁
1ef33fe1c4
feat: support selecting line range when importing md file ( #2502 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Jeff Tian
0c4210bb5e
feat(build): support nested markdown includes ( #2545 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
b2a129f49b
fix(build): add `@vue/devtools-api` to `optimizeDeps.include` ( #2543 )
3 years ago
烽宁
c4909e4298
feat(theme): expose `useSidebar` ( #2496 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Joaquín Sánchez
a3b38d1882
feat(build): allow using `@` prefix with `@include:` ( #2292 )
3 years ago
Divyansh Singh
335ef4f736
revert: 456099a
3 years ago
Divyansh Singh
456099a527
test: restore tests for init command
3 years ago
Evan You
dc88efecff
chore: fix tests
3 years ago
Evan You
3b6a6d1abd
feat(theme): a11y improvements
3 years ago
Evan You
d2838e3755
feat: createContentLoader
3 years ago
Evan You
657a7d38df
fix(theme): re-support dynamic headers
3 years ago
CHOYSEN
70ba404cb8
test: e2e for markdown extensions ( #2043 )
3 years ago
Evan You
4673bb1879
feat(data-loader): defineLoader() type helper
3 years ago
Evan You
e29b6a051e
feat(data-loader): pass watched files into load()
3 years ago
Evan You
a4ac055dbf
feat: support $params in page components
3 years ago
Evan You
1457681484
fix: ensure HMR works properly for page outline
...
The client-side based implementation in #1281 makes HMR update for the
outlines flaky and unreliable.
The headers payload for each page chunk is relatively cheap in return
for the correctness, since they are inlined as a JSON string.
3 years ago
Evan You
38bbdaddb7
feat: vitepress init command ( #2020 )
...
close #1252
4 years ago
Evan You
8c9833ceba
test: fix dynamic routes test for build
4 years ago
Evan You
956de3bfa2
test: test for dynamic routes
4 years ago
Divyansh Singh
b197949930
chore: bump deps
4 years ago
Divyansh Singh
dea6cfa9cb
fix(theme): infer collapsible from collapsed ( #1865 )
...
BREAKING CHANGE: `collapsible` is dropped from sidebar, use `collapsed` instead
4 years ago
Kia King Ishii
c35a1f0fae
feat(theme): enable multi level sidebar nesting ( #1360 ) ( #1835 )
...
close #1360
close #1361
close #1680
4 years ago
0x009922
7de7fff417
fix(build): dedent of a single-line region ( #1687 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
4 years ago
Joaquín Sánchez
9df598f36e
feat(theme): allow adding images as icons in features section ( #1738 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
4 years ago
Divyansh Singh
ae3ba243b1
tests: refactor ( #1587 )
4 years ago
Joaquín Sánchez
db1c343dfb
feat(theme): sort multiple sidebars ( #1552 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
4 years ago
Divyansh Singh
288aa48b92
feat(theme): support dynamic headers and nesting in outline ( #1281 )
...
Co-authored-by: fi3ework <fi3ework@gmail.com>
4 years ago
meteorlxy
19c0f43daa
refactor: use markdown title plugin and remove parseHeader utils ( #1235 )
4 years ago
Kia Ishii
0b6f25b988
test: add test for client utils
...
close #617
4 years ago
Kia King Ishii
8c1f9f6c87
style: format
4 years ago
Anthony Fu
a0f81c9f9d
feat: migrate to ESM ( #645 ) ( #659 )
...
close #645
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
4 years ago
Kia Ishii
73bbc6143a
feat: new default theme
4 years ago
Evan You
17aaaf0180
refactor tsconfig setup + migrate to vitest
5 years ago
Kia King Ishii
5deaf6a2cd
fix: sidebar 'auto' not working ( #178 ) ( #224 )
...
BREAKING CHANGE: If sidebat is `undefined`, it will be treated as `auto` where
previsouly it's treated as `false`. It was always treated as `auto`, but due to
this bug, the sidebar was hidden, therefore it looked like it was treated
as `false`.
6 years ago
Evan You
7e4b16ee52
fix: adjust multi sidebar matching logic
...
- matches by ensuring starting slash + startsWith
- catch-all fallback (`/`) should be placed at the end like VuePress
6 years ago
Matias Capeletto
dd312ce86b
fix: port fixes to parseHeader utils from vuepress ( #172 )
6 years ago
Kia King Ishii
6dcf6b3796
fix: fix "next and prev link" not working when `link` has extention
...
When there's extention in the sidebar item links, such as `.md` or
`.html`, the "next and prev link" is failing. This commit fixes
that issue.
6 years ago
Kia King Ishii
8735fc3096
test: add unit test setup ( #138 )
6 years ago