1.3.27 • Published 3 years ago
@casianojr/docs v1.3.27
@lpgroup/docs
MDX parser library that returns a styled JSX.
Contents
Getting Started
The objective of this library is to parse MDX files and convert them into a ready-made 'documentation format'.
yarn create vite
Installation
To install this library, we can run in the command line.
# via yarn
yarn add @lpgroup/docs
# via npm
npm install --save @lpgroup/docs
MDX Setup
import React from "react";
import LPDocs, { DocsSkeleton } from "@lpgroup/docs";
import { SampleLogo, Footer } from "./custom/SampleLogo";
const Pages = React.lazy(() => import("./pages/v1"));
function App() {
return (
<LPDocs Logo={SampleLogo} Footer={Footer} sideBarHeight={60} isAuth={true} textAlign={"justify"}>
<React.Suspense fallback={<DocsSkeleton />}>
<Pages />
</React.Suspense>
</LPDocs>
);
}
export default App;
Contribute
See contribute
License
MIT - See licence