Skip to content

GitHub Action to transform my personal notes into Hugo content

Notifications You must be signed in to change notification settings

alexandrelamberty/hugo-notes-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Notes Hugo Action

GitHub Action to transform my personal notes into Hugo content.

What it does

It transform a tree structure into a flat one taking the parent folder for every README.md, copying the content except directories and, renaming the README.md into index.md

There is an example of the source structure:

└── notes
    ├── computer-sciences
    │   ├── formats
    │   │   └── html
    │   │       ├── intro.png
    │   │       └── README.md
    │   └── protocols
    │       └── grpc
    │           └── README.md
    ├── electrical-engineering
    │   └── bmp-180
    │       └── README.md
    └──...

and the output produced:

└── content
    ├── html
    │   ├── intro.png
    │   └── index.md
    ├── grpc
    │   └── index.md
    └── bmp-180
        └── index.md

Example usage

uses: alexandrelamberty/hugo-notes-action@master
with:
  source: 'notes'
  destination: 'content'

About

GitHub Action to transform my personal notes into Hugo content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published