You need to pass that kwarg to HTML(), not makedocs, as the docs indicate. See e.g. here.
HTML()
makedocs