Skip to content

DougLeonard/DOCTOC_action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOCTOC_action TOC generator

An auto table of contents generator action for github wikis and repos.

It just runs doctoc . to autogenerate tables of contents for all .md files in the repo, ignoring files starting with <!--DOCTOC SKIP-->. Presently no other filters or controls exist.

The other action I found seemingly using DOCTOC failed to recognize <!--DOCTOC SKIP--> (maybe fixed now), and one using an alternative engine produced broken TOC's in some cases. Anyway, this is a very simple and transparent implementation directly using thlorenz/doctoc with all two commands (install and excute) directly in the action.yml file.

Usage:

This can be used simply by committing the following to .github/workflows/toc.yml and pushing to github:

on: push
name: DSL TOC Action

jobs:
  doDOCTOC:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: "Call DOCTOC_action"
        uses: DougLeonard/DOCTOC_action@v1      

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published