doc-tools - Added initial tools for creating static documentation

This commit is contained in:
thetechprepper
2025-04-24 16:45:48 -07:00
parent fa56d3c725
commit da9ade6c63
3 changed files with 74 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 3 April 2025
# Updated : 24 April 2024
# Purpose : Creates a Jekyll doc site
set -e
source /opt/emcomm-tools/bin/et-common
function usage() {
echo "$(basename $0) <site-name>"
}
if [[ $# -ne 1 ]]; then
usage
exit 1
fi
SITE="$1"
rbenv local 3.3.8
gem install jekyll bundler && jekyll new ${SITE}
echo -e "${YELLOW}1. Move into the site directory: ${WHITE}cd ${SITE}${NC}"
echo -e "${YELLOW}2. Build and start site: ${WHITE}bundle exec jekyll serve${NC}"
echo -e "${YELLOW}3. Access site in web browser: ${WHITE}min http://localhost:4000${NC}"