From 8333a2ce0dd6c1641c22e0db16fbf2fcc768dbe3 Mon Sep 17 00:00:00 2001 From: Brad Treloar Date: Sun, 9 Mar 2025 02:29:19 +1030 Subject: [PATCH] Update readme with hugo build instructions --- README.md | 19 +++++++++---------- install.sh | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3d18660..7d0d0c9 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,13 @@ # Notes server -## Set up mkdocs and build HTML +## Set up hugo and build HTML ````bash -# Set up a Python virtualenv for mkdocs. -sudo apt install virtualenv -virtualenv .venv -. .venv/bin/activate - -# Install mkdocs. -pip install mkdocs +# Install hugo. +sudo api install hugo # Build the HTML. -mkdocs build +hugo build ``` ## Build and run server @@ -25,7 +20,11 @@ mkdocs build docker build --no-cache -t notes-server . # Run the image, listening on port 42069. -docker run --mount type=bind,src=./site,dst=/usr/share/nginx/html -p 42069:80 -t notes-server +docker run -d \ + --name notes-server \ + -v "/var/www/html/notes/hugo/public:/usr/share/nginx/html" \ + -p 42069:80 \ + notes-server ```` ## Auth credentials setup diff --git a/install.sh b/install.sh index d87aea1..0ab8574 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ docker build --no-cache -t notes-server . # Run the notes-server image. docker run -d \ --name notes-server \ - -v "/var/www/html/notes/site:/usr/share/nginx/html" \ + -v "/var/www/html/notes/hugo/public:/usr/share/nginx/html" \ -p 42069:80 \ notes-server