Hugo Dark Theme Site Generator https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

help 704B

123456789101112131415
  1. #!/bin/sh
  2. CONFIG_FILE=config.toml
  3. CONTENT_DIR=`sed -n 's/contentDir[=:]"\([^"]*\)".*/\1/p' <<< "$(cat $CONFIG_FILE | tr -d ' ')"`
  4. [ -z $CONTENT_DIR ] && CONTENT_DIR=content
  5. echo "Updating help documentation ..."
  6. kill $(ps aux | awk '/[h]ugo.*1414/ {print $2}') 2>/dev/null
  7. [ -f "$CONTENT_DIR"/help/index.md ] && rm "$CONTENT_DIR"/help/index.md
  8. hugo new help/index.md --kind help 1>/dev/null
  9. echo "Restarting help server ..."
  10. hugo serve --buildExpired --disableLiveReload --port 1414 1>/dev/null &
  11. echo "Help server started at http://localhost:1414/"
  12. echo "To stop it run \"kill \$(ps aux | awk '/[h]ugo.*1414/ {print \$2}')\"."
  13. echo "To update and start it again run \"./themes/after-dark/bin/help\"."