Giter Site home page Giter Site logo

peterdavehello / docker-doctoc Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 0.0 8 KB

Pack npm package "doctoc" into a docker image

Home Page: https://hub.docker.com/r/peterdavehello/npm-doctoc

Dockerfile 100.00%
docker doctoc markdown readme table-of-contents table-of-contents-generator docker-image hacktoberfest

docker-doctoc's Introduction

docker-doctoc

License Docker Hub Pulls

Docker Hub Badge

This Docker image packages the npm package doctoc, which generates a table of contents for Markdown files inside a local git repository. The generated links are compatible with anchors produced by GitHub and other platforms, thanks to a command line flag.

GitHub Repository:

Docker Hub Repository:

Basic Docker Usage

Use the following command to generate a table of contents for a specific Markdown file with the Docker image:

docker run --rm -v "$(pwd)":/app peterdavehello/npm-doctoc doctoc /app/README.md

Replace README.md with the path to your Markdown file. This command mounts the current directory to the /app folder inside the container and runs doctoc on the specified file. Docker will automatically pull the image if it's not already available locally.

Basic doctoc Command Parameters

Here are some basic doctoc command parameters for your reference:

  • --github (default): Generate GitHub-compatible links.
  • --bitbucket: Generate Bitbucket-compatible links.
  • --gitlab: Generate GitLab-compatible links.
  • --stdout: Print the generated table of contents to stdout instead of updating the file.

For more details and usage instructions, visit the doctoc homepage: https://github.com/thlorenz/doctoc

docker-doctoc's People

Contributors

peterdavehello avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-doctoc's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
  • node 20-alpine

  • Check this box to trigger a request for Renovate to run again on this repository

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.