File tree 2 files changed +3
-7
lines changed
docs/src/modules/components
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default function MarkdownDocsV2(props) {
81
81
82
82
const localizedDoc = docs [ userLanguage ] || docs . en ;
83
83
// Generate the TOC based on the tab
84
- const demosToc = localizedDoc . toc . filter ( ( item ) => item . text !== 'API' ) ;
84
+ const demosToc = localizedDoc . toc ;
85
85
86
86
function createHookTocEntry ( hookName , sectionName , hookProps = { } ) {
87
87
const hookPropToc = [ ] ;
@@ -275,11 +275,7 @@ export default function MarkdownDocsV2(props) {
275
275
{ commonElements }
276
276
{ activeTab === '' &&
277
277
localizedDoc . rendered
278
- // for the "hook only" edge case, for example Base UI autocomplete
279
- . slice (
280
- i ,
281
- localizedDoc . rendered . length - ( localizedDoc . headers . components . length > 0 ? 1 : 0 ) ,
282
- )
278
+ . slice ( i )
283
279
. map ( ( renderedMarkdownOrDemo , index ) => (
284
280
< RichMarkdownElement
285
281
key = { `demos-section-${ index } ` }
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ This unstyled version of the component is the ideal choice for heavy customizati
110
110
` ) ;
111
111
}
112
112
113
- if ( headers . components . length > 0 ) {
113
+ if ( headers . components . length > 0 && headers . productId !== 'base-ui' ) {
114
114
contents . push ( `
115
115
## API
116
116
You can’t perform that action at this time.
0 commit comments