Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artcom/gitbook-plugin-ellipsize
Plugin for gitbook that replaces blocks of code by ellipsis
https://github.com/artcom/gitbook-plugin-ellipsize
Last synced: about 1 month ago
JSON representation
Plugin for gitbook that replaces blocks of code by ellipsis
- Host: GitHub
- URL: https://github.com/artcom/gitbook-plugin-ellipsize
- Owner: artcom
- Created: 2016-01-15T14:48:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-21T07:44:50.000Z (about 9 years ago)
- Last Synced: 2024-11-07T06:36:37.302Z (3 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitbook-plugin-ellipsize
Replace blocks of code by ellipsis
## Installation:
`$ npm install artcom/gitbook-plugin-ellipsize --save`
Add this to `book.json`:
```
{
"plugins": ["ellipsize"]
}
```## Usage
Define blocks of code that should be omitted with:
```
/* begin ellipsize */[code that should not be shown on a gitbook page]
/* end ellipsize */
```This code will be replaced by `// ...` when rendered inside a gitbook page.