Mark A. Wolters
You might be like me: a person with some computing skills but no experience in web development, who needs a simple website for personal or professional purposes. You don’t mind learning a few new things—especially getting familiar with tools you can use elsewhere too—but you don’t have a lot of time to spare. There are many ways to get a website going, but here’s how I decided to proceed. This will likely be most interesting to people who, like me, are in an academic environment and work in a quantitative discipline.
I was looking for ways to build a simple static site (no server-side scripts or databases) with the following characteristics:
To achieve this, I’m using:
The excellent (and free) pandoc “universal document converter” is the primary tool that makes this arrangement possible. It is a command-line software utility that can transform numerous types of document formats into each other.
Pandoc implements a full-featured flavor of markdown. Briefly, Markdown is a system for encoding rich document formatting (different typefaces, headings, list formats, etc.) in a plain-text file using simple text markups. An important goal in Markdown is to ensure that the text document remains comfortably human-readable. The original Markdown is found here. It has spawned numerous variants that are now used on different websites and software products.
From what I can see, the pandoc markdown implementation includes almost any feature you could reasonably want1. Most importantly, it has support for mathematical typesetting using latex, so if you already know latex you don’t need to learn anything new. It also supports a variety of ways of getting your math to display on web pages; I’m using the MathJax option. Another handy feature is the ability to specify that certain files be included in your HTML document before and after the body. That way you can set up headers and footers that are re-used across the different pages of the site.
Cascading style sheets (CSS) is a system for controlling how web page content is displayed. By using a global stylesheet you can separate content and format on your website, and easily change the style of all pages in the site by just editing the stylesheet. It’s not too hard to learn the basics of CSS, and it’s not hard to find a markdown-related stylesheet online that you can learn from and edit.
So the process of producing or updating the website is:
Finally, here are a few extra points I’ve found make things easier:
Including gratuitous footnotes.↩
Rmarkdown also uses pandoc + latex to produce documents.↩