Skip to content

hironon-nj/pandoc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to Convert Documents via Pandoc

Actions Status GitHubActions

This action lets you use pandoc, the swiss army knife of document conversion.

It is based on the pandoc/latex docker image and thus ships with LaTeX, so you can also convert right through to PDF. The action currently uses pandoc 2.6 and will be upgrade periodically.

Secrets

None.

Environment Variables

  • OUT_DIR (optional) a path relative from workspace/github (~ your repository root) without trailing slash.

    It's often useful to have pandoc output to a separate directory, for example for easier deployment. You can create such a directory using the OUT_DIR environment variable.

    If you've set it, the directory will be mkdired. Remember to point the output argument of your pandoc call in the args section to this new directory.

Arguments

All arguments get appended to the pandoc command.

Example Usage

This is the action block used to render the website for this action.

action "Convert" {
  uses = "maxheld83/[email protected]"
  env = {
    OUT_DIR = "public"
  }
  args = [
    "--standalone",
    "--output=public/index.html",
    "README.md"
  ]
}

About

GitHub action to run pandoc

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 44.9%
  • Dockerfile 38.9%
  • Shell 16.2%