0.1.13 • Published 4 years ago

@jimengio/doc-frame v0.1.13

Weekly downloads
40
License
MIT
Repository
-
Last release
4 years ago

Doc Frame

Common UI for docs page.

Previews http://fe.jimu.io/doc-frame/

Usage

npm.io

yarn add --dev @jimengio/doc-frame
  • DocSidebar
import { DocSidebar, ISidebarEntry } from "@jimengio/doc-frame";

let docItems: ISidebarEntry[] = [
  {
    title: "Demo 1",
    cnTitle: "例1",
    path: "demo1",
  },
  {
    title: "Demo 2",
    cnTitle: "例2",
    path: "demo2",
  },
];

<DocSidebar items={docItems} currentPath={path} onSwitch={(item) => setPath(item.path)} />;
  • DocBlock

Markdown content rendered into block. When embed mode is activated, all borders and margins are removed:

<DocBlock content="markdown content" embed></DocBlock>
  • DocDemo

A card container with title and link:

<DocDemo title="Demo of demo" link={"TODO"}>
  <div>The demo</div>
</DocDemo>
  • DocSnippet
<DocSnippet code={code} lang={"typescript"} />

Workflow

https://github.com/jimengio/ts-workflow

License

MIT

0.1.13

4 years ago

0.1.13-a1

4 years ago

0.1.12

4 years ago

0.1.12-a1

4 years ago

0.1.11

4 years ago

0.1.11-a1

4 years ago

0.1.10

4 years ago

0.1.10-a1

4 years ago

0.1.9-a1

4 years ago

0.1.9

4 years ago

0.1.8-a2

4 years ago

0.1.8-a3

4 years ago

0.1.8

4 years ago

0.1.8-a1

4 years ago

0.1.7

4 years ago

0.1.7-a1

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.5-a3

4 years ago

0.1.5-a2

4 years ago

0.1.5-a1

4 years ago

0.1.4

4 years ago

0.1.4-a2

4 years ago

0.1.4-a1

4 years ago

0.1.3

5 years ago

0.1.3-a1

5 years ago

0.1.2

5 years ago

0.1.2-a4

5 years ago

0.1.2-a3

5 years ago

0.1.2-a2

5 years ago

0.1.2-a1

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.1.0-a5

5 years ago

0.1.0-a4

5 years ago

0.1.0-a3

5 years ago

0.1.0-a2

5 years ago

0.1.0-a1

5 years ago