Skip to content

Commit 19ebb86

Browse files
Refactor documentation description formatting and streamline header theme attribute selection in VitePress
1 parent 5732dc0 commit 19ebb86

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ export default {
207207
* `isDark` (same source of truth as the toggle).
208208
*/
209209
const syncOssHeaderThemeAttr = (dark: boolean) => {
210-
const header = document.querySelector(
211-
".docs-layout header",
212-
) as HTMLElement | null;
210+
const header = document.querySelector(".docs-layout header") as HTMLElement | null;
213211
const bar = header?.parentElement;
214212
if (!bar) return;
215213
if (dark) bar.setAttribute("data-theme", "dark");

docs/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
22
layout: doc
33
title: Plane Docs
4-
description:
5-
Everything you need to learn Plane, manage projects, and build powerful
6-
workflows.
4+
description: Everything you need to learn Plane, manage projects, and build powerful workflows.
75
---
86

97
<!-- @format -->

0 commit comments

Comments
 (0)