Hide dropdown versions for self-hosted docs
Split from #390 (closed)
Some features don't make sense in a self-hosted environment (or better they don't properly function
We need to find a way of hiding:
- The versions dropdown in a self-hosted environment.
However, we cannot remove them because the Docker images we publish are also used for docs.gitlab.com where we need this functionality. Rather, we need to work around this with some javascript:
- Generally, hide the div.
- Specifically, detect the domain name; if not docs.gitlab.com, hide.
Edited by Sarah German