Divyansh Singh
9238e00c9f
test: add postcssIsolateStyles snapshots
3 weeks 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.
3 weeks ago
Divyansh Singh
318c14fa7c
fix: make paths in `watchedFiles` absolute as mentioned in the docs
4 weeks ago
Alex
a629b03f0e
fix(build): ignore escaped `:` when splitting selector in `postcssIsolateStyles` ( #4830 )
2 months 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>
5 months 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>
6 months 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>
6 months 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.
6 months ago
Divyansh Singh
b930b8d531
fix: deterministic code group ids ( #4565 )
7 months 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>
7 months ago
翠 / green
6a2efc385c
feat!: upgrade vite to v6 ( #4504 )
8 months ago
Divyansh Singh
36bde803c8
chore: maintenance and cleanup
8 months ago
Divyansh Singh
3e11b6abf5
feat: allow ignoring certain headers and their subtrees completely in outline
...
closes #4171
1 year ago
Divyansh Singh
82863166fb
chore: skip data loader hmr test
1 year ago
Divyansh Singh
612d66fbb5
chore: add tests for data loader hmr
1 year ago
Divyansh Singh
01d0d45292
fix(theme/regression): typo in component props resulting in nested titles not showing in navbar
...
closes #4042
1 year 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>
1 year 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>
1 year ago
烽宁
55be3f14d7
feat: support custom image lazy loading ( #3346 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Anthony Fu
75f18e4733
feat: migrate to shikiji ( #3237 )
2 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.
2 years ago
Divyansh Singh
dbbffa2487
fix(build): remove frontmatter in md file inclusion
...
closes #3195
2 years ago
Divyansh Singh
7991180080
fix(build): handle .mjs/.mts files as data / path loaders ( #3058 )
2 years ago
Divyansh Singh
e99aaad9cf
fix(build): handle importing code snippets not having an extension ( #2978 )
2 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>
2 years ago
Divyansh Singh
9ae94877db
chore: fix tests
2 years ago
Divyansh Singh
52884d9d4b
feat(theme): allow setting base path in sidebar items ( #2734 )
2 years ago
Divyansh Singh
e3f8fc7972
fix(theme): allow using h1 headings in outline
...
closes #1529
2 years ago
Divyansh Singh
fb048a6f72
fix(search): add useFocusTrap and mark.js to optimizeDeps ( #2682 )
2 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>
2 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>
2 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>
2 years ago
Jeff Tian
0c4210bb5e
feat(build): support nested markdown includes ( #2545 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
b2a129f49b
fix(build): add `@vue/devtools-api` to `optimizeDeps.include` ( #2543 )
2 years ago
烽宁
c4909e4298
feat(theme): expose `useSidebar` ( #2496 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Joaquín Sánchez
a3b38d1882
feat(build): allow using `@` prefix with `@include:` ( #2292 )
2 years ago
Divyansh Singh
335ef4f736
revert: 456099a
2 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
3 years ago
Evan You
8c9833ceba
test: fix dynamic routes test for build
3 years ago
Evan You
956de3bfa2
test: test for dynamic routes
3 years ago