summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2020-01-28 23:34:06 -0500
committerOwen Jacobson <owen@grimoire.ca>2020-01-28 23:34:06 -0500
commit34708dfa902afabf4833c25233132e56514915de (patch)
tree0f4fd5c2c8d782885c5b821114b060e89fce1dcd /README.md
parent9bf334de6a2a17371eae9bcdf342c416332350aa (diff)
parent6a7b97b436a5a20c172e6b04bf0caa37d544fde4 (diff)
Switch to mkdocs.
Diffstat (limited to 'README.md')
-rw-r--r--README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9db7289..2b5ea2d 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,36 @@
# Grimoire.ca Blog/Wiki
This repository contains the infrastructure for publishing a website, built from a suite of Markdown files and other resources, to Amazon.
+
+## Pre-requisites
+
+You will need:
+
+* [MkDocs](https://mkdocs.org) (`brew install mkdocs`)
+* The AWS CLI (`brew install awscli`), logged in on an account with access to the `grimoire.ca` S3 bucket.
+
+## Building
+
+To prepare this site for deployment, run mkdocs from the project's root directory:
+
+```bash
+mkdocs build
+```
+
+The resulting files will be placed in `site` under the project's root directory, replacing any files already present.
+
+You can also preview the site locally:
+
+```bash
+mkdocs serve
+```
+
+This will automatically rebuild the site every time the files in `docs` change, and will serve them on a web server at <http://127.0.0.1:8000>.
+
+## Publishing
+
+Once the site is built, it can be published to s3:
+
+```bash
+aws s3 sync --delete site/ s3://grimoire.ca/
+```