Skip to content

Cloud Foundry buildpack converting Markdown files to HTML pages

License

Notifications You must be signed in to change notification settings

alexandreroman/markdown-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Foundry Markdown Buildpack

This buildpack allows you to seamlessly publish Markdown pages to a Cloud Foundry platform: these files are automatically converted to HTML pages.

Just include this buildpack in your app manifest:

---
applications:
  - name: appname
    memory: 64MB
    disk_quota: 100MB
    buildpacks:
      - https://github.com/alexandreroman/markdown-buildpack.git

Use environment variable MARKDOWN_STYLESHEET to specify which CSS stylesheet to include:

---
applications:
  - name: appname
    memory: 64MB
    disk_quota: 100MB
    env:
      MARKDOWN_STYLESHEET: "https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css"
    buildpacks:
      - https://github.com/alexandreroman/markdown-buildpack.git

Add environment variable MARKDOWN_TOC with value set to 1 to generate a table of contents.

---
applications:
  - name: appname
    env:
      MARKDOWN_TOC: 1
    buildpacks:
      - https://github.com/alexandreroman/markdown-buildpack.git

This project is using Pandoc to convert Markdown to HTML.

Feel free to contribute!

Copyright (c) 2018 Pivotal Software, Inc. Licensed under the Apache License, Version 2.0.

About

Cloud Foundry buildpack converting Markdown files to HTML pages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages