From 75549ae07965258894d1a53d5fabbdd1e542835c Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Sun, 3 Jul 2022 02:12:11 +0200 Subject: [PATCH] add a way to build an offline copy of the documentation that looks pretty shitty :) --- .gitignore | 1 + README.md | 1 + documentation/build | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100755 documentation/build diff --git a/.gitignore b/.gitignore index be98f77..fa5d35b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ ansible-facts.json/ +*.html diff --git a/README.md b/README.md index 8ae744d..b14ed5f 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ This repo contains the config and documentation for our installation at the "Ers requirements: * `ansible` +* `pandoc` (for offline documentation generation) * `pass` ### Password Manager diff --git a/documentation/build b/documentation/build new file mode 100755 index 0000000..f205f25 --- /dev/null +++ b/documentation/build @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +find -type f -name '*.md' | while read file +do + pandoc -i $file -o ${file}.html +done