Artea
69f3520577
fix: only show collapsed btn in pc
7 months ago
Artea
f3f067312d
refactor: clean useless style
7 months ago
Artea
6a33280175
feat(default-theme): collapsible sidbar
...
Signed-off-by: Artea <sepush@outlook.com>
7 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>
8 months ago
Divyansh Singh
30c665b29d
chore: bump deps
2 years ago
bqy_fe
fd46dc9b8f
fix(theme): remove extra padding from top when navbar is hidden ( #2575 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
54891df614
Revert "feat(theme): use inert to avoid traverse menus and content with keyboard" ( #2953 )
...
Revert "feat(theme): use inert to avoid traverse menus and content with keyboard (#2932 )"
This reverts commit 070fc0a56d .
2 years ago
Joaquín Sánchez
070fc0a56d
feat(theme): use inert to avoid traverse menus and content with keyboard ( #2932 )
2 years ago
烽宁
51715336ac
refactor: delete the redundant `provide` code ( #2804 )
2 years ago
烽宁
2ae90a2343
feat(theme): support custom page class ( #2696 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
71eb11f72e
fix(theme): fix theme without fonts emitting inter ( #2588 )
2 years ago
keer-tea
1e1500141b
feat(theme): allow hiding navbar on specific pages via frontmatter ( #2565 )
2 years ago
烽宁
c4909e4298
feat(theme): expose `useSidebar` ( #2496 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
0e45804bc9
chore: remove extra line
3 years ago
John Campion Jr
53d0099ffa
feat(theme): add `page-top/bottom` and `doc-top/bottom` slots ( #2139 )
3 years ago
Evan You
16064023cf
chore: upgrade to TS 5.0 + use moduleResolution: "bundler"
3 years ago
Divyansh Singh
41987b6a88
feat(theme): add not-found layout slot ( #2054 )
3 years ago
gaaming
996a5f47e9
feat(theme): add `home-hero-info` slot ( #1807 )
3 years ago
Divyansh Singh
8de2f4499d
feat: add i18n feature ( #1339 )
...
fix #291
fix #628
fix #631
fix #902
fix #955
fix #1253
fix #1381
Co-authored-by: Hiroki Okada <hirokio@tutanota.com>
Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
3 years ago
Gurkiran Singh
e72998b68b
feat(theme): add `home-hero-image` slot ( #1528 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Urata Daiki
257f9e68e9
perf(a11y): make menu traversable only when it is open ( #1491 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Marshall Thompson
d410d4dd9f
feat(theme): sidebar nav slots ( #1582 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
8f630339ba
feat(theme): allow disabling whole layout ( #1268 )
3 years ago
Divyansh Singh
0048e2bf1e
feat(build): switch to vite 3, support clean urls and esm mode ( #856 )
3 years ago
Charles7c
60c515c125
feat(theme): add `doc-footer-before` slot ( #1050 ) ( #1052 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Sacha STAFYNIAK
0f0453c675
feat(theme): add navigation slots ( #739 ) ( #741 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
灵谦
fcd7642924
fix(theme): close menu on route change ( #887 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
1f1e298864
feat(theme): add global layout slots ( #760 ) ( #812 )
4 years ago
Percy Ma
9c2a36f542
feat: add doc before and after slot ( #762 ) ( #786 )
...
close #762
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
4 years ago
Kia King Ishii
aa2289e488
feat: add mini sponsor component ( #648 )
...
close #648
4 years ago
Kia King Ishii
6f037e2688
feat(sponsor): add sponsors component
4 years ago
Kia Ishii
73bbc6143a
feat: new default theme
4 years ago
Evan You
1ef69e212f
feat: improve default chunk strategy + page hash stability
4 years ago
Evan You
5fd7db2b7f
fix(theme): fix algolia search filter
4 years ago
Evan You
c071f0cb0c
chore: remove unused value
4 years ago
sambit sahoo
07bf145190
feat(theme-default): home slot for customizing the entire homepage easily ( #314 )
4 years ago
Eduardo San Martin Morote
389e863b4d
fix(theme-default/algolia): avoid creating multiple algolia searches ( #292 )
4 years ago
Eduardo San Martin Morote
bc78adb468
fix(i18n): fix locales reading, add site.langs ( #353 )
...
It works with the same config as Vuepress 1: https://vuepress.vuejs.org/guide/i18n.html#site-level-i18n-config
We could probably adapt the `label` property like Vuepress 2 https://v2.vuepress.vuejs.org/guide/i18n.html#site-i18n-config in a next release
4 years ago
Eduardo San Martin Morote
c046905b03
fix(search): correctly detect multilang
...
Close #316
5 years ago
Evan You
a81b9e0ff1
refactor: re-expose $frontmatter global property, make localePath account for base by default
5 years ago
Evan You
0661063d29
feat: more efficient `useData()` method that exposes all data
...
BREAKING CHANGE:
- Individual `useX()` data methods are removed.
```js
// before
import { useSiteDataByRoute, usePageData } from 'vitepress'
const site = useSiteDataByRoute()
const page = usePageData()
const theme = computed(() => site.value.themeConfig)
// after
import { useData } from 'vitepress'
const { site, page, theme } = useData()
```
All destructured values are computed refs injected from app root
so they are created only once globally.
- Global mixin properties (e.g. `$site`) are removed. Always use
`useData()` to retrieve VitePress data.
5 years ago
Eduardo San Martin Morote
0716ffade7
fix(search): silence warning for prop
5 years ago
Eduardo San Martin Morote
de89c1e5eb
fix(locales): use correct lang ( #283 )
5 years ago
Eduardo San Martin Morote
9bc5c5c631
style: format code with prettier
5 years ago
Kia King Ishii
a613df46e8
fix: `base` option not generating correct multi sidebar ( #231 ) ( #234 )
5 years ago
Eduardo San Martin Morote
7ceaf344d2
fix: ads display causing layout break in mobile view ( #230 )
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`.
5 years ago
Eduardo San Martin Morote
78b026cb7a
fix: avoid layout shift due to ads ( #176 )
5 years ago
Evan You
3e85b46727
refactor: improve css treeshaking + avoid layout shift on async components
5 years ago
Evan You
c878e6d3b5
perf: avoid including optional features in build when not used
5 years ago