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.

29 lines
1.1 KiB

4 years ago
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
  4. #
  5. # This file is part of After Dark.
  6. #
  7. # After Dark is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as published
  9. # by the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # After Dark is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. #
  20. THEME_PATH=themes/after-dark
  21. echo "Starting help server ..."
  22. kill $(ps aux | awk '/[h]ugo.*1414/ {print $2}') 2>/dev/null
  23. cd "$THEME_PATH"/docs && hugo serve --disableLiveReload --port 1414 1>/dev/null &
  24. echo "Help server started at http://localhost:1414/"
  25. echo "To stop it run \"kill \$(ps aux | awk '/[h]ugo.*1414/ {print \$2}')\"."
  26. echo "To start it again run \"./themes/after-dark/bin/help\"."