diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7bec257350a7a5c51c61d0157605fd2fdff1a9a..c6bfd2019ab88b9891cc28735c9ddd3d625d9588 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,10 +16,9 @@ variables: - npm install -D --save markmap-lib - npm install -D --save markmap-cli script: - # mindmap_gen/Mindmap.md creation script here! - - echo $(pwd)/content - - python3 $MINDMAP_SCRIPT_PATH -d $(pwd)/content - - npx markmap-cli -o $MINDMAP_OUT_PATH $MINDMAP_IN_PATH + - python3 $MINDMAP_SCRIPT_PATH -d $(pwd)/content # Generate the mindmap md file + - npx markmap-cli -o $MINDMAP_OUT_PATH $MINDMAP_IN_PATH # Convert mindmap md file to html + - sed -i 's/100v/60v/g' $(pwd)/layouts/shortcodes/mindmap.html # Replaces the width and hight of mindmap with suitable values - hugo --minify --gc except: - master diff --git a/README.md b/README.md index 76b4477c0162d76a6d0cc9bbfb5ba148b0011dca..5bdbbaa02ab3eedd5498fd81934ec069202b7bfe 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ defined in [`.gitlab-ci.yml`](.gitlab-ci.yml). To work locally with this project, you'll have to follow the steps below: -1. Fork, clone or download this project +1. Fork, clone or download this project (Make sure to also recursively clone the submodules) 2. [Install][] Hugo extended version 3. Preview your project on local host zsing the command `hugo server` 4. Add or edit content etc.