vitepress 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
29
29
  <div class="main">
30
30
  <slot name="home-hero-info-before" />
31
31
  <slot name="home-hero-info">
32
- <h1>
32
+ <h1 class="heading">
33
33
  <span v-if="name" v-html="name" class="name clip"></span>
34
34
  <span v-if="text" v-html="text" class="text"></span>
35
35
  </h1>
@@ -125,9 +125,14 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
125
125
  }
126
126
  }
127
127
 
128
+ .heading {
129
+ display: flex;
130
+ flex-direction: column;
131
+ }
132
+
128
133
  .name,
129
134
  .text {
130
- display: inline-block;
135
+ width: fit-content;
131
136
  max-width: 392px;
132
137
  letter-spacing: -0.4px;
133
138
  line-height: 40px;
@@ -17188,7 +17188,10 @@ const dynamicRoutesPlugin = async (config) => {
17188
17188
  config.dynamicRoutes.fileToModulesMap[routeFile].add(id);
17189
17189
  let baseContent = fs.readFileSync(routeFile, "utf-8");
17190
17190
  if (content) {
17191
- baseContent = baseContent.replace(/<!--\s*@content\s*-->/, content);
17191
+ baseContent = baseContent.replace(
17192
+ /<!--\s*@content\s*-->/,
17193
+ content.replace(/\$/g, "$$$")
17194
+ );
17192
17195
  }
17193
17196
  return `__VP_PARAMS_START${JSON.stringify(
17194
17197
  params
@@ -49365,7 +49368,7 @@ async function generateSitemap(siteConfig) {
49365
49368
  });
49366
49369
  }
49367
49370
 
49368
- var version = "1.6.0";
49371
+ var version = "1.6.1";
49369
49372
 
49370
49373
  async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags, usedIcons) {
49371
49374
  const routePath = `/${page.replace(/\.md$/, "")}`;
package/dist/node/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as getDefaultExportFromCjs, u as c, n as disposeMdItInstance, v as clearCache, l as init, b as build, o as serve, w as version, q as createServer } from './chunk-BZEQqoFe.js';
1
+ import { t as getDefaultExportFromCjs, u as c, n as disposeMdItInstance, v as clearCache, l as init, b as build, o as serve, w as version, q as createServer } from './chunk-Fcjkb921.js';
2
2
  import { createLogger } from 'vite';
3
3
  import 'node:path';
4
4
  import 'node:url';
@@ -1,7 +1,7 @@
1
1
  import { normalizePath } from 'vite';
2
2
  export { loadEnv } from 'vite';
3
- import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, p as postcssPrefixSelector } from './chunk-BZEQqoFe.js';
4
- export { S as ScaffoldThemeType, b as build, q as createServer, a as defineConfig, e as defineConfigWithTheme, d as defineLoader, n as disposeMdItInstance, l as init, i as mergeConfig, r as resolveConfig, k as resolvePages, j as resolveSiteData, h as resolveUserConfig, s as scaffold, o as serve } from './chunk-BZEQqoFe.js';
3
+ import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, p as postcssPrefixSelector } from './chunk-Fcjkb921.js';
4
+ export { S as ScaffoldThemeType, b as build, q as createServer, a as defineConfig, e as defineConfigWithTheme, d as defineLoader, n as disposeMdItInstance, l as init, i as mergeConfig, r as resolveConfig, k as resolvePages, j as resolveSiteData, h as resolveUserConfig, s as scaffold, o as serve } from './chunk-Fcjkb921.js';
5
5
  import path from 'node:path';
6
6
  import 'node:crypto';
7
7
  import 'node:module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitepress",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Vite & Vue powered static site generator",
5
5
  "keywords": [
6
6
  "vite",