From 89b42547eb08abd6565a3edd39d2b102de70aea3 Mon Sep 17 00:00:00 2001 From: "Vipul Gupta (@vipulgupta2048)" Date: Mon, 19 Feb 2024 17:12:23 +0530 Subject: [PATCH] patch: Add Diagnostics section as subpages in docs Signed-off-by: Vipul Gupta (@vipulgupta2048) --- .gitignore | 2 ++ tools/build-masterclass.sh | 5 ++--- tools/fetch-external.sh | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 09168a51b2..91def1eae9 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,8 @@ pages/reference/supervisor/upgrade-policy.md pages/learn/deploy/release-strategy/update-locking.md pages/reference/diagnostics.md +pages/reference/device-diagnostics.md +pages/reference/supervisor-state.md pages/learn/more/masterclasses/cli-masterclass.md pages/learn/more/masterclasses/advanced-cli.md diff --git a/tools/build-masterclass.sh b/tools/build-masterclass.sh index 6456d0b5ae..9a90feed34 100755 --- a/tools/build-masterclass.sh +++ b/tools/build-masterclass.sh @@ -25,10 +25,9 @@ cd pages/learn/manage && $SCRIPT_DIR/extract-markdown.sh "Granting Support Acces cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Getting Started" initial-diagnosis.md && mv initial-diagnosis.md $masterclass_path/debugging/ & -# Diagnostics part is fetched directly into the directory. Refer fetch-external.sh -# cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Device Diagnostics" device-diagnostics-partial.md && mv device-diagnostics-partial.md $masterclass_path/debugging/ & +cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Device Diagnostics" device-diagnostics-partial.md && mv device-diagnostics-partial.md $masterclass_path/debugging/ & -# cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Supervisor State" supervisor-diagnostics.md && mv supervisor-diagnostics.md $masterclass_path/debugging/ & +cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Supervisor State" supervisor-diagnostics.md && mv supervisor-diagnostics.md $masterclass_path/debugging/ & cd pages/faq/troubleshooting/ && $SCRIPT_DIR/extract-markdown.sh "Accessing a Device using a Gateway Device" device-gateway-partial.md && mv device-gateway-partial.md $masterclass_path/debugging/ & diff --git a/tools/fetch-external.sh b/tools/fetch-external.sh index 841b3ead95..044516ede2 100755 --- a/tools/fetch-external.sh +++ b/tools/fetch-external.sh @@ -21,8 +21,8 @@ curl --fail --show-error -o pages/reference/balena-cli.md -L https://github.com/ curl --fail --show-error -o shared/masterclass/debugging/engine.md -L https://github.com/balena-os/balena-engine/raw/master/balena-docs/engine-debugging.md & # diagnostics -curl --fail --show-error -o shared/masterclass/debugging/supervisor-diagnostics.md -L https://github.com/balena-io-modules/device-diagnostics/raw/master/supervisor-state.md & -curl --fail --show-error -o shared/masterclass/debugging/device-diagnostics-partial.md -L https://github.com/balena-io-modules/device-diagnostics/raw/master/device-diagnostics.md & +curl --fail --show-error -o pages/reference/supervisor-state.md -L https://github.com/balena-io-modules/device-diagnostics/raw/master/supervisor-state.md & +curl --fail --show-error -o pages/reference/device-diagnostics.md -L https://github.com/balena-io-modules/device-diagnostics/raw/master/device-diagnostics.md & curl --fail --show-error -o pages/reference/diagnostics.md -L https://github.com/balena-io-modules/device-diagnostics/raw/master/diagnostics.md & # Supervisor