better detection of docs theme