Sign inSign up

robbj/static-page

By robbj

Updated almost 6 years ago

Generate a html page from markdown and serve it over http with docker

Image
0

296

robbj/static-page repository overview

For when you want to quickly throw up a not-so-terrible-looking html page and you only want to write markdown. This repo is a node.js app which compiles assets with unified, remark and rehype, styles them with bulma then deploys them with docker.

An example

Say you want a quick holding page and you have a markdown file with content in, content.md.

---
title: Coming Soon
subtitle: You'll have to wait a little bit longer
theme: #6b2636
---
# Coming Soon

Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

Then you want to quickly deploy it using docker:

docker run -it --rm \
  -p 3000:3000 \
  -v `pwd`/content.md \
  robbj/static-page:vX.Y.Z

Then all you have to do is visit http://localhost:3000

Tag summary

Content type

Image

Digest

Size

31.3 MB

Last updated

almost 6 years ago

docker pull robbj/static-page:v1.3.0