tabindex
attr in table renderer (#4082) (aadc517)--minify
not working as documented (9b5c037), closes #4523
srcDir
(#4270) (518c094)markdown-it-async
, remove synckit
(#4507) (8062235)await md.renderAsync
instead of md.render
.markdown.config
and markdown.preConfig
to accept async function (#4512) (b88ae8d)router.go
and expose decoded hash and query from the route
object (#4511) (23d3281)$
in replace pattern in dynamic routes plugin (e812916), closes #4499
vite.clearScreen
in build (8ea776a), closes #4468
externalLinkIcon
option on VPHome
(#4492) (fe48943)VPLink
, VPSocialLink
and VPSocialLinks
exports (#4284) (fcae4d5)siteTitle
(#4308) (bd690d6)usePreferredDark
with appearance: "force-auto"
(#4263) (3e8fc40)vueRE
conflicting with lineNoRE
(#4247) (2ac64b8)VPFlyout
(#4225) (68150a6), closes #4224
data-title
attribute for code group label tag (#4152) (bc7271d)onAfterPageLoad
hook in router (#4126) (315c220)onContentUpdated
on frontmatter-only changes too (0db269a)_importGlobMap
(vite internal) exists before using it (612d66f)vite.server.open
is specified (6263db1), closes #4040
force-auto
as an option for appearance (1e8bb48), closes #3946
Event
instance in hashchange eventOn this page
button (#3767) (5f28e74)markdownStyles: false
to the frontmatter of your home page.VPBadge
type in theme.d.ts
(#3470) (fcf828c)--vp-c-tip-
CSS variable for badge/block colors with typetip
(#3434) (78abf47).vp-copy-ignore
(#3360) (93122ee)shikijiSetup
hook (#3344) (d12e23d)art
dir (1f8c58a)toggle-appearance
function (#2844) (a5f2eac)pathname://
protocol is dropped. Specify target="_self"
or target="_blank"
instead. Refer docs to learn more.github-light
and github-dark
. If you want to use the old theme, you can set markdown.theme
in your config to 'material-theme-palenight'
.isDark
is changed to use vueuse. It might impact your custom theme. You can customize its behavior using appearance
option.createContentLoader
generates invalid url when base
is set (#2714) (0f38eb4)"type": "module"
is not present (23d7511)markdown.preConfig
option (ce85726), closes #1382
createContentLoader
generates invalid url when srcDir
is set (#2578) (74d9ba2)createContentLoader
(#2698) (13f94a6)createContentLoader
will now resolve globs relative to srcDir
instead of root
=""
from boolean attributes in head (#2620) (e02adfe), closes #1131 (comment) #2607
--vp-nav-height
in local nav calculations (#2663) (3912951)useSidebar()
type error (#2643) (a07f959)metaChunk
option to extract metadata to separate chunk (#2626) (700fad1)assetsDir
(#2497) (64d7c3b)minisearch
customization (#2576) (9fee554)@vue/devtools-api
to optimizeDeps.include
(#2543) (b2a129f)useSidebar
(#2496) (c4909e4)target="_self"
for internal links will now perform full reload.build: disable validation for rewrite compiling (69b2625)
theme: prevent glitch when algolia chunk is loaded (#2519) (51661de)
revert!: sync defineConfig types with vite (#2529) (cd03db8), closes #2529
defineConfig
and defineConfigWithTheme
no longer accept functions as argument.defineConfig
and defineConfigWithTheme
can now accept functions that return the config object. This might break typings in some third-party plugins that rely on the type of these functions.base
is set (#2375) (484ff5d)filePath
to PageData
(#2140) (b24acc6)@
prefix with @include
(#2292) (a3b38d1)disableQueryPersistence
in local search (#2273) (2f0f2d5)lastUpdated
work with git submodules (#2149) (4c23003)siteConfig
in transformPageData
context (#2163) (3714741)page-top/bottom
and doc-top/bottom
slots (#2139) (53d0099)txt
language (#2109) (ac953ce)markdown.headers
is now disabled by default. This means PageData
will no longer include extracted headers by default unless this option is explicitly enabled. This is because the default theme now extracts page headers at runtime, so the data is no longer needed by default.outlineBadge
has been
removed. Badges in headers are now always excluded when generating
outline text.as
prop to Content
(#2011) (254e15b)home-hero-info
slot (#1807) (996a5f4)<code>
block (d9a2e6e)preconnect()
(#1903) (48c9b11)ansi
code highlight (#1878) (f974381)base
is now prepended to all internal (non-relative) links, including any reference to a file present in the public directory. If you want the earlier behavior for such links, use absolute links.<a>
in SVG into account (#1850) (010b3e5)collapsible
is dropped from sidebar, use collapsed
insteadcleanUrls
(#1852) (5ae4fbd)activeMatch
support regexp (#1754) (0913e0f), closes #1771
li
(#1782) (48a42c1), closes #1783 #1405
enhanceApp
to return a Promise
(#1760) (01ac579)-
in title of code blocks with line highlighting (#1743) (ce9467e)home-hero-image
slot (#1528) (e72998b)pathname://
protocol to escape SPA (#1719) (ae21a3a)cacheDir
(#1355) (f899764)userPreference
(#1543) (a7abf73)Badge
(#1239) (ac8619f)useWebFonts
option (#1531) (c9f04e0)#
from outline (#1344) (f1cf1e8)transformHtml
and buildEnd
(#1270) (ee37eaa)transformHead
hook (#1323) (6b16dad)vp-raw
container (#1104) (9a6e1ea)/@theme
import alias has been removed. Use @theme
instead.exports
field (#914) (1cc087d)theme.d.ts
(#1101) (70b3060)router.go
if search string is not same (#1109) (5597165)transformHtml
hook (#1022) (2b4b800)doc-footer-before
slot (#1050) (#1052) (60c515c)DefaultTheme
type causes error in some cases (#804) (107724a)base
from command line (2952638)createMarkdownRenderer
(#555) (#556) (78a2e84)pre-wrap
for text and tagline (#746) (94704c9)lastUpdated
option to frontmatter (b31fbf3)Complete rewrite on default theme, with bunch of features added. Please refer to the docs for the new feature and changes.
automatically update hash map + retry on failed page fetch (2324948)
use git-based lastUpdated data (d32d8d4)
Note: lastUpdated data is now disabled by default due to the performance overhead of retrieving the git information. This also means each page's metadata object no longer contains the lastUpdated
property by default - it will only be present if the new lastUpdated: true
config option is enabled.
.
for mjs in supportedConfigExtensions
(#447) (fb6a4ad)__path
and __relativePath
on md instance for md plugins (4cec660)defineConfigWithTheme
(#465) (ba41bb9){#custom-anchor}
syntax in headers (6120da2)outDir
(#448) (5b04bb9)base
option is added (#342) (383d8ff)config.vite
(#394) (4b76617)markdown.anchor
option is updated. Refer to
valeriangalliat/markdown-it-anchor#permalinks for
instructions to upgrade your existing markdown.anchor.permalink
option. This doesn't affect you if you weren't changing the header
permalinks behavior.This version uses Vue 3.2.0.
withBase
(#328) (53bb961)vite
option (3737b10)Some config options have changed.
vueOptions
renamed to vue
alias
option has been removed. Use vite.resovle.alias
instead.useData()
method that exposes all data (0661063)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 use useData()
to retrieve VitePress data in Vue components.
^2.3.4
@
alias for import code snippet being always undefined
(#204) (2aa8ab2)base
option not generating correct multi sidebar (#231) (#234) (a613df4)base
option not working on dev mode (#223) (0b5b306)undefined
it will be treated as auto
, where previsouly it looked like it was 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
.Bump to Vite 2.0.0-beta.8
Fix build files
$withBase
global app function (15e18df)link
has extention (6dcf6b3)base
option is set (#139) (018a9b4)Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )