Skip to content

Commit

Permalink
feat: upgrade to 3.2.1 (#46)
Browse files Browse the repository at this point in the history
## Description
Upgrades docusaurus to 3.2.1 to take advantage of
https://docusaurus.io/blog/releases/3.2#mdx-partials-table-of-contents

You can now create reusable partials such as `_toggle_props.mdx`, and
import them into another markdown page. This update will incorporate
those headings into the right sidebar nav (whereas before, it didn't)

## Screenshot


![image](https://github.com/infinitered/ir-docs/assets/374022/080f8329-feb8-4093-9f06-64111a44ab74)


## Example Code

```
---
sidebar_position: 32
---

import ToggleProps from './\_toggle_props.mdx';

# Checkbox

The `Checkbox` component provides a simple way to collect user input for a boolean value.

## Checkbox Props

### `icon`

The `icon` is a prop for the checkbox variant that allows you to customize the icon used for the "on" state.

```tsx
<Checkbox icon="ladybug" />
\```

<ToggleProps componentName="Checkbox" />
```
  • Loading branch information
frankcalise authored Oct 28, 2024
1 parent 7455161 commit a4bcdf7
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 195 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"postinstall": "node ./scripts/generate-slug.ts"
},
"dependencies": {
"@docusaurus/core": "3.1.1",
"@docusaurus/preset-classic": "3.1.1",
"@docusaurus/remark-plugin-npm2yarn": "^3.2.0",
"@docusaurus/core": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/remark-plugin-npm2yarn": "3.2.1",
"@mdx-js/react": "^3.0.0",
"brfs": "^2.0.2",
"browserify-fs": "^1.0.0",
Expand Down
Loading

0 comments on commit a4bcdf7

Please sign in to comment.