Skip to content

Commit a1aaf0c

Browse files
committed
docs: remove duplicated headings
1 parent b74ceb2 commit a1aaf0c

9 files changed

Lines changed: 3 additions & 19 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
[📖  Read more](https://color-mode.nuxtjs.org)
3131

32-
**Note**: v3 of `@nuxtjs/color-mode` is compatible with [Nuxt 3 and Nuxt Bridge](https://nuxt.com). If you're looking for the previous version of this module, check out [the previous docs](https://v2.color-mode.nuxtjs.org/), or [read more about the differences](https://color-mode.nuxtjs.org/#migrating-to-v3).
32+
**Note**: v3 of `@nuxtjs/color-mode` is compatible with [Nuxt 3+ and Nuxt Bridge](https://nuxt.com). If you're looking for the previous version of this module, check out [the previous docs](https://v2.color-mode.nuxtjs.org/), or [read more about the differences](https://color-mode.nuxtjs.org/#migrating-to-v3).
3333

3434
## Contributing
3535

docs/content/1.getting-started/1.index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Introduction
33
description: Dark and light mode with auto detection made easy with Nuxt 🌗
44
---
55

6-
# Nuxt Color Mode
7-
86
Dark and light mode with auto detection made easy with Nuxt 🌗
97

108
## Features

docs/content/1.getting-started/2.installation.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Installation
33
description: Learn how to install and configure Nuxt Color Mode
44
---
55

6-
# Installation
7-
86
::callout
97
The current version of `@nuxtjs/color-mode` is compatible with [Nuxt 3+](https://nuxt.com). If you're looking for the previous version of this module, check out [v2.color-mode.nuxtjs.org](https://v2.color-mode.nuxtjs.org/).
108
::

docs/content/2.usage/1.basic.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Basic Usage
33
description: Learn how to use the color mode composable
44
---
55

6-
# Usage
7-
86
You can access the color mode helper by either calling `useColorMode()` or accessing `$colorMode` directly in your template. This helper has the following properties:
97

108
- `preference`: Actual color-mode selected (can be `'system'`), update it to change the user preferred color mode

docs/content/2.usage/2.force-mode.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Force Color Mode
33
description: Learn how to force a specific color mode on a page
44
---
55

6-
# Force a Color Mode
7-
86
You can force the color mode at the page level by setting the `colorMode` property using `definePageMeta`:
97

108
```html [pages/light.vue]

docs/content/2.usage/3.configuration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Configuration
33
description: Configure the Color Mode module
44
---
55

6-
# Configuration
7-
86
You can configure the module by providing the `colorMode` property in your `nuxt.config.ts`. Here are the default options:
97

108
```ts [nuxt.config.ts]

docs/content/3.advanced/1.caveats.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Caveats
33
description: Important considerations when using Color Mode
44
---
55

6-
# Caveats
7-
86
When `$colorMode.preference` is set to `'system'`, using `$colorMode` in your Vue template will lead to a flash. This is due to the fact that we cannot know the user preferences when pre-rendering the page since they are detected on client-side.
97

108
## Avoiding the Flash

docs/content/3.advanced/2.migration.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ title: Migrating to v3
33
description: Guide for migrating from v2 to v3
44
---
55

6-
# Migrating to v3
7-
8-
v3 of `@nuxtjs/color-mode` requires either Nuxt Bridge or Nuxt 3. If you are using Nuxt 2 without Bridge, you should continue to use v2.
6+
v3 of `@nuxtjs/color-mode` requires either Nuxt Bridge or Nuxt 3+. If you are using Nuxt 2 without Bridge, you should continue to use v2.
97

108
## Main Changes
119

1210
### 1. Page Meta Configuration
1311

14-
The main change between Nuxt 2 → Nuxt 3 is that you will define your color mode at the page level with `definePageMeta`:
12+
The main change between Nuxt 2 → Nuxt 3+ is that you will define your color mode at the page level with `definePageMeta`:
1513

1614
```diff
1715
<template>

docs/content/4.contributing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Contributing
33
description: Learn how to contribute to Nuxt Color Mode
44
---
55

6-
# Contributing
7-
86
Contributions are welcome! Here's how you can help improve Nuxt Color Mode.
97

108
## Development Setup

0 commit comments

Comments
 (0)