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 )
3 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>
3 years ago
Kia King Ishii
aa2289e488
feat: add mini sponsor component ( #648 )
...
close #648
3 years ago
Kia King Ishii
6f037e2688
feat(sponsor): add sponsors component
3 years ago
Kia Ishii
73bbc6143a
feat: new default theme
3 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
4 years ago
Evan You
a81b9e0ff1
refactor: re-expose $frontmatter global property, make localePath account for base by default
4 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.
4 years ago
Eduardo San Martin Morote
0716ffade7
fix(search): silence warning for prop
4 years ago
Eduardo San Martin Morote
de89c1e5eb
fix(locales): use correct lang ( #283 )
4 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
Evan You
2bde6bf88d
revert home page feature
5 years ago
Evan You
f32771fe86
feat(default-theme): support customLayout: true in frontmatter
...
BREAKING CHANGE: the `home` frontmatter option has been removed.
Instead, use `customLayout: true` and custom HTML + `<style>` in the
markdown file to customize the home page (or any other page).
5 years ago
Kia King Ishii
7c83105e51
refactor: layout component
5 years ago
Evan You
08b9e17a93
refactor: code split optional features + improve typing
5 years ago
Kia King Ishii
7aa3fb261b
refactor: asjust few styling of algolia search box
5 years ago
Eduardo San Martin Morote
5bb4730f7f
feat: add Algolia DocSearch ( #40 ) ( #153 )
...
close #40
5 years ago
Kia King Ishii
a084cd3f78
fix: make home page look better ( #154 )
5 years ago
Eduardo San Martin Morote
9d6b8cadcc
feat: add native support for carbon ads ( #86 )
...
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
5 years ago
Evan You
b127aeeaf1
refactor: migrate default theme to use script-setup ( #137 )
...
Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
5 years ago
Kia King Ishii
1836934f7c
refactor: refactor sidebar styles
5 years ago
Evan You
a6bfdd41fa
refactor: expose pageData on route instead of via usePageData()
...
- also fix inconsistent state & duplicate updates of the sidebar when
switching pages
5 years ago
kazuya kawaguchi
3a0af0b614
feat: add home page feature ( #108 )
...
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
5 years ago
Eduardo San Martin Morote
2094d534db
feat(sidebar): close when navigating
5 years ago
Eduardo San Martin Morote
68d9b18f39
feat(client): add slot for a searchbar
5 years ago
Eduardo San Martin Morote
11060136c4
feat: top and bottom slots for sidebar and page ( #90 )
5 years ago
Kia King Ishii
5dfddb86da
style: correct few code styles
5 years ago
Yugo Ogura
e93ee094ea
feat: close the sidebar when clicking outside of the sidebar ( #78 )
5 years ago
Yugo Ogura
39dbd7806e
feat: add responsive sidebar support ( #75 )
5 years ago