python3Packages.sphinxHook: Rename loop var in source root detection
The loop variable to find the documentation source root was unnecessarily short, rename it to something meaningful.
This commit is contained in:
parent
5a852f4085
commit
caf2d010ed
|
@ -6,7 +6,7 @@ declare -a __sphinxBuilders
|
||||||
buildSphinxPhase() {
|
buildSphinxPhase() {
|
||||||
echo "Executing buildSphinxPhase"
|
echo "Executing buildSphinxPhase"
|
||||||
|
|
||||||
local __sphinxRoot="" o
|
local __sphinxRoot=""
|
||||||
runHook preBuildSphinx
|
runHook preBuildSphinx
|
||||||
|
|
||||||
if [[ -n "${sphinxRoot:-}" ]] ; then # explicit root
|
if [[ -n "${sphinxRoot:-}" ]] ; then # explicit root
|
||||||
|
@ -16,10 +16,10 @@ buildSphinxPhase() {
|
||||||
fi
|
fi
|
||||||
__sphinxRoot=$sphinxRoot
|
__sphinxRoot=$sphinxRoot
|
||||||
else
|
else
|
||||||
for o in doc docs doc/source docs/source ; do
|
for candidate in doc docs doc/source docs/source ; do
|
||||||
if [[ -f "$o/conf.py" ]] ; then
|
if [[ -f "$candidate/conf.py" ]] ; then
|
||||||
echo "Sphinx documentation found in $o"
|
echo "Sphinx documentation found in $candidate"
|
||||||
__sphinxRoot=$o
|
__sphinxRoot=$candidate
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue