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.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
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));

or

<srcipt src=https://unpkg.com/gem-book></script>
const book = document.createElement('gem-book');
book.config = {...};
document.body.append(book);

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:

├── <README.md h1>
├── Guide
│   ├── <README.md h1>
│   └── Installation
└── About

develop

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

TODO

  • mobile style
  • docs

FAQs

Package last updated on 20 Oct 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