Browse Source

fix(scripts): resolve help doc path lookups when no custom content dir

Josh Habdas 1 year ago
parent
commit
300add1d0a
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
3 changed files with 3 additions and 1 deletions
  1. 1
    1
      README.md
  2. 1
    0
      bin/help
  3. 1
    0
      bin/upgrade

+ 1
- 1
README.md View File

@@ -81,7 +81,7 @@ Once started press `g` for traffic inspection, or quit to go offline and use `fg
81 81
 
82 82
 ## Upgrading
83 83
 
84
-To check for theme updates and automatically upgrade to the latest version simply run `./theme/after-dark/bin/upgrade` from your site directory. This feature requires you install After Dark starting with `v6.7.4`. If you installed from an earlier version simply follow the steps [listed here](https://git.habd.as/comfusion/after-dark/commit/6415250769c9c78338893f98b5ab9b77968053f7).
84
+To check for theme updates and automatically upgrade to the latest version simply run `./theme/after-dark/bin/upgrade` from your site directory. This feature requires you install After Dark starting with `v6.7.5`. If you installed from an earlier version simply follow the steps [listed here](https://git.habd.as/comfusion/after-dark/commit/6415250769c9c78338893f98b5ab9b77968053f7).
85 85
 
86 86
 ## License
87 87
 

+ 1
- 0
bin/help View File

@@ -3,6 +3,7 @@ set -e
3 3
 
4 4
 CONFIG_FILE=config.toml
5 5
 CONTENT_DIR=`sed -n 's/contentDir[=:]"\([^"]*\)".*/\1/p' <<< "$(cat $CONFIG_FILE | tr -d ' ')"`
6
+[ -z $CONTENT_DIR ] && CONTENT_DIR=content
6 7
 
7 8
 echo "Updating help documentation ..."
8 9
 kill $(ps aux | awk '/[h]ugo.*1414/ {print $2}') 2>/dev/null

+ 1
- 0
bin/upgrade View File

@@ -3,6 +3,7 @@ set -e
3 3
 
4 4
 CONFIG_FILE=config.toml
5 5
 CONTENT_DIR=`sed -n 's/contentDir[=:]"\([^"]*\)".*/\1/p' <<< "$(cat $CONFIG_FILE | tr -d ' ')"`
6
+[ -z $CONTENT_DIR ] && CONTENT_DIR=content
6 7
 
7 8
 generate_help_docs () {
8 9
    echo "Generating help documentation ..."

Loading…
Cancel
Save