GithubHelp home page GithubHelp logo

harsilspatel / contents Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 11.87 MB

A github probot to generate table of contents for markdown files ๐Ÿค–

License: ISC License

JavaScript 100.00%
table-of-contents markdown automation pull-requests probot-app

contents's Introduction

contents

๐Ÿค– Contents helps generate table of contents with ease.

GIF ๐ŸŽž


Usage ๐Ÿ–ฑ

  1. Install the Contents GitHub App.
  2. Create your markdown(s).
  3. Open a new issue.

Manual ๐Ÿ“œ

Arguments Description Default
--path relative path of the markdown file from the root of the repo README.md
--ref The name of the commit/branch/tag master branch

WIP ๐Ÿšง

As of now, the bot creates a comment of the table-of-contents in the opened issue. Thereafter, the user has to perform the laborious task of copying the contents, navigating to the file in the correct branch, and pasting it.

However, the functionality can be further streamlined by:

  1. Creating a branch from the inputted branch
  2. Prepending the file with it's table-of-contents
  3. Creating a pull request from new branch to the inputted branch
  4. Creating a comment referencing the PR in the opened issue.

Thereafter, the user has to simply review the PR and merge it.

Motivation ๐Ÿ’ก

When I took the initiative to convert the Wired Constitution from .docx to .markdown, it dawned upon me that the generation of ToC should be automated and that's when I set out on the mission to address the issue :D

contents's People

Contributors

harsilspatel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

contents's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.