Skip to content

Commit e6e8d4a

Browse files
committed
hide library index in sidebar
1 parent 607d51f commit e6e8d4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/scripts/generate-docs-utils/category/category-generator.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,7 @@ function ensureBaseCategory(libraryDir) {
393393
const description = 'API reference for all Compose modules and facets.';
394394

395395
// Create index.mdx for base library category
396-
// Hide from sidebar (sidebar_position: -1) so it doesn't appear as a duplicate
397-
// The category link in _category_.json will still work
396+
// Hide from sidebar (sidebar_class_name: "hidden") so it doesn't appear as a page in the sidebar
398397
createIndexFile(libraryDir, '', label, description, generateLabel, generateDescription, false, true);
399398

400399
const baseCategory = {

website/docs/library/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Library"
33
description: "API reference for all Compose modules and facets."
4+
sidebar_class_name: "hidden"
45
---
56

67
import DocCard, { DocCardGrid } from '@site/src/components/docs/DocCard';

0 commit comments

Comments
 (0)