mirror of
https://github.com/clearml/clearml-docs
synced 2025-06-26 18:17:44 +00:00
collapsible panel redesign (#487)
This commit is contained in:
20
src/theme/MDXComponents.js
Normal file
20
src/theme/MDXComponents.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
// Import the original mapper
|
||||
import MDXComponents from '@theme-original/MDXComponents';
|
||||
import Collapsible from '../components/Collapsible';
|
||||
|
||||
export default {
|
||||
// Re-use the default mapping
|
||||
...MDXComponents,
|
||||
// Map the "collapsible" tag to our <Collapsible /> component!
|
||||
// `Collapsible` will receive all props that were passed to `collapsible` in MDX
|
||||
Collapsible,
|
||||
};
|
||||
Reference in New Issue
Block a user