From caf2d010edbe5cd2193b9849798fa44858e08c00 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 24 Aug 2022 03:32:13 +0200 Subject: [PATCH] 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. --- .../interpreters/python/hooks/sphinx-hook.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/python/hooks/sphinx-hook.sh b/pkgs/development/interpreters/python/hooks/sphinx-hook.sh index ab5e0f83a33..e38562d8554 100644 --- a/pkgs/development/interpreters/python/hooks/sphinx-hook.sh +++ b/pkgs/development/interpreters/python/hooks/sphinx-hook.sh @@ -6,7 +6,7 @@ declare -a __sphinxBuilders buildSphinxPhase() { echo "Executing buildSphinxPhase" - local __sphinxRoot="" o + local __sphinxRoot="" runHook preBuildSphinx if [[ -n "${sphinxRoot:-}" ]] ; then # explicit root @@ -16,10 +16,10 @@ buildSphinxPhase() { fi __sphinxRoot=$sphinxRoot else - for o in doc docs doc/source docs/source ; do - if [[ -f "$o/conf.py" ]] ; then - echo "Sphinx documentation found in $o" - __sphinxRoot=$o + for candidate in doc docs doc/source docs/source ; do + if [[ -f "$candidate/conf.py" ]] ; then + echo "Sphinx documentation found in $candidate" + __sphinxRoot=$candidate break fi done