mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
doc-tools - Added initial tools for creating static documentation
This commit is contained in:
+25
@@ -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}"
|
||||
Reference in New Issue
Block a user