From e2b2be252ea68284a45eef6d1c2049d80ff8eaca Mon Sep 17 00:00:00 2001 From: mik-tf Date: Mon, 29 Apr 2024 13:28:14 +0000 Subject: [PATCH 1/2] updated docker hero docs --- docs/hero_mdbook_docker.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/hero_mdbook_docker.md b/docs/hero_mdbook_docker.md index 88c75cf..f5e9045 100644 --- a/docs/hero_mdbook_docker.md +++ b/docs/hero_mdbook_docker.md @@ -41,10 +41,16 @@ Note that you will need to adjust the local path of the git repo and the docker ``` git config --global --add safe.directory /root/code/git.ourworld.tf/tfgrid/info_tfgrid ``` -- You can now use hero normally, e.g. with **projectinca**: - ``` - hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/projectinca -gp - ``` +- You can now use Hero normally, e.g. with **projectinca** + - With a URL: + ``` + hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/projectinca + ``` + - With a path: + ``` + hero mdbook -p /root/code/git.ourworld.tf/tfgrid/info_tfgrid/heroscript/projectinca + ``` + - In this case, you can modify the mdbook on the local machine's git repo that you set in the prerequisites section and the changes will be shown on the docker path - To view the mdbook on your local browser, run the lines: ``` cd ~/hero/var/mdbuild/projectinca/ -- 2.40.1 From f8335c9ffb05eb4021bc98543986cce48932df7d Mon Sep 17 00:00:00 2001 From: mik-tf Date: Mon, 29 Apr 2024 13:30:06 +0000 Subject: [PATCH 2/2] updated docker docs --- docs/hero_mdbook_docker.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/hero_mdbook_docker.md b/docs/hero_mdbook_docker.md index f5e9045..79034a5 100644 --- a/docs/hero_mdbook_docker.md +++ b/docs/hero_mdbook_docker.md @@ -37,10 +37,16 @@ Note that you will need to adjust the local path of the git repo and the docker ``` sudo docker exec -it herodocker bash ``` -- Set git globally with a safe directory - ``` - git config --global --add safe.directory /root/code/git.ourworld.tf/tfgrid/info_tfgrid - ``` +- Git configuration + - Set git lobally with a safe directory + ``` + git config --global --add safe.directory /root/code/git.ourworld.tf/tfgrid/info_tfgrid + ``` + - Set your name and email to be able to push changes + ``` + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + ``` - You can now use Hero normally, e.g. with **projectinca** - With a URL: ``` -- 2.40.1