Pandoc with CentOS micro image with coreutils for converting markdowns to html.
3.0K
pandoc v2.4
"Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library."
This image adds pandoc to a micro CentOS 7 image with coreutils to convert Markdown to html.
note: no support for pdf yet!
example:
# .gitlab-ci.yml
build_docs:
image: gioxa/pandoc-centos
stage: build
retry: 1
dependencies: []
variables:
ODAGRUN_POD_SIZE: nano
script:
- mkdir -pv public
- cp -v Docs/app.css public/app.css
- >-
pandoc
-s
--highlight-style pygments
--toc
--toc-depth=2
-c app.css
-o public/index.html
Docs/start_s.md
Docs/intro.md
Docs/install.md
tags:
- odagrun
artifacts:
paths:
- public
odagrun to publish html manual for each release, see result at User Guide odagrun
install_packages="coreutils"
Cmd:
- /bin/bash
Env:
- 'PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin'
- LANG=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
- LC_CTYPE=en_US.UTF-8
Hostname: "$CI_PROJECT_NAME"
WorkingDir: /
User: ""
Build with odagrun from GitLab Repo gioxa/build-images/pandoc-centos on openshift online starter.
Content type
Image
Digest
Size
24.8 MB
Last updated
over 7 years ago
docker pull gioxa/pandoc-centos