pantheon-systems/markdown-toc-docker

Name: markdown-toc-docker

Owner: Pantheon

Description: markdown-toc CLI in a small docker container

Created: 2016-10-09 00:58:29.0

Updated: 2016-12-30 11:04:24.0

Pushed: 2016-10-10 21:29:23.0

Homepage: null

Size: 7

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

markdown-toc-docker

This is a docker container containing an installation of markdown-toc.

It's purpose is to provide a convenient way to use markdown-toc without having to install node.js or npm.

Basic Usage

Run markdown-toc on ./README.md (edits in place):

$ docker run -v `pwd`:/src quay.io/getpantheon/markdown-toc -i /src/README.md
Makefile Usage

Use as a Makefile task readme-toc:

readme-toc: ## update the Table of Contents in ./README.md
    docker run --rm -v `pwd`:/src quay.io/getpantheon/markdown-toc -i /src/README.md

Workflow:

$ vim README.md
$ make readme-toc
$ git commit README.md
Building

There is no make task for building the docker container because this repo is setup to auto-build on quay.io whenever a new branch is pushed to Github. See here: https://quay.io/repository/getpantheon/markdown-toc


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.