Note that the table of contents will only render if the document has a preamble. We'll need to discuss this use case in Asciidoctor core so that we can better accommodate this environment.