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 )
2 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
3 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.
3 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