-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow edit code inside playground (#205)
* feat(docz): fetch data on documents * feat(rehype-docz): add dependencies scope on Playground * feat(docz-theme-default): add codemirror as editor * chore(rehype-docz): use replace instead of split join
- Loading branch information
1 parent
fa4ff40
commit 4f948f7
Showing
25 changed files
with
961 additions
and
796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/docz-theme-default/src/components/ui/Render/LiveConsumer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { withLive } from 'react-live' | ||
|
||
export const LiveConsumer = withLive<any>(({ live, children }) => | ||
children(live) | ||
) |
Oops, something went wrong.