All Projects → imfly → Gitbook Summary

imfly / Gitbook Summary

A command line tool to generate a summary.md for Gitbook

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gitbook Summary

Bitcoin On Nodejs
《Node.js区块链开发》,注:新版代码已开源!请star支持哦-^-:
Stars: ✭ 2,321 (+1500.69%)
Mutual labels:  bitcoin, gitbook
Coinbasepro Csharp
The unofficial .NET/C# client library for the Coinbase Pro/GDAX API
Stars: ✭ 143 (-1.38%)
Mutual labels:  bitcoin
Minsc
A Miniscript-based high-level scripting language for Bitcoin contracts
Stars: ✭ 137 (-5.52%)
Mutual labels:  bitcoin
Peatiocryptoexchange
An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
Stars: ✭ 141 (-2.76%)
Mutual labels:  bitcoin
Multicurrencywallet
Bitcoin, Ethereum, ERC20 crypto wallets with Atomic Swap exchange. Release announce: https://twitter.com/SwapOnlineTeam/status/1321844352369500160
Stars: ✭ 136 (-6.21%)
Mutual labels:  bitcoin
Coinflict Of Interest
Browser extension to show user biases on Crypto Twitter.
Stars: ✭ 142 (-2.07%)
Mutual labels:  bitcoin
Lstm Crypto Price Prediction
Predicting price trends in cryptomarkets using an lstm-RNN for the use of a trading bot
Stars: ✭ 136 (-6.21%)
Mutual labels:  bitcoin
Trezor Suite
🍬 Trezor Suite Monorepo
Stars: ✭ 144 (-0.69%)
Mutual labels:  bitcoin
Bitcoin Bubble Index
A visualization analysis tool for price bubble of Bitcoin, including basic price information, 60-days accumulative increase, hot keywords index, and bubble index.
Stars: ✭ 143 (-1.38%)
Mutual labels:  bitcoin
Paper Survey
📚Survey of previous research and related works on machine learning (especially Deep Learning) in Japanese
Stars: ✭ 140 (-3.45%)
Mutual labels:  summary
Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (-4.14%)
Mutual labels:  bitcoin
Awesome Bitcoin Cash
A curated list of awesome things related to Bitcoin Cash. Contribute yourself:
Stars: ✭ 136 (-6.21%)
Mutual labels:  bitcoin
Coinpusher
📈 real-time cryptocurrency chart prediction based on neuronal-networks
Stars: ✭ 141 (-2.76%)
Mutual labels:  bitcoin
Tradingview Webhook Bot
⚙️ Send TradingView alerts to Telegram, Discord, Slack, Twitter and/or Email.
Stars: ✭ 135 (-6.9%)
Mutual labels:  bitcoin
Opentimestamps Server
OpenTimestamps server component
Stars: ✭ 143 (-1.38%)
Mutual labels:  bitcoin
Explore Python
📗 The Beauty of Python Programming.
Stars: ✭ 1,966 (+1255.86%)
Mutual labels:  gitbook
Machine Deep Learning
👋 ML/DL学习笔记(基础+论文)
Stars: ✭ 140 (-3.45%)
Mutual labels:  summary
My Token
📈Track token prices of your favorite exchanges in terminal!
Stars: ✭ 141 (-2.76%)
Mutual labels:  bitcoin
Spec
[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
Stars: ✭ 145 (+0%)
Mutual labels:  bitcoin
Androiddevelopmentsummary
安卓开发总结——附带VPN翻墙
Stars: ✭ 144 (-0.69%)
Mutual labels:  summary

Gitbook Summary

npm version Build Status Dependencies Status Coverage Status

A command line tool to generate a SUMMARY.MD from a folder。Demo 中文文档

EBooks

More Gitbooks : https://www.gitbook.com/@imfly

Features

  • Generate SUMMARY.md by using a CLI with some options
  • Setting with book.json
  • Link README.md to the parent directory
  • Only get '.md' files
  • Order by alphabet or numbers
  • ...

CoC (Convention over Configuration)

Source directory:

sources
├── 1-FirstChapter   // The first chapter,format: {orderNumber or alphabet}-{chapterName}.md
├────── 1-FirstDocument.md
├────── 5-SecondDocument.md  // concentrating solely on the order, not the numbers.
├── 3-SecondChapter                     // Focus only on the order, not the numbers.
├────── 1-FirstDocumentOfSecondChapter.md
├────── 2-SecondDocumentOfSecondChapter.md  
├── 7-ThirdChapter
├── FourthChapter  // May have no order
├── README.md // In addition to readme.md, not to put other markdown documents
└── book.json     // Set up the book

Install

npm install -g gitbook-summary

Using

1> Generate a SUMMARY.md Simply

$ cd /path/to/your/book/
$ book sm

or, For example:

$ book sm -r ../sailsjs-docs-gitbook/en -i 0home -u 'myApp' -c 'concepts, reference, userguides' -n "Sails.js 官方文档(中英合辑)"

To see the command line options:

$ book sm --help

  Usage: summary|sm [options]

  Generate a `SUMMARY.md` from a folder

  Options:

    -h, --help                    output usage information
    -r, --root [string]           root folder, default is `.`
    -t, --title [string]          book title, default is `Your Book Title`.
    -c, --catalog [list]          catalog folders included book files, default is `all`.
    -i, --ignores [list]          ignore folders that be excluded, default is `[]`.
    -u, --unchanged [list]        unchanged catalog like `request.js`, default is `[]`.
    -o, --outputfile [string]     output file, defaut is `./SUMMARY.md`
    -s, --sortedBy [string]       sorted by sortedBy, for example: `num-`, defaut is sorted by characters
    -d, --disableTitleFormatting  don't convert filename/folder name to start case (for example: `JavaScript` to `Java Script`), default is `false`

Notes

  • The article title is taken from title property in the articles front-matter. If this property is not available, the articles filename will be used as title for the summary.
  • The option -s or --sortedBy can not be given - as argument, because commander.js will parse it an option. But you can set it in book.json as follows.
  • set up the sortedBy and if there are any summaries missing the order, look at the example below and follow,
    for example, you have summaries like this 01-elementry-school, 02-middle-school, 03-university, ...
    you realized high school was missing, then You can make correct order in the following way
    eg. 01-elementry-school, 02-middle-school, 02a-high-school, 03-university, ...
    not 01-elementry-school, 02-middle-school, 03-high-school, 04-university, ...

2> Create a book.json in the book`s root folder

for example:

// test/books/config-json/book.json
{
    "title": "json-config-name",
    "outputfile": "test.md",
    "catalog": "all",  // or [chapter1,chapter2, ...]
    "ignores": [],  //Default: '.*', '_book'...
    "unchanged": [], // for example: ['myApp'] -> `myApp` not `My App`
    "sortedBy": "-",
    "disableTitleFormatting": true // default: false
}

then, you can do:

$ book sm

You will get a test.md file:

test.md.jpg

3> Get a markdown artical from a html file or a remote url

$ book md -l "http://book.btcnodejs.com/index.html" -s "div.className"

You will get the 'index.html' and 'index.md'.

4> Get convert between zh and zh-tw, zh-hk, or zh-sg

$ book cv -f ./test/language/test.md -l zh-tw -t "./test/language/test2.md"

Development

npm install
npm link

Test

npm test

Todo

  • Convert articals between Simplified and Traditional Chinese.
  • Generate eBooks(html, pdf, etc) by extending gitbook;

Contribute

We love pull requests! You can fork it and commit a pr

License

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].