# Tryton docs \`latest\` vs \`current\` version

**URL:** https://discuss.tryton.org/t/tryton-docs-latest-vs-current-version/7234
**Category:** User
**Created:** [April 25, 2024, 4:25pm UTC](https://discuss.tryton.org/t/tryton-docs-latest-vs-current-version/7234 "2024-04-25T16:25:29Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 25, 2024, 4:37pm UTC](https://discuss.tryton.org/t/tryton-docs-latest-vs-current-version/7234/2 "2024-04-25T16:37:44Z")

</div>

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

```sh
#!/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](https://discuss.tryton.org/t/readthedocs-is-going-to-drop-mercurial-support/6899/10).

---

_[View the full topic](https://discuss.tryton.org/t/tryton-docs-latest-vs-current-version/7234)._
