vitepress
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
@@ -0,0 +0,0 @@ import { defineComponent, ref, onMounted } from 'vue'; |
@@ -0,0 +0,0 @@ import { defineComponent, h } from 'vue'; |
@@ -0,0 +0,0 @@ import { watchEffect } from 'vue'; |
@@ -0,0 +0,0 @@ // Customized pre-fetch for page chunks based on |
@@ -0,0 +0,0 @@ import { shallowRef, readonly, computed, inject } from 'vue'; |
@@ -0,0 +0,0 @@ import { setupDevtoolsPlugin } from '@vue/devtools-api'; |
@@ -0,0 +0,0 @@ import { createApp as createClientApp, createSSRApp, defineComponent, h, onMounted, watch } from 'vue'; |
@@ -0,0 +0,0 @@ import { reactive, inject, markRaw, nextTick, readonly } from 'vue'; |
@@ -0,0 +0,0 @@ // entry for SSR |
export {}; |
@@ -0,0 +0,0 @@ import { siteDataRef } from './data.js'; |
@@ -0,0 +0,0 @@ import * as vue from 'vue'; |
@@ -0,0 +0,0 @@ // exports in this file are exposed to themes and md files via 'vitepress' |
@@ -69,2 +69,5 @@ export const EXTERNAL_URL_RE = /^[a-z]+:/i; | ||
const template = pageData.titleTemplate ?? siteData.titleTemplate; | ||
if (typeof template === 'string' && template.includes(':title')) { | ||
return template.replace(/:title/g, title); | ||
} | ||
const templateString = createTitleTemplate(siteData.title, template); | ||
@@ -71,0 +74,0 @@ return `${title}${templateString}`; |
@@ -0,0 +0,0 @@ import { computed } from 'vue'; |
@@ -0,0 +0,0 @@ import { nextTick, watch } from 'vue'; |
@@ -0,0 +0,0 @@ import { computed } from 'vue'; |
@@ -0,0 +0,0 @@ import { ref, watch, readonly, onUnmounted } from 'vue'; |
@@ -0,0 +0,0 @@ import { ref, computed, watch } from 'vue'; |
@@ -0,0 +0,0 @@ import { computed, onMounted, onUpdated, onUnmounted } from 'vue'; |
@@ -0,0 +0,0 @@ import { computed } from 'vue'; |
@@ -19,6 +19,3 @@ import { computed, onMounted, onUnmounted, ref, watchEffect } from 'vue'; | ||
const hasAside = computed(() => { | ||
if (frontmatter.value.layout !== 'home' && | ||
frontmatter.value.aside === false) | ||
return false; | ||
return hasSidebar.value; | ||
return (frontmatter.value.layout !== 'home' && frontmatter.value.aside !== false); | ||
}); | ||
@@ -25,0 +22,0 @@ function open() { |
@@ -0,0 +0,0 @@ import { onMounted, onUnmounted } from 'vue'; |
@@ -0,0 +0,0 @@ import './styles/fonts.css'; |
@@ -0,0 +0,0 @@ import { ensureStartingSlash } from './utils.js'; |
@@ -0,0 +0,0 @@ // Used under CC0 1.0 from https://simpleicons.org/ |
@@ -0,0 +0,0 @@ import { ref } from 'vue'; |
@@ -1,2 +0,2 @@ | ||
import { p as picocolors, g as build, s as serve, e as createServer } from './serve-cd8de79e.js'; | ||
import { p as picocolors, g as build, s as serve, e as createServer } from './serve-dfb48091.js'; | ||
import 'shiki'; | ||
@@ -275,3 +275,3 @@ import 'fs'; | ||
var version = "1.0.0-alpha.8"; | ||
var version = "1.0.0-alpha.9"; | ||
@@ -278,0 +278,0 @@ const argv = minimist(process.argv.slice(2)); |
@@ -5,4 +5,5 @@ import * as vite from 'vite'; | ||
import MarkdownIt from 'markdown-it'; | ||
import anchorPlugin from 'markdown-it-anchor'; | ||
import { TocPluginOptions } from '@mdit-vue/plugin-toc'; | ||
import { IThemeRegistration } from 'shiki'; | ||
import anchor from 'markdown-it-anchor'; | ||
@@ -354,5 +355,3 @@ declare namespace DefaultTheme { | ||
config?: (md: MarkdownIt) => void; | ||
anchor?: { | ||
permalink?: anchor.AnchorOptions['permalink']; | ||
}; | ||
anchor?: anchorPlugin.AnchorOptions; | ||
attrs?: { | ||
@@ -365,3 +364,3 @@ leftDelimiter?: string; | ||
theme?: ThemeOptions; | ||
toc?: any; | ||
toc?: TocPluginOptions; | ||
externalLinks?: Record<string, string>; | ||
@@ -368,0 +367,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export { g as build, f as createMarkdownRenderer, e as createServer, d as defineConfig, a as defineConfigWithTheme, r as resolveConfig, b as resolveSiteData, c as resolveSiteDataByRoute, s as serve } from './serve-cd8de79e.js'; | ||
export { g as build, f as createMarkdownRenderer, e as createServer, d as defineConfig, a as defineConfigWithTheme, r as resolveConfig, b as resolveSiteData, c as resolveSiteDataByRoute, s as serve } from './serve-dfb48091.js'; | ||
import 'node:dns'; | ||
@@ -3,0 +3,0 @@ import 'vite'; |
{ | ||
"name": "vitepress", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "Vite & Vue powered static site generator", | ||
@@ -63,2 +63,4 @@ "type": "module", | ||
"devDependencies": { | ||
"@mdit-vue/plugin-component": "^0.9.2", | ||
"@mdit-vue/plugin-toc": "^0.9.2", | ||
"@rollup/plugin-alias": "^3.1.9", | ||
@@ -107,3 +109,2 @@ "@rollup/plugin-commonjs": "^22.0.2", | ||
"markdown-it-emoji": "^2.0.2", | ||
"markdown-it-toc-done-right": "^4.2.0", | ||
"micromatch": "^4.0.5", | ||
@@ -110,0 +111,0 @@ "minimist": "^1.2.6", |
@@ -1,2 +0,35 @@ | ||
export * from '../dist/node/index.js' | ||
export * from '../dist/client/index.js' | ||
export * from './shared.js' | ||
export { | ||
Content, | ||
EnhanceAppContext, | ||
Route, | ||
Router, | ||
Theme, | ||
VitePressData, | ||
inBrowser, | ||
useData, | ||
useRoute, | ||
useRouter, | ||
withBase | ||
} from '../dist/client/index.js' | ||
export { | ||
MarkdownOptions, | ||
MarkdownParsedData, | ||
MarkdownRenderer, | ||
RawConfigExports, | ||
ServeOptions, | ||
SiteConfig, | ||
ThemeOptions, | ||
UserConfig, | ||
build, | ||
createMarkdownRenderer, | ||
createServer, | ||
defineConfig, | ||
defineConfigWithTheme, | ||
resolveConfig, | ||
resolveSiteData, | ||
resolveSiteDataByRoute, | ||
serve | ||
} from '../dist/node/index.js' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3890775
125652
65
15