` element. If you want to add block elements, consider using [`layout-bottom`](../guide/extending-default-theme#layout-slots) slot instead. +You can only use inline elements in `message` and `copyright`, as they are rendered inside a `
` element. If you want to add block elements, consider using the [`layout-bottom`](../guide/extending-default-theme#layout-slots) slot instead.
:::
Note that footer will not be displayed when the [SideBar](./default-theme-sidebar) is visible.
## Frontmatter Config
-This can be disabled per-page using the `footer` option on frontmatter:
+This can be disabled per-page using the `footer` option in each individual page's frontmatter:
```yaml
---
diff --git a/docs/en/reference/default-theme-home-page.md b/docs/en/reference/default-theme-home-page.md
index f7baecca0138..6d7529706d7b 100644
--- a/docs/en/reference/default-theme-home-page.md
+++ b/docs/en/reference/default-theme-home-page.md
@@ -1,6 +1,6 @@
# Home Page
-VitePress default theme provides a homepage layout, which you can also see used on [the homepage of this site](../). You may use it on any of your pages by specifying `layout: home` in the [frontmatter](./frontmatter-config).
+VitePress's default theme provides a homepage layout, which looks like [this site's homepage](../). You can use it on any of your pages by specifying `layout: home` in the [frontmatter](./frontmatter-config).
```yaml
---
@@ -8,11 +8,11 @@ layout: home
---
```
-However, this option alone wouldn't do much. You can add several different pre templated "sections" to the homepage by setting additional other options such as `hero` and `features`.
+On its own, the option doesn't change much—you instead need to specify slots using the frontmatter that then get applied to the page.
## Hero Section
-The Hero section comes at the top of the homepage. Here's how you can configure the Hero section.
+The hero section is rendered at the top of the homepage:
```yaml
---
@@ -37,21 +37,21 @@ hero:
```ts
interface Hero {
- // The string shown top of `text`. Comes with brand color
- // and expected to be short, such as product name.
+ // The string shown on top of `text`. Rendered with brand color
+ // and expected to be short, such as the product name.
name?: string
// The main text for the hero section. This will be defined
- // as `h1` tag.
+ // as an `h1` tag.
text: string
// Tagline displayed below `text`.
tagline?: string
- // The image is displayed next to the text and tagline area.
+ // Image displayed next to the text and tagline.
image?: ThemeableImage
- // Action buttons to display in home hero section.
+ // Action buttons to display below text and image.
actions?: HeroAction[]
}
@@ -64,10 +64,10 @@ interface HeroAction {
// Color theme of the button. Defaults to `brand`.
theme?: 'brand' | 'alt'
- // Label of the button.
+ // Button label.
text: string
- // Destination link of the button.
+ // Destination link for the button.
link: string
// Link target attribute.
@@ -80,7 +80,7 @@ interface HeroAction {
### Customizing the name color
-VitePress uses the brand color (`--vp-c-brand-1`) for the `name`. However, you may customize this color by overriding `--vp-home-hero-name-color` variable.
+By default, VitePress uses the brand color (`--vp-c-brand-1`) for the `name`. This can be customized by overriding `--vp-home-hero-name-color`.
```css
:root {
@@ -88,7 +88,7 @@ VitePress uses the brand color (`--vp-c-brand-1`) for the `name`. However, you m
}
```
-Also you may customize it further by combining `--vp-home-hero-name-background` to give the `name` gradient color.
+You can also customize the name further by combining it with `--vp-home-hero-name-background` for a gradient.
```css
:root {
@@ -99,9 +99,9 @@ Also you may customize it further by combining `--vp-home-hero-name-background`
## Features Section
-In Features section, you can list any number of features you would like to show right after the Hero section. To configure it, pass `features` option to the frontmatter.
+In the features section, you can list any number of feature cards you want shown under the hero section. To enable it, pass the `features` option to the frontmatter.
-You can provide an icon for each feature, which can be an emoji or any type of image. When the configured icon is an image (svg, png, jpeg...), you must provide the icon with the proper width and height; you can also provide the description, its intrinsic size as well as its variants for dark and light theme when required.
+You can provide an emoji or image icon for each feature. When the configured icon is an image (svg, png, jpeg, etc), you must provide the icon with a proper width and height. You can also provide a description, its intrinsic size, as well as variants for dark and light mode.
```yaml
---
@@ -169,7 +169,7 @@ type FeatureIcon =
## Markdown Content
-You can add additional content to your site's homepage just by adding Markdown below the `---` frontmatter divider.
+You can add additional content to your site's homepage by adding Markdown below the `---` frontmatter divider.
````md
---
@@ -191,5 +191,5 @@ npx vitepress init
````
::: info
-VitePress didn't always auto-style the extra content of the `layout: home` page. To revert to older behavior, you can add `markdownStyles: false` to the frontmatter.
+VitePress didn't always automatically style additional homepage content. To revert to the previously-used behavior, add `markdownStyles: false` to the frontmatter.
:::
diff --git a/docs/en/reference/default-theme-last-updated.md b/docs/en/reference/default-theme-last-updated.md
index 55603269923f..6efe6ebe72b3 100644
--- a/docs/en/reference/default-theme-last-updated.md
+++ b/docs/en/reference/default-theme-last-updated.md
@@ -1,6 +1,6 @@
# Last Updated
-The update time of the last content will be displayed in the lower right corner of the page. To enable it, add `lastUpdated` options to your config.
+You can show the last time content was updated in the lower right corner of the page. To enable it, add the `lastUpdated` options to your config.
::: info
VitePress displays the "last updated" time using the timestamp of the most recent Git commit for each file. To enable this, the Markdown file must be committed to Git.
@@ -18,7 +18,7 @@ To fix this in **GitHub Actions**, use the following in your workflow:
Other CI/CD platforms have similar settings.
-If such options aren't available, you can prepend the `docs:build` command in your `package.json` with a manual fetch:
+If these options aren't available, you can prepend the `docs:build` command in your `package.json` with a manual fetch:
```json
"docs:build": "git fetch --unshallow && vitepress build docs"
@@ -35,7 +35,7 @@ export default {
## Frontmatter Config
-This can be disabled per-page using the `lastUpdated` option on frontmatter:
+This can be disabled per-page using the `lastUpdated` option in each individual page's frontmatter:
```yaml
---
@@ -43,4 +43,4 @@ lastUpdated: false
---
```
-Also refer [Default Theme: Last Updated](./default-theme-config#lastupdated) for more details. Any truthy value at theme-level will also enable the feature unless explicitly disabled at site or page level.
+Also refer to [Default Theme: Last Updated](./default-theme-config#lastupdated) for more details. Any truthy value at the theme-level will also enable the feature unless explicitly disabled at the site or page level.
diff --git a/docs/en/reference/default-theme-layout.md b/docs/en/reference/default-theme-layout.md
index 246e20fa9f04..c8268924da7b 100644
--- a/docs/en/reference/default-theme-layout.md
+++ b/docs/en/reference/default-theme-layout.md
@@ -1,6 +1,6 @@
# Layout
-You may choose the page layout by setting `layout` option to the page [frontmatter](./frontmatter-config). There are 3 layout options, `doc`, `page`, and `home`. If nothing is specified, then the page is treated as `doc` page.
+You can choose the page layout by setting the `layout` option on the page's [frontmatter](./frontmatter-config). There are three layout options: `doc`, `page`, and `home`. By default, pages use the `doc` layout.
```yaml
---
@@ -10,32 +10,32 @@ layout: doc
## Doc Layout
-Option `doc` is the default layout and it styles the whole Markdown content into "documentation" look. It works by wrapping whole content within `vp-doc` css class, and applying styles to elements underneath it.
+The `doc` option is the default layout and it styles the Markdown content to look like a documentation page. It wraps the whole content in the `vp-doc` CSS class, which applies styles to elements in it.
-Almost all generic elements such as `p`, or `h2` get special styling. Therefore, keep in mind that if you add any custom HTML inside a Markdown content, those will get affected by those styles as well.
+Almost all generic elements like `p` or `h2` have special styling, so keep in mind that custom HTML inside Markdown content will also get affected.
-It also provides documentation specific features listed below. These features are only enabled in this layout.
+It also provides documentation specific features, which are are only enabled when using this layout:
-- Edit Link
-- Prev Next Link
+- [Edit Link](./default-theme-edit-link)
+- [Previous/Next Links](./default-theme-prev-next-links)
- Outline
- [Carbon Ads](./default-theme-carbon-ads)
## Page Layout
-Option `page` is treated as "blank page". The Markdown will still be parsed, and all of the [Markdown Extensions](../guide/markdown) work as same as `doc` layout, but it wouldn't get any default stylings.
+The `page` option is treated as as a blank page. Markdown will still be parsed, and all of the [Markdown Extensions](../guide/markdown) work the same as in the `doc` layout, but there is no default styling.
-The page layout will let you style everything by you without VitePress theme affecting the markup. This is useful when you want to create your own custom page.
+This layout will let you style everything yourself without VitePress theming affecting the markup. This is useful for creating entirely custom pages.
-Note that even in this layout, sidebar will still show up if the page has a matching sidebar config.
+Note that even in this layout, the sidebar will still show up if the page has a matching sidebar configuration.
## Home Layout
-Option `home` will generate templated "Homepage". In this layout, you can set extra options such as `hero` and `features` to customize the content further. Please visit [Default Theme: Home Page](./default-theme-home-page) for more details.
+The `home` option will generate a templated home page. With the default layout, you can set extra frontmatter options such as `hero` and `features` to customize the content further. Please read [Default Theme: Home Page](./default-theme-home-page) for more details.
## No Layout
-If you don't want any layout, you can pass `layout: false` through frontmatter. This option is helpful if you want a fully-customizable landing page (without any sidebar, navbar, or footer by default).
+If you don't want any layout, you can pass `layout: false` in the frontmatter. This option is helpful if you want a fully-customizable landing page, without any sidebar, navbar, or footer.
## Custom Layout
@@ -47,7 +47,7 @@ layout: foo
---
```
-This will look for a component named `foo` registered in context. For example, you can register your component globally in `.vitepress/theme/index.ts`:
+This will look for a component named `foo` registered in context. You can register your component globally in `.vitepress/theme/index.ts`:
```ts
import DefaultTheme from 'vitepress/theme'
diff --git a/docs/en/reference/default-theme-nav.md b/docs/en/reference/default-theme-nav.md
index b55a63cb1b5e..c81184f27ced 100644
--- a/docs/en/reference/default-theme-nav.md
+++ b/docs/en/reference/default-theme-nav.md
@@ -1,6 +1,6 @@
# Nav
-The Nav is the navigation bar displayed on top of the page. It contains the site title, global menu links, etc.
+The Nav is the navigation bar displayed on top of the page. It contains the site title, global menu links, and the theme slider.
## Site Title and Logo
@@ -24,7 +24,7 @@ export default {
}
```
-When adding a logo, it gets displayed along with the site title. If your logo is all you need and if you would like to hide the site title text, set `false` to the `siteTitle` option.
+When adding a logo, it gets displayed along with the site title. If your logo is all you need and if you would like to hide the site title text, set `siteTitle` to `false`.
```js
export default {
@@ -35,11 +35,11 @@ export default {
}
```
-You can also pass an object as logo if you want to add `alt` attribute or customize it based on dark/light mode. Refer [`themeConfig.logo`](./default-theme-config#logo) for details.
+You can also pass an object as a logo if you want to add an `alt` attribute or customize it based on dark/light mode. Refer to [`themeConfig.logo`](./default-theme-config#logo) for more details.
## Navigation Links
-You may define `themeConfig.nav` option to add links to your nav.
+You can define the `themeConfig.nav` option to add links to your navigation bar.
```js
export default {
@@ -53,9 +53,9 @@ export default {
}
```
-The `text` is the actual text displayed in nav, and the `link` is the link that will be navigated to when the text is clicked. For the link, set path to the actual file without `.md` prefix, and always start with `/`.
+The `text` will be the text displayed in nav, and the `link` is where the text will send you. Always start links with `/` and omit the `.md` suffix when linking to pages.
-Nav links can also be dropdown menus. To do this, set `items` key on link option.
+Nav links can also be dropdown menus. To do this, set the `items` key on the given link option.
```js
export default {
@@ -75,9 +75,9 @@ export default {
}
```
-Note that dropdown menu title (`Dropdown Menu` in the above example) can not have `link` property since it becomes a button to open dropdown dialog.
+Note that the dropdown menu title (`Dropdown Menu` in the above example) can not have `link` property, since it becomes a button to open the dropdown dialog.
-You may further add "sections" to the dropdown menu items as well by passing in more nested items.
+You can add "sections" to the dropdown menu items as well by passing in more nested items.
```js
export default {
@@ -101,7 +101,7 @@ export default {
text: 'Dropdown Menu',
items: [
{
- // You may also omit the title.
+ // You can also omit the title.
items: [
{ text: 'Section A Item A', link: '...' },
{ text: 'Section B Item B', link: '...' }
@@ -116,7 +116,7 @@ export default {
### Customize link's "active" state
-Nav menu items will be highlighted when the current page is under the matching path. if you would like to customize the path to be matched, define `activeMatch` property and regex as a string value.
+Navigation menu items will be highlighted when the current page is under the matching path. if you would like to customize the path to be matched, define the `activeMatch` property as a regular expression string.
```js
export default {
@@ -135,12 +135,12 @@ export default {
```
::: warning
-`activeMatch` is expected to be a regex string, but you must define it as a string. We can't use actual RegExp object here because it isn't serializable during the build time.
+`activeMatch` is expected to be a regular expression, but you must define it as a string. We can't use an actual RegExp object here because it cannot be serialized during the build time.
:::
-### Customize link's "target" and "rel" attributes
+### Customize the link's "target" and "rel" attributes
-By default, VitePress automatically determines `target` and `rel` attributes based on whether the link is an external link. But if you want, you can customize them too.
+By default, VitePress tries to automatically determine the `target` and `rel` attributes based on whether the link is external or not. You can override this behavior by passing the options in directly.
```js
export default {
@@ -159,7 +159,7 @@ export default {
## Social Links
-Refer [`socialLinks`](./default-theme-config#sociallinks).
+Refer to [`socialLinks`](./default-theme-config#sociallinks).
## Custom Components
@@ -209,6 +209,6 @@ export default {
Your component will be rendered in the navigation bar. VitePress will provide the following additional props to the component:
-- `screenMenu`: an optional boolean indicating whether the component is inside mobile navigation menu
+- `screenMenu`: an optional boolean indicating whether the component is inside the mobile navigation menu
You can check an example in the e2e tests [here](https://github.com/vuejs/vitepress/tree/main/__tests__/e2e/.vitepress).
diff --git a/docs/en/reference/default-theme-prev-next-links.md b/docs/en/reference/default-theme-prev-next-links.md
index 7befe179b5bc..d0603c799c6f 100644
--- a/docs/en/reference/default-theme-prev-next-links.md
+++ b/docs/en/reference/default-theme-prev-next-links.md
@@ -1,6 +1,6 @@
# Prev Next Links
-You can customize the text and link for the previous and next pages (shown at doc footer). This is helpful if you want a different text there than what you have on your sidebar. Additionally, you may find it useful to disable the footer or link to a page that is not included in your sidebar.
+You can customize the text and link for the previous and next pages (shown at doc footer). This is helpful if you want different text there than what's on the sidebar. Additionally, you may find it useful to disable the footer or link to a page that is not included in your sidebar.
## prev
@@ -8,7 +8,7 @@ You can customize the text and link for the previous and next pages (shown at do
- Details:
- Specifies the text/link to show on the link to the previous page. If you don't set this in frontmatter, the text/link will be inferred from the sidebar config.
+ Specifies the text/link to show on the link to the previous page. If you don't set this in frontmatter, the text/link will be inferred from the sidebar configuration.
- Examples:
@@ -30,7 +30,7 @@ You can customize the text and link for the previous and next pages (shown at do
---
```
- - To hide previous page:
+ - To hide the previous page link:
```yaml
---
@@ -40,4 +40,4 @@ You can customize the text and link for the previous and next pages (shown at do
## next
-Same as `prev` but for the next page.
+`next` has the same interface and caveats as `prev`, but for the next page.
diff --git a/docs/en/reference/default-theme-search.md b/docs/en/reference/default-theme-search.md
index 6bc2f4462cfd..dd0baf3d570a 100644
--- a/docs/en/reference/default-theme-search.md
+++ b/docs/en/reference/default-theme-search.md
@@ -6,7 +6,7 @@ outline: deep
## Local Search
-VitePress supports fuzzy full-text search using an in-browser index thanks to [minisearch](https://github.com/lucaong/minisearch/). To enable this feature, simply set the `themeConfig.search.provider` option to `'local'` in your `.vitepress/config.ts` file:
+VitePress supports fuzzy full-text search using the [minisearch](https://github.com/lucaong/minisearch/) in-browser index. To enable this feature, simply set the `themeConfig.search.provider` option to `'local'` in your `.vitepress/config.ts` file:
```ts
import { defineConfig } from 'vitepress'
@@ -24,7 +24,7 @@ Example result:

-Alternatively, you can use [Algolia DocSearch](#algolia-search) or some community plugins like:
+Alternatively, you can use [Algolia DocSearch](#algolia-search) or community plugins like:
-