From 4e7041349ddaf9b514165b4cf8eb34be31610cf4 Mon Sep 17 00:00:00 2001 From: George Lesica Date: Thu, 21 Jan 2021 12:54:00 -0700 Subject: [PATCH] Add skeleton web site --- Makefile | 25 +++++++ docs/index.html | 156 +++++++++++++++++++++++++++++++++++++++++ docs/index.md | 4 ++ docs/media/header.html | 0 4 files changed, 185 insertions(+) create mode 100644 Makefile create mode 100644 docs/index.html create mode 100644 docs/index.md create mode 100644 docs/media/header.html diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..20b94a2 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +# This Makefile knows how to build the project +# web site, which mostly consists of converting +# Markdown files to HTML. + +PAGE_INPUTS := $(shell find docs -type f -name '*.md') +PAGE_OUTPUTS := $(PAGE_INPUTS:.md=.html) + +HEADER := docs/media/header.html + +SITE_TITLE := [Mirage] +PANDOC := pandoc -s -H ${HEADER} + +.PHONY: docs +docs: ${PAGE_OUTPUTS} + +.PHONY: serve +serve: + @echo "Serving on http://localhost:8080" + @echo "Use ctrl-c to terminate the server" + @python3 -m http.server -d docs/ 8080 + +%.html: %.md ${HEADER} + @echo "building $<" + @${PANDOC} -M pagetitle:"/$(@D) ${SITE_TITLE}" -o "$@" "$<" + diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..98b65fe --- /dev/null +++ b/docs/index.html @@ -0,0 +1,156 @@ + + + + + + + /docs [Mirage] + + + + + +

Mirage

+

Welcome!

+ + diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..b638806 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,4 @@ +# Mirage + +Welcome! + diff --git a/docs/media/header.html b/docs/media/header.html new file mode 100644 index 0000000..e69de29