feat(build): init vendor integration

Now, the HTML theme build is daisy-chained to the build of the Sphinx theme,
including a skeleton for watching, which will be part of user-acceptance
testing, which will be sphinx-autobuild building `docs/`.
This commit is contained in:
Rodney, Tiara 2025-03-23 19:34:36 +01:00
parent cd7aca7b45
commit 39fd5a7bf2
Signed by: tiara
GPG key ID: 5CD8EC1D46106723
3 changed files with 238 additions and 1 deletions

208
configure vendored
View file

@ -607,8 +607,12 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
NODE
NPM
PYTHON3
GIT
REALPATH
MAKE
target_alias
host_alias
build_alias
@ -1709,6 +1713,103 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# required in Makefile to ensure proper path resolution during preprocessing
for ac_prog in make
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_MAKE+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) if test -n "$MAKE"; then
ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_prog_MAKE="$ac_prog"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi ;;
esac
fi
MAKE=$ac_cv_prog_MAKE
if test -n "$MAKE"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
printf "%s\n" "$MAKE" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
test -n "$MAKE" && break
done
for ac_prog in realpath
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_REALPATH+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) if test -n "$REALPATH"; then
ac_cv_prog_REALPATH="$REALPATH" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_prog_REALPATH="$ac_prog"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi ;;
esac
fi
REALPATH=$ac_cv_prog_REALPATH
if test -n "$REALPATH"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALPATH" >&5
printf "%s\n" "$REALPATH" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
test -n "$REALPATH" && break
done
for ac_prog in git
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@ -1806,10 +1907,117 @@ fi
done
# HTML theme reference dependency for dynamic building, alternatively this could
# be removed and instead the HTML theme reference could be statically integrated
# by storing the build package archive under vendor/ instead and untar the
# archive into src/<whatever>.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vendor build dependencies..." >&5
printf "%s\n" "$as_me: checking for vendor build dependencies..." >&6;}
for ac_prog in npm
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_NPM+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) if test -n "$NPM"; then
ac_cv_prog_NPM="$NPM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_prog_NPM="$ac_prog"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi ;;
esac
fi
NPM=$ac_cv_prog_NPM
if test -n "$NPM"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NPM" >&5
printf "%s\n" "$NPM" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
test -n "$NPM" && break
done
for ac_prog in node
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_NODE+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) if test -n "$NODE"; then
ac_cv_prog_NODE="$NODE" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_prog_NODE="$ac_prog"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi ;;
esac
fi
NODE=$ac_cv_prog_NODE
if test -n "$NODE"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NODE" >&5
printf "%s\n" "$NODE" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
test -n "$NODE" && break
done
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: initializing Git submodules..." >&5
printf "%s\n" "$as_me: initializing Git submodules..." >&6;}
git submodule update --init --remote --recursive
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: initializing vendors..." >&5
printf "%s\n" "$as_me: initializing vendors..." >&6;}
sh -xc "cd vendor/html-theme-ref && npm install"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: initializing python3 venv..." >&5
printf "%s\n" "$as_me: initializing python3 venv..." >&6;}
python3 -m venv .venv