Skip to content

Commit

Permalink
Merge pull request #2911 from balena-io/vipulgupta2048/pages-diagnostics
Browse files Browse the repository at this point in the history
patch: Add Diagnostics section as subpages in docs
  • Loading branch information
flowzone-app[bot] authored Feb 21, 2024
2 parents 10e395d + f8822c8 commit bf8ca64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions tools/build-masterclass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" <diagnostics.md >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.md >device-diagnostics-partial.md && mv device-diagnostics-partial.md $masterclass_path/debugging/ &
cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Device Diagnostics" <device-diagnostics.md >device-diagnostics-partial.md && mv device-diagnostics-partial.md $masterclass_path/debugging/ &

# cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Supervisor State" <supervisor-state.md >supervisor-diagnostics.md && mv supervisor-diagnostics.md $masterclass_path/debugging/ &
cd pages/reference/ && $SCRIPT_DIR/extract-markdown.sh "Supervisor State" <supervisor-state.md >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" <debugging-device-gateway.md >device-gateway-partial.md && mv device-gateway-partial.md $masterclass_path/debugging/ &

Expand Down
4 changes: 2 additions & 2 deletions tools/fetch-external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf8ca64

Please sign in to comment.