From 417045b2cc282c0e9cfa3435aa8c55b3a09ff908 Mon Sep 17 00:00:00 2001 From: stdnhein <dominik.c.heinz@stud.h-da.de> Date: Fri, 21 May 2021 17:23:45 +0200 Subject: [PATCH] Added mindmap resizing to gitlab ci file and updated README clone instructions --- .gitlab-ci.yml | 7 +++---- README.md | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7bec25..c6bfd20 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 76b4477..5bdbbaa 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. -- GitLab