Christian Georgi
b24acc6991
feat: add `filePath` to `PageData` ( #2140 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
烽宁
8354f8fb86
fix(theme): local search showDetailedList not working in windows ( #2248 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
713a35cbd0
feat!: organized search config ( #2218 )
2 years ago
Evan You
16064023cf
chore: upgrade to TS 5.0 + use moduleResolution: "bundler"
2 years ago
Evan You
74caccda43
feat: expose isNotFound on PageData, deperecate Theme.NotFound
2 years ago
Evan You
191ac86a85
docs: adjust the use of configs -> config
2 years ago
Divyansh Singh
5ae4fbde38
feat: stable `cleanUrls` ( #1852 )
2 years ago
Divyansh Singh
0f145cb3c6
fix: check document instead of window to detect browser ( #1833 )
2 years ago
Divyansh Singh
5d2fc3f922
feat(theme): allow removing badge text from outline ( #1825 )
2 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>
2 years ago
qiang
09c2c52d6c
feat: support for teleports to body ( #1642 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Matteo Bilotta
4ac8c0482f
types: strong separation between `import` and `import type` ( #1756 )
2 years ago
Sam Estep
ae21a3a622
feat(build): provide a `pathname://` protocol to escape SPA ( #1719 )
2 years ago
Divyansh Singh
1de0069a53
fix(build): better align server and client side filename sanitization ( #1488 )
2 years ago
Divyansh Singh
ead9b8c6f6
Revert "fix(build): better align server and client side filename sanitization" ( #1484 )
...
* Revert "fix(build): remove leading underscore from chunks"
This reverts commit 41a519cc77
.
* Revert "fix(build): better align server and client side filename sanitization"
This reverts commit 3fd20fedb8
.
2 years ago
Divyansh Singh
41a519cc77
fix(build): remove leading underscore from chunks
2 years ago
Divyansh Singh
3fd20fedb8
fix(build): better align server and client side filename sanitization
2 years ago
Divyansh Singh
ee37eaa271
fix(types): allow non async `transformHtml` and `buildEnd` ( #1270 )
2 years ago
Sascha
c7def730c3
feat(theme): extend titleTemplate by replacing the title ( #1200 )
2 years ago
Divyansh Singh
0048e2bf1e
feat(build): switch to vite 3, support clean urls and esm mode ( #856 )
2 years ago
Divyansh Singh
1ef7a1857c
fix: only check for duplicate meta tags ( #977 )
...
https://github.com/vuejs/vitepress/issues/975#issuecomment-1183507200
2 years ago
Divyansh Singh
f7e9cfeb3a
fix: de-duplicate head tags while merging ( #975 ) ( #976 )
2 years ago
Divyansh Singh
0257ea88dc
fix: layout inconsistencies and remove sidebar from 404 page ( #964 )
2 years ago
Divyansh Singh
1e9a7ac6c4
fix: treat all URI schemes as external ( #945 ) ( #946 )
2 years ago
Divyansh Singh
23276bae05
feat: emit 404.html on build ( #729 ) ( #740 )
...
close #729
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
2 years ago
CHOYSEN
8bf4182453
refactor: add `PageDataPayload` type ( #742 )
3 years ago
Kia King Ishii
67e77f7871
feat: add option to customize title template
...
close #303
3 years ago
Kia Ishii
9250460b3f
feat: make appearance configurable
3 years ago
Evan You
17aaaf0180
refactor tsconfig setup + migrate to vitest
3 years ago
ULIVZ
ba41bb9055
feat: improve typescript support for config file ( #465 )
3 years ago
Evan You
03abee7f7c
fix: avoid using spread for client code
3 years ago
Evan You
034c7375ad
fix: handle case when there is no themeConfig
3 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
3 years ago
hangzou
53bb961a92
fix: skip external URLs in `withBase` ( #328 )
3 years ago
Evan You
55de7ab43c
refactor: adjust shared utility/types build setup
...
fix non-existent imports in generated dts files
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
de89c1e5eb
fix(locales): use correct lang ( #283 )
4 years ago
Eduardo San Martin Morote
f505db945a
fix(locales): use correct lang ( #276 )
4 years ago
Eduardo San Martin Morote
9bc5c5c631
style: format code with prettier
4 years ago
Kia King Ishii
8735fc3096
test: add unit test setup ( #138 )
4 years ago
Kia King Ishii
df97d96909
build: handle shared files better ( #72 ) ( #114 )
...
fix #72
4 years ago
dewfall123
d354d1ef22
fix: fix switch language error ( #103 , #106 ) ( #104 )
...
fix #103
fix #106
Co-authored-by: zuofenghua <11100776@bbktel.com>
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
4 years ago
Anthony Fu
7802cb55c2
feat: i18n support ( #50 )
4 years ago