Skip to content

Commit 29b8f76

Browse files
committed
chore: format
1 parent cfe7e9f commit 29b8f76

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

docs/guide/deploy.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The following guides are based on some shared assumptions:
4545
}
4646
```
4747

48-
Now the `docs:preview` method will launch the server at `http://localhost:8080`.
48+
Now the `docs:preview` method will launch the server at `http://localhost:8080`.
4949

5050
## Setting a Public Base Path
5151

@@ -65,7 +65,7 @@ This `4f283b18` hash is generated from the content of this file. The same hashed
6565
Cache-Control: max-age=31536000,immutable
6666
```
6767

68-
:::details Example Netlify `_headers` file
68+
::: details Example Netlify `_headers` file
6969

7070
```
7171
/assets/*
@@ -79,7 +79,7 @@ Note: the `_headers` file should be placed in the [public directory](/guide/asse
7979

8080
:::
8181

82-
:::details Example Vercel config in `vercel.json`
82+
::: details Example Vercel config in `vercel.json`
8383

8484
```json
8585
{

docs/guide/extending-default-theme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ However, there are a number of cases where configuration alone won't be enough.
1010

1111
These advanced customizations will require using a custom theme that "extends" the default theme.
1212

13-
:::tip
13+
::: tip
1414
Before proceeding, make sure to first read [Using a Custom Theme](./custom-theme) to understand how custom themes work.
1515
:::
1616

@@ -58,7 +58,7 @@ export default DefaultTheme
5858
}
5959
```
6060

61-
:::warning
61+
::: warning
6262
If you are using optional components like the [Team Page](/reference/default-theme-team-page) components, make sure to also import them from `vitepress/theme-without-fonts`!
6363
:::
6464

docs/guide/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ You will be greeted with a few simple questions:
6969
<img src="./vitepress-init.png" alt="vitepress init screenshot" style="border-radius:8px">
7070
</p>
7171

72-
:::tip Vue as Peer Dependency
72+
::: tip Vue as Peer Dependency
7373
If you intend to perform customization that uses Vue components or APIs, you should also explicitly install `vue` as a peer dependency.
7474
:::
7575

@@ -92,7 +92,7 @@ Assuming you chose to scaffold the VitePress project in `./docs`, the generated
9292

9393
The `docs` directory is considered the **project root** of the VitePress site. The `.vitepress` directory is a reserved location for VitePress' config file, dev server cache, build output, and optional theme customization code.
9494

95-
:::tip
95+
::: tip
9696
By default, VitePress stores its dev server cache in `.vitepress/cache`, and the production build output in `.vitepress/dist`. If using Git, you should add them to your `.gitignore` file. These locations can also be [configured](../reference/site-config#outdir).
9797
:::
9898

docs/guide/routing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Learn more about linking to assets such images in [Asset Handling](asset-handlin
9797

9898
## Generating Clean URL
9999

100-
:::warning Server Support Required
100+
::: warning Server Support Required
101101
To serve clean URLs with VitePress, server-side support is required.
102102
:::
103103

@@ -172,7 +172,7 @@ export default {
172172

173173
The rewrite paths are compiled using the `path-to-regexp` package - consult [its documentation](https://github.com/pillarjs/path-to-regexp#parameters) for more advanced syntax.
174174

175-
:::warning Relative Links with Rewrites
175+
::: warning Relative Links with Rewrites
176176

177177
When rewrites are enabled, **relative links should be based on the rewritten paths**. For example, in order to create a relative link from `packages/pkg-a/src/pkg-a-code.md` to `packages/pkg-b/src/pkg-b-code.md`, you should use:
178178

docs/guide/using-vue.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In VitePress, each Markdown file is compiled into HTML and then processed as a [
44

55
It's worth noting that VitePress leverages Vue's compiler to automatically detect and optimize the purely static parts of the Markdown content. Static contents are optimized into single placeholder nodes and eliminated from the page's JavaScript payload for initial visits. They are also skipped during client-side hydration. In short, you only pay for the dynamic parts on any given page.
66

7-
:::tip SSR Compatibility
7+
::: tip SSR Compatibility
88
All Vue usage needs to be SSR-compatible. See [SSR Compatibility](./ssr-compat) for details and common workarounds.
99
:::
1010

@@ -67,7 +67,7 @@ The count is: {{ count }}
6767
</style>
6868
```
6969

70-
:::warning Avoid `<style scoped>` in Markdown
70+
::: warning Avoid `<style scoped>` in Markdown
7171
When used in Markdown, `<style scoped>` requires adding special attributes to every element on the current page, which will significantly bloat the page size. `<style module>` is preferred when locally-scoped styling is needed in a page.
7272
:::
7373

0 commit comments

Comments
 (0)