Tryton docs `latest` vs `current` version

For the record, here is how it is daily generated:

#!/bin/sh
set -e
REPO="${HOME}/tryton"
OUTDIR="${HOME}/docs.tryton.org"
SITE="https://docs.tryton.org"
export MAX_PROCS=2

cd "${REPO}"
. .venv/bin/activate
hg pull --quiet

for branch in `hg branches -r 'public()' -T "{branch}\n"`; do
    hg update --quiet "${branch}"
    if [ "${branch}" == "default" ]; then branch=latest; fi
    DOC_BASE_URL="${SITE}/${branch}" .gitlab-scripts/generate-doc.sh "${OUTDIR}/${branch}"
done

but we are still missing the global search index.