From d8aa6711197aa12e5d420d96f21dfa7daaffd467 Mon Sep 17 00:00:00 2001 From: mik-tf Date: Tue, 22 Oct 2024 23:58:10 -0400 Subject: [PATCH] new --- docs/hero_mdbook_docker.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/hero_mdbook_docker.md b/docs/hero_mdbook_docker.md index deeef72..96e8b0b 100644 --- a/docs/hero_mdbook_docker.md +++ b/docs/hero_mdbook_docker.md @@ -5,6 +5,7 @@ - [Introduction](#introduction) - [Prerequisites](#prerequisites) - [Steps](#steps) +- [Update the Book](#update-the-book) --- @@ -89,4 +90,24 @@ Note that you will need to adjust the local path of the git repo and the docker - If you need to update the docker Hero image, run the following line: ``` docker pull ghcr.io/scottyeager/hero:latest + ``` + +## Update the Book + +You can use [VSCodium](https://manual.grid.tf/documentation/system_administrators/computer_it_basics/git_github_basics.html#vs-codium) to update files of the Mdbook. + +- Open VSCodium +- Open the directory where the repo is located, e.g. + ``` + cd ~/code/git.ourworld.tf/tfgrid/info_tfgrid + ``` +- Make changes and save the files +- Redeploy Hero Mdbook + - With a path: + ``` + hero mdbook -p /root/code/git.ourworld.tf/tfgrid/info_tfgrid/heroscript/tech + ``` + - With a URL (make sure to pull the changes with `git pull`): + ``` + hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/tech ``` \ No newline at end of file -- 2.40.1