make the doc scripts runnable from anywhere (#3040)

pull/3027/head
k4lizen 6 months ago committed by GitHub
parent 6938228235
commit 6502675f2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,6 +2,8 @@
source "$(dirname "$0")/../common.sh"
cd $PWNDBG_ABS_PATH
# This may perform verification instead of building
# depending on PWNDBG_DOCGEN_VERIFY.
$UV_RUN_DOCS python ./scripts/_docs/build_command_docs.py || exit 1

@ -2,6 +2,8 @@
source "$(dirname "$0")/../common.sh"
cd $PWNDBG_ABS_PATH
# Extract from sources all the information necessary to build
# the documentation. Do this from each debugger.

@ -2,4 +2,6 @@
source "$(dirname "$0")/common.sh"
cd $PWNDBG_ABS_PATH
$UV_RUN_DOCS mkdocs serve -a 0.0.0.0:8000

@ -1,5 +1,9 @@
#!/usr/bin/env bash
source "$(dirname "$0")/common.sh"
cd $PWNDBG_ABS_PATH
# Extract the documentation.
echo "Extracting docs.."
./scripts/_docs/extract-all-docs.sh || exit 1

@ -1,5 +1,9 @@
#!/usr/bin/env bash
source "$(dirname "$0")/common.sh"
cd $PWNDBG_ABS_PATH
# Extract the documentation.
echo "Extracting docs.."
./scripts/_docs/extract-all-docs.sh || exit 1
@ -7,4 +11,4 @@ echo "Extracting docs.."
# Verify the documentation.
echo "Verifying docs.."
export PWNDBG_DOCGEN_VERIFY=1
./scripts/_docs/build-all-docs.sh || exit 1
./scripts/_docs/build-all-docs.sh || exit 2

Loading…
Cancel
Save