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

gem-book

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gem-book

[Docute](https://github.com/egoist/docute) gem implementation

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
103
increased by3333.33%
Maintainers
1
Weekly downloads
 
Created
Source

<gem-book>

Docute gem implementation

usage

# install dependencies
npm i gem-book
# build configuration, specify the document directory `docs`
# save the configuration file to the src directory, default filename `book.json`
npx gem-book -o src docs

configuration file example: book.json.

next use custom elements <gem-book>

// use `lit-html`
import 'gem-book';
import config from './book.json';
html`
  <gem-book .config=${config}></gem-book>
`;

or

// use DOM API
import { Book } from 'gem-book';
import config from './book.json';
document.body.append(new Book(config));

sort

<gem-book> just add the priority number to the document folder name and file name, e.g:

src/examples/hello/docs/
├── 002-guide
│   ├── README.md
│   └── installation.md
├── 003-about.md
└── README.md

output:

├── Introduction
├── Guide
│   ├── Test
│   └──  Installation
└── About

develop

# install the cli locally
npm link
# development cli
npm run watch
# development `<gem-book>`
npm run example

TODO

  • mobile

FAQs

Package last updated on 24 Jan 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