Fixed bug with documentation when using the index during html preview.