WizardsBowl
220ebdaeae
Merge 2055bc5864 into ee028266a8
5 days ago
Divyansh Singh
6cce76685d
feat!: support scroll-margin / scroll-padding
...
Replaces the JS-based scroll offset logic with native CSS `scroll-margin-top`. The default theme sets it on headings using `--vp-nav-height` and `--vp-layout-top-height`, and `scrollTo` now uses `scrollIntoView` which respects it natively.
BREAKING CHANGE: `scrollOffset` from config is removed. Users wanting to customize scroll offset should customize `scroll-margin-top` via CSS instead. `smoothScroll` support from `router.go` is also removed as it didn't work as expected for most users. Users wanting smooth scrolling should set `scroll-behavior: smooth` in CSS, ideally inside a `@media (prefers-reduced-motion: no-preference)` block.
1 month ago
WizardsBowl
2055bc5864
feat(theme): add created timestamp
3 months ago
Kevin Deng
5e0d7dab83
chore: replace debug with obug ( #5030 )
6 months ago
Divyansh Singh
d3a15673bd
fix(hmr): no need for server restart on theme change
9 months ago
Divyansh Singh
fc267ae6b7
fix: module graph causing unnecessary route regeneration on every update
...
fix: preserve externally added dynamic routes and pages
chore: bump deps, lock vitest as its latest beta is broken
10 months ago
Divyansh Singh
7619521259
feat!: consistent glob options across content, data, and path loaders ( #4808 )
...
BREAKING CHANGES: Only `cwd`, `ignore`, `dot` and `debug` are supported in `globOptions` of `createContentLoader`. If you want to pass other options, you still can but you might need to suppress type errors.
11 months ago
Divyansh Singh
56ba65e130
fix: resolve pages after setting global vitepress config
...
x-ref: #4803
11 months ago
Artea
16a0ff895c
chore: use rolldown-vite ( #4769 )
...
---------
Signed-off-by: Artea <sepush@outlook.com>
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
e7f9d05c3e
fix: disable appearance scripts in zero-js mode
...
closes #4766
1 year ago
Divyansh Singh
26f178cfaa
fix: gather additional config files even if root .vitepress/config is not present
1 year ago
Yuxuan Zhang
c5e2e4db81
feat: support distributed config files ( #4660 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
9f54714e7d
fix: rebuild dynamic routes cache on server restart
...
follow up on #4525
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
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>
1 year ago
Divyansh Singh
36bde803c8
chore: maintenance and cleanup
1 year ago
Divyansh Singh
7f19b5f424
chore: bump deps
2 years ago
Divyansh Singh
1e8bb48bc2
feat: support `force-auto` as an option for appearance
...
closes #3946
2 years ago
Kia King Ishii
d10bf42c26
feat(theme): new design for local nav and global header ( #3359 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
arianrhodsandlot
6d89a08cb7
fix: print errors when importing an invalid dynamic route ( #3201 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Yuxuan Zhang
6dac9a4dc5
refactor: add concurrent promise pooling for render task ( #3366 )
...
fixes #3362
closes #3285
---------
Co-authored-by: Yuxuan Zhang <yuxuan@yuxuanzhang.net>
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
Co-authored-by: David Silva <srdavidsilva@gmail.com>
2 years ago
Divyansh Singh
a12a00ca78
chore: path separator normalization in assetsDir
3 years ago
Divyansh Singh
134ca6c661
chore: remove capturing group
3 years ago
bonyuta0204
563dc89975
feat(client): allow disabling link auto-prefetching ( #3220 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
a33831bf2c
chore: throw error on assetsDir outside outDir
3 years ago
Divyansh Singh
02161d0f79
fix(build): support nested assetsDir
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
Jacob Hummer
a850786a56
feat: export `mergeConfig()` ( #3143 )
3 years ago
Divyansh Singh
76e9fe86b2
Revert "fix(build): respect srcExclude in content loader" ( #2975 )
...
* Revert "fix(build): respect srcExclude in content loader (#2963 )"
This reverts commit 3023b5c76b .
* keep changes in dynamicRoutesPlugin.ts
3 years ago
huluobotx
3023b5c76b
fix(build): respect srcExclude in content loader ( #2963 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
1fb5d228a2
feat(theme): allow forcing dark mode ( #2974 )
3 years ago
Divyansh Singh
0088434895
fix(theme): prevent layout shift in search button key ( #2889 )
3 years ago
Divyansh Singh
9499953386
refactor: drop custom logic in favor of vueuse useDark ( #2818 )
3 years ago
Divyansh Singh
9df8adb53e
chore(build)!: drop cjs api ( #2737 )
3 years ago
Divyansh Singh
1179484432
feat(client): allow overriding props on Content
...
closes #2712
3 years ago
Divyansh Singh
5563695b15
feat: sitemap generation ( #2691 )
3 years ago
Divyansh Singh
700fad192e
feat(build): add `metaChunk` option to extract metadata to separate chunk ( #2626 )
...
Co-authored-by: Bojan Rajh <b.rajh@shopware.com>
3 years ago
烽宁
64d7c3ba54
feat(build): support custom `assetsDir` ( #2497 )
3 years ago
Mateu Llull
24abc7c6bd
feat(theme): allow customizing last updated date time format options ( #2332 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
cd03db803d
revert!: sync defineConfig types with vite ( #2529 )
...
BREAKING CHANGE: reverts the breaking changes in beta-2
3 years ago
Divyansh Singh
b3ded34d8a
fix(types): sync defineConfig types with vite
3 years ago
烽宁
8153f23c90
fix(config): set scrollOffset to 0 is not effect ( #2395 )
3 years ago
btea
87d309c088
refactor: resolve circular dependency ( #2283 )
3 years ago
John Campion Jr
3714741b40
feat(build): provide `siteConfig` in `transformPageData` context ( #2163 )
3 years ago
Anthony Fu
3235c23313
feat: more flexible `ignoreDeadLinks` ( #2135 )
3 years ago
Evan You
86e2a6f972
feat: support multiple selectors for scrollOffset
3 years ago
Evan You
32dfaf5adc
fix(types): allow void return in transformHead hook
3 years ago
Evan You
468c049ccd
feat: expose page and assets on build hooks TransformContext
3 years ago
Evan You
470ce3d3f3
fix: gracefully handle config update with syntax error
...
close #2041
3 years ago
Evan You
d2838e3755
feat: createContentLoader
3 years ago