Skip to content

Commit

Permalink
feat(web): add v2 components for docs (novuhq#5975)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Fontein <[email protected]>
  • Loading branch information
davidsoderberg and rifont authored Aug 16, 2024
1 parent 6ab86b5 commit e3e82d8
Show file tree
Hide file tree
Showing 18 changed files with 523 additions and 357 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"htmlonly",
"apidevtools",
"contenteditable",
"Contextand",
"powerpack",
"deepmerge",
"kebabcase",
Expand Down
12 changes: 12 additions & 0 deletions apps/web/src/components/docs/ChildDocs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Docs } from './Docs';
import { useLoadDocs } from './useLoadDocs';

/**
* This component is used to load imported docs in main docs path.
* It will not have a title and description.
*/
export const ChildDocs = ({ path }: { path: string }) => {
const { isLoading, data } = useLoadDocs({ path, isEnabled: true });

return <Docs isLoading={isLoading} isChildDocs {...data}></Docs>;
};
Loading

0 comments on commit e3e82d8

Please sign in to comment.