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
Anthony Fu
c8e21a1ae0
chore: bump deps
4 years ago
Cédric Exbrayat
8988aadbcb
fix: functional templates with vue v3.1 ( #312 )
4 years ago
Anthony Fu
9f1b2b1ae2
chore: update deps
4 years ago
Nico Bachner
16a5f58484
chore: bump vite dependency to v2.0.5 ( #254 )
4 years ago
Evan You
74f5adafcd
feat: detect dead links
4 years ago
Kia King Ishii
6bf0d14930
build: update vite and typescript to the latest
4 years ago
Kia King Ishii
8a86ce98cf
build: update npm packages
4 years ago
Kia King Ishii
8a71fd1944
build: update npm packages
4 years ago
Evan You
8cd0023176
chore: bump plugin-vue
4 years ago
Evan You
c11055c5fb
chore: bump vite
4 years ago
Evan You
04a0fc297f
bump vite
4 years ago
Evan You
0a85bb89a1
bump vite
4 years ago
Evan You
64a08b35a3
chore: bump vite again
4 years ago
Evan You
6ff76c4ea8
chore: bump vite
4 years ago
Evan You
759bbd3f61
chore: bump vite
4 years ago
Matias Capeletto
da2c4f694e
fix: bump vite and fix win32 path resolving ( #198 )
4 years ago
Evan You
991a443c70
fix: vite 2.0.0-beta.2 compat
4 years ago
Evan You
b9c9e79cda
chore: bump vite
4 years ago
Evan You
6fff96652e
chore: bump deps
4 years ago
Evan You
2d77eafe3b
feat: production ready serve
4 years ago
Evan You
b1af922e75
chore: bump deps
4 years ago
Evan You
b50a2dffc4
wip: make build pass
4 years ago
Evan You
9ef7c8de1b
types: fix types
4 years ago
Evan You
def99b47b5
chore: update lockfile
4 years ago
Evan You
bf8fd3a6f3
wip: dev works with vite 2
4 years ago
dependabot[bot]
f05fe8b7f6
build(deps): bump node-notifier from 8.0.0 to 8.0.1 ( #188 )
...
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier ) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases )
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md )
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
83f14c2552
build(deps): bump ini from 1.3.5 to 1.3.8 ( #183 )
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Evan You
dac39d3cd9
chore: remove no longer used dep
4 years ago
Eduardo San Martin Morote
5bb4730f7f
feat: add Algolia DocSearch ( #40 ) ( #153 )
...
close #40
4 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>
4 years ago
Kia King Ishii
8735fc3096
test: add unit test setup ( #138 )
4 years ago
Kia King Ishii
22b34e7ac9
chore: update release script to match with other latest vue libs ( #134 )
4 years ago
Kia King Ishii
67868bd928
feat: add serve command ( #136 )
4 years ago
Christopher Shank
e54c5dd471
chore: add undeclared-deps ( #131 )
4 years ago
Evan You
61ab1af5e2
chore: bump vite version
4 years ago
Evan You
a185822953
chore: bump deps
4 years ago
Eduardo San Martin Morote
a90d971b40
fix(links): keep relative hash links as is
4 years ago
Eduardo San Martin Morote
b2154ff657
chore: up deps related to node version
4 years ago
Eduardo San Martin Morote
43d9fa8ff4
chore: up deps
...
keep vue at rc 10 for the moment
4 years ago
dependabot[bot]
5daaa90989
build(deps): bump prismjs from 1.20.0 to 1.21.0 ( #66 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Evan You
583f02e488
chore: bump deps
4 years ago
Evan You
6909f1580b
chore: bump deps
4 years ago
Carlos Rodrigues
61adfc4dbf
build: build script compat for windows ( #26 )
4 years ago
Evan You
a7db9a79be
upgrade to vite 1.0 beta
5 years ago
Evan You
78e64c0865
add missing build type
5 years ago
Evan You
b1537a78ba
bump vite
5 years ago
Evan You
bad7b4a33a
bump vite, remove no longer needed watch logic
5 years ago
Evan You
9a795389b9
bump vite + use simpler directory aliasing
5 years ago
Evan You
1394009242
bump vite
5 years ago