Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ifuture-pro/listify

Generate and merge table of contents for markdown file . Add it to README.md or other files
https://github.com/ifuture-pro/listify

blog directory document list-of-contents listify markdown table-of-contents

Last synced: about 2 months ago
JSON representation

Generate and merge table of contents for markdown file . Add it to README.md or other files

Awesome Lists containing this project

README

        

Welcome to listify 👋




Version


Version


npm


Documentation


Maintenance


License: MIT

> Auto generate table of contents
> Generate and merge all directories to the specified file.

### ✨ Example
* [Demo](demo/README.md)
* [Example with Docsify](https://developer.ifuture.pro/)

## Install

```sh
npm install @ifuture/listify -g
```

## Usage

```sh
listify ./
```
**options**
- `--out` Result out file. Default: work dir README.md
- `--maxlevel` Header level. Default: 4
- `--title` The Title of list
- `--containroot` Contain root path.When linked in local,change it `true`.Default: `false`
- `--suffix` contain file suffix in out file.Default: `false`
- `--exclude` Exclude files.
e.g.
Ignore multi file `--exclude a.md --exclude b.md `
Support regexp. Ignore start with `_` `--exclude='^_\S*'`
- `--blog` parse YAML `frontmatter` block in the Markdown file.
Front matter options `title`,`publish`
- `--package` Parent directory as the first header
- `--single` Directories in single. Default:false
- `--merge` Merge directories. Default:true
- `--exclude_dir` Exclude dir.

## Github actions
[GitHub Actions](https://github.com/features/actions) makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.

When you push document . It will generate list of contents to specified file.
[Marketplace](https://github.com/marketplace/actions/listify-actions) :fire:

## Author

👤 **ifuture**

* Website: https://ifuture.pro
* Github: [@ifuture-pro](https://github.com/ifuture-pro)

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2019 [ifuture](https://github.com/ifuture-pro).

This project is [MIT](https://github.com/ifuture-pro/listify/blob/master/LICENSE) licensed.

***

## Thanks

[readme-md-generator](https://github.com/kefranabg/readme-md-generator) ❤️