From 7c1b23462cc0da8e14422d8995474be674b8d3bc Mon Sep 17 00:00:00 2001 From: june1011 <145085206+june1011@users.noreply.github.com> Date: Sat, 16 Sep 2023 23:41:41 -0400 Subject: [PATCH] add locally-host.sh add a script for linux users to locally host the site --- locally-host.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 locally-host.sh diff --git a/locally-host.sh b/locally-host.sh new file mode 100644 index 0000000..574d2dc --- /dev/null +++ b/locally-host.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if ! command -v mkdocs >/dev/null 2>&1; then + echo "It doesn't seem like MkDocs Material is installed." + echo + echo "To install it, see https://squidfunk.github.io/mkdocs-material/getting-started/#latest, or use your distribution's package manager." + echo + echo "Press any key to exit..." + read -n 1 -s + exit 1 +fi + +echo "If there's any errors, make sure MkDocs Material is installed correctly, see the MkDocs Material documentation." +echo "To close the server, exit this window." +echo +mkdocs serve