mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 KiB
39 KiB
0.18.0 (2021-09-14)
Features
0.17.3 (2021-09-09)
Bug Fixes
- emit prevented hashchange event (4fb387d)
0.17.2 (2021-09-08)
Bug Fixes
- improve fs allow (2e9264f)
Features
- support config.extends (f749b27)
0.17.1 (2021-09-08)
Bug Fixes
- avoid using spread for client code (03abee7)
- default-theme: use description as tagline by default (b94c827)
- handle case when there is no themeConfig (034c737)
Performance Improvements
- minor optimizations (96bcdda)
0.17.0 (2021-08-31)
Bug Fixes
- allow vite server access to theme and local files (9b9fdc7)
- code: code block highlight bug in ul (#352) (9245226)
- css: remove 720px breakpoint in home layout (#347) (0c1a1f2)
- i18n: fix locales reading, add site.langs (#353) (bc78adb), closes /vuepress.vuejs.org/guide/i18n.html#site-level-i18 /v2.vuepress.vuejs.org/guide/i18n.html#site-i18
- include emoji text in nav link to match toc (#284) (80ff360)
- use useData() instead of $site (#365) (1e64773)
Features
- support function config (e74c5f0)
- support partial include directive (7b3a9e5)
- upgrade markdown-it-anchor (#350) (26b5aa9)
BREAKING CHANGES
- the
markdown.anchor
option is updated. Refer to valeriangalliat/markdown-it-anchor#permalinks for instructions to upgrade your existingmarkdown.anchor.permalink
option. This doesn't affect you if you weren't changing the header permalinks behavior.
0.16.1 (2021-08-11)
Features
- info custom container (4925fb5)
0.16.0 (2021-08-10)
This version uses Vue 3.2.0.
Bug Fixes
- override target and rel links attribute in config (#332) (9d98dbb)
- edit-link: let frontmatter overwrite global editLink (#340) (cfbba80)
0.15.6 (2021-07-02)
Bug Fixes
- automatically escape vite user defined variables in markdown (3cec536)
- skip external URLs in
withBase
(#328) (53bb961)
0.15.5 (2021-06-23)
Bug Fixes
- nav: display nav if locales are present (#321) (e76e6ec)
- search: correctly detect multilang (c046905), closes #316
Performance Improvements
- only update necessary head tags in prod (e6bb5a4)
0.15.4 (2021-06-19)
Bug Fixes
- avoid scroll behavior reliance on .nav-bar class (9b35dfc)
0.15.3 (2021-06-15)
Bug Fixes
- avoid error when theme does not have .nav-bar class (a9d5800)
- avoid resetting head tags on hmr/page switch (f52f20e)
- watch config file when using srcDir (348f19a)
0.15.2 (2021-06-15)
Bug Fixes
- force optimize vue to avoid duplication when linked (eefba39)
0.15.1 (2021-06-14)
Features
- support passing vite config in vitepress config file via
vite
option (3737b10) - support srcDir config option (aaf4910)
Performance Improvements
- avoid double resolve user config on startup (5733fc6)
BREAKING CHANGES
-
Some config options have changed.
vueOptions
renamed tovue
alias
option has been removed. Usevite.resovle.alias
instead.
0.15.0 (2021-06-14)
Bug Fixes
Features
- more efficient
useData()
method that exposes all data (0661063)
BREAKING CHANGES
-
The following methods are removed.
useSiteData
useSiteDataByRoute
usePageData
useFrontmatter
Instead, use the new
useData()
method:// 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.
-
All global mixin properties (e.g.
$site
) except$frontmatter
are removed. Always useuseData()
to retrieve VitePress data in Vue components.
0.14.1 (2021-06-08)
Bug Fixes
0.14.0 (2021-05-27)
Bug Fixes
- chinese filenames can't build (#217) (#262) (b940397)
- theme: set search box min-width for >=751px (#286) (9589a5d)
- detect public folder for dead link (#290) (3aa185f)
- remove unnecessary 'vite/dynamic-import-polyfill' (6b4a4aa)
Features
- Vite version bumped to
^2.3.4
- exclude option (#281) (71a5e1c)
- Render titles for social sharing and improve home page sharing (#263) (e651f97)
0.13.2 (2021-04-26)
Bug Fixes
- search: silence warning for prop (0716ffa)
0.13.1 (2021-04-26)
Bug Fixes
0.13.0 (2021-04-08)
Bug Fixes
- build fails without css chunks (#209) (#239) (fa469fd)
- css: reuse css vars (#256) (8d91524)
- docs: global-component link (#271) (a43933c)
- locales: use correct lang (#276) (f505db9)
- navbar: use css var for background-color (#264) (f385bc4)
- badge for language-javascript (#245) (f8b4aa5)
Features
0.12.2 (2021-02-15)
Bug Fixes
- theme-default: avoid ad image distortion on mobile (4a40e1f)
0.12.1 (2021-02-15)
Bug Fixes
@
alias for import code snippet being alwaysundefined
(#204) (2aa8ab2)base
option not generating correct multi sidebar (#231) (#234) (a613df4)- ads display causing layout break in mobile view (#230) (7ceaf34)
- home action link not being reactive (#195) (#212) (5678dc3)
- nav home title not having locale based link (#195) (#233) (6538c8e)
0.12.0 (2021-02-09)
Bug Fixes
base
option not working on dev mode (#223) (0b5b306)- frontmatter description duplication (#194) (#170) (338e845)
- sidebar 'auto' not working (#178) (#224) (5deaf6a)
- render document with standards mode in dev (#207) (8a0db65)
- utf-8 character not working on safari in dev mode (#228) (b82d8f2)
- use brand color in algolia search box (2330023)
Features
BREAKING CHANGES
- If sidebar option is
undefined
it will be treated asauto
, where previsouly it looked like it was treated asfalse
. It was always treated asauto
, but due to this bug, the sidebar was hidden, therefore it looked like it was treated asfalse
.
0.11.5 (2021-01-29)
Bug Fixes
- avoid layout shift due to ads (#176) (78b026c)
- support symbolic links in building docs dist (#184) (#185) (5190604)
- update base option usage (8cfdd19)
Features
0.11.4 (2021-01-19)
- Latest Vite beta.32 compat (internal changes).
0.11.3 (2021-01-13)
Bug Fixes
- ignore non-html links in router and prefetch (3e6e61b)
0.11.2 (2021-01-12)
Bug Fixes
- aria label id (a0f463a)
Performance Improvements
- generate preload directives for dynamicImport chunks too (b9fc0cb)
0.11.1 (2021-01-12)
Features
- render content on home page (ca631c7)
0.11.0 (2021-01-12)
Code Refactoring
- move default theme to 'vitepress/theme' (a79e1e1)
Features
- support customData in config (4072dc5)
BREAKING CHANGES
- the default theme is now exposed via 'vitepress/theme', instead of a named export from 'vitepress'. This change fixes the case where when a completely custom theme is used, importing anything from 'vitepress' also imports the entire default theme.
0.10.8 (2021-01-11)
Bug Fixes
0.10.7 (2021-01-05)
Features
Bump to Vite 2.0.0-beta.8
Bug Fixes
0.10.6 (2021-01-04)
Bug Fixes
0.10.5 (2021-01-02)
Bug Fixes
- vite 2.0.0-beta.2 compat (991a443)
0.10.4 (2021-01-01)
Bug Fixes
0.10.3 (2021-01-01)
Bug Fixes
- always define theme globals (8769b4b)
- avoid unexpected vite define replacements in markdown content (a41928e)
- loosen navLink active matching (8a2ff33)
Features
0.10.2 (2020-12-31)
Bug Fixes
- adjust multi sidebar matching logic (7e4b16e)
0.10.1 (2020-12-30)
Bug Fixes
Features
- production ready serve (2d77eaf)
Performance Improvements
- avoid including optional features in build when not used (c878e6d)
0.10.0 (2020-12-30)
- Upgrade to Vite 2.0
Bug Fixes
- port fixes to parseHeader utils from vuepress (#172) (dd312ce)
- revert datetime handling (a1daf2b)
- style pollution on custom theme (#190) (46e99ba)
- temporarily disable slot usage causing hydration mismatch (0239159)
- md: avoid normalising markdown "mailto:" links (#173) (18d18d2)
0.9.2 (2020-12-10)
Fix build files
0.9.1 (2020-12-05)
Bug Fixes
- theme: the actionLink miss withBase (#168) (#169) (ffaca73)
- align $title with vuepress (#158) (#163) (30740d3)
- fix h2 anchor hover (9bd79e8), closes #174
- fix inline code not inheriting the parent font size (f5a570f)
- fix link prefetch (ade6ddd)
- hydration mismatch when home page having action link (a7686b7)
- make home page look better (#154) (a084cd3)
- prevLinks and nextLinks config type (#165) (1b6981a)
- siteData passed to enhanceApp being siteDataByRoute (#159) (01d2837)
Features
- built-in ClientOnly component (8809d2d)
- default-theme: support customLayout: true in frontmatter (f32771f)
- add
$withBase
global app function (15e18df) - add Algolia DocSearch (#40) (#153) (5bb4730)
- add native support for carbon ads (#86) (9d6b8ca)
- support customizing default theme via slots (b8e892e)
- add more global and computed properties (#152) (c6bdcfb), closes #152
0.9.0 (2020-11-24)
Bug Fixes
- avoid 300ms click delay on touch devices (621ca3e)
- fix nested list having too much margin (b0cf2be)
- fix sidebar active status not working as expected (#140) (#149) (0b181e7)
- make code block look prettier (#146) (242fcc1)
- some color in code block not working as expected (#143) (da09266)
Features
- add "last updated" feature (40d204b)
0.8.1 (2020-11-20)
Bug Fixes
- fix "next and prev link" not working when
link
has extention (6dcf6b3) - fix "next and prev links" not working when the
base
option is set (#139) (018a9b4)
0.8.0 (2020-11-20)
Bug Fixes
- exit process with non-zero code on error (fb09f8e)
- fix edit link and prev and next links display (#97) (c3b7172)
- fix next and prev links not working (#130) (fdd498b)
- display header-anchor links when using keyboard navigation (ddc3640)
- show top part of scrollbar in sidebar (#129) (1ba209a)
Features
- add ability to configure markdown options (#127) (#128) (463a03a)
- add serve command (#136) (67868bd)
- better build command output (e435eec)
0.7.4 (2020-11-11)
Bug Fixes
0.7.3 (2020-11-06)
Bug Fixes
- Fix sidebar page switch layout shifting
- Fix production hydration mismatch
0.7.2 (2020-11-02)
Bug Fixes
- adapt to vite fix of ssr build asset paths (6b3fbe3)
Features
0.7.1 (2020-10-30)
Bug Fixes
- compat with latest vite + handle no export default script tags in md (b10da2f)
- fix switch language error (#103, #106) (#104) (d354d1e)
0.7.0 (2020-10-19)
Bug Fixes
Features
- client: add slot for a searchbar (68d9b18)
- i18n: add nav dropdown language selector feature (#91) (294836c)
- sidebar: close when navigating (2094d53)
- add doctype html (02f2e10)
- add some space between 2 code blocks (5daa8d2)
0.6.0 (2020-09-17)
Bug Fixes
- client: use relative import (725a04c)
- links: keep relative hash links as is (a90d971)
- router: allow open new tab with ctrl + click (#69) (092ee77)
- sidebar: no margin on mobile (#89) (218c729)
- sidebar not working correctly when path starts with slash (610cc17)
- sidebar: fix sidebar when you open a nested link (#73) (d2b6d39)
Features
- add blockquote styling (8c1aada)
- add charset and viewport meta tags (#77) (2e8e1f5)
- add git repo link and edit links (#55) (0ea34cb)
- add prev/next links (#56) (f52b1d5)
- add responsive sidebar support (#75) (39dbd78)
- add table css from vuepress (#88) (8435e36)
- close the sidebar when clicking outside of the sidebar (#78) (e93ee09)
- navlinks in sidebar (#80) (a20bcf3)
- overwrite prev/next link (#61) (1b96f63)
- support config alias (#59) (63a3691)
- top and bottom slots for sidebar and page (#90) (1106013)
- sidebar: use base when creating link (#74) (79bc9fb)
0.5.0 (2020-07-21)
Bug Fixes
- decode hash before selecting (e782c4c)
- fix navbar withBase (e9ab56b)
- typings field in package.json (#48) (692a490)
Features
- add external link support for nav items (#46) (44e91bb)
- add multi sidebar support (#38) (#49) (050fa4c)
- i18n support (#50) (7802cb5)
- nav dropdown (#51) (5780461)
0.4.1 (2020-07-02)
Bug Fixes
- avoid error when requesting non-existing md file (e77ea63)
- resolve relative path on windows (#27) (9116c9c)
- use resolve instead of join (#33) (6f10ed6)
Features
0.4.0 (2020-06-19)
0.3.1 (2020-06-05)
Bug Fixes
- avoid using DEV + throttle active header link (a63b0cf)
0.3.0 (2020-06-02)
Bug Fixes
- lazy load @vue/server-render for production build (382e1b6)
Features
- active sidebar links (d2ea963)
0.2.0 (2020-05-22)
Bug Fixes
Features
- copy public dir (ddc9d51)
- lean builds (b61e239)
- prefetch in viewport inbound page chunks (da4852a)
- use hashed page file names (a873564)
- use modulepreload links (0025af1)
Performance Improvements
- inject script tags for page common chunk imports (57d900d)
0.1.1 (2020-04-30)
- fix dependency versions