diff --git a/public/_includes/_version-dropdown.jade b/public/_includes/_version-dropdown.jade index 38e167a1fd..2343e2f77c 100644 --- a/public/_includes/_version-dropdown.jade +++ b/public/_includes/_version-dropdown.jade @@ -9,7 +9,19 @@ if current.path[2] - var version = current.path[2].replace(/\_+/gm, ".") -if current.path[4] +if current.path[6] + if public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]][current.path[5]][current.path[6]] + - var page = current.path[3] + '/' + current.path[4] + current.path[5] + current.path[6] + '/' + else + - var page = current.path[3] + '/' + current.path[4] + current.path[5] + current.path[6] + '.html' + +else if current.path[5] + if public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]][current.path[5]] + - var page = current.path[3] + '/' + current.path[4] + current.path[5] + '/' + else + - var page = current.path[3] + '/' + current.path[4] + current.path[5] + '.html' + +else if current.path[4] if public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]] - var page = current.path[3] + '/' + current.path[4] + '/' else