Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jimengio/doc-frame

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimengio/doc-frame

> Common UI for docs page.

  • 0.1.13
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-95.65%
Maintainers
5
Weekly downloads
 
Created
Source

Doc Frame

Common UI for docs page.

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

Usage

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

FAQs

Package last updated on 21 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc