Browse Source

fix(fix install error for missing docs themes dir):

Josh Habdas 9 months ago
parent
commit
6711c11469
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
2 changed files with 4 additions and 2 deletions
  1. 2
    1
      bin/install
  2. 2
    1
      bin/upgrade

+ 2
- 1
bin/install View File

@@ -104,7 +104,8 @@ generate_help_docs () {
104 104
    THEME_PATH=themes/after-dark
105 105
    meta_path="$THEME_PATH"/data/npm
106 106
    mkdir -p "$meta_path" && echo "$LATEST_META" | tr '\r\n' ' ' > "$meta_path"/latest.json
107
-   cd "$THEME_PATH"/docs && hugo new validate.md --kind validate 1>/dev/null
107
+   cd "$THEME_PATH"/docs && mkdir themes && ln -s ../.. "$THEME_PATH"
108
+   hugo new validate.md --kind validate 1>/dev/null
108 109
 }
109 110
 
110 111
 serve_help_docs () {

+ 2
- 1
bin/upgrade View File

@@ -6,7 +6,8 @@ generate_help_docs () {
6 6
    THEME_PATH=themes/after-dark
7 7
    meta_path="$THEME_PATH"/data/npm
8 8
    mkdir -p "$meta_path" && echo "$LATEST_META" | tr '\r\n' ' ' > "$meta_path"/latest.json
9
-   cd "$THEME_PATH"/docs && hugo new validate.md --kind validate 1>/dev/null
9
+   cd "$THEME_PATH"/docs && mkdir themes && ln -s ../.. "$THEME_PATH"
10
+   hugo new validate.md --kind validate 1>/dev/null
10 11
 }
11 12
 
12 13
 update_module () {

Loading…
Cancel
Save