Dynamic index for docs