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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Run markdown-toc on ./README.md
(edits in place):
$ docker run -v `pwd`:/src quay.io/getpantheon/markdown-toc -i /src/README.md
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
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