Aaronontheweb
Aaronontheweb

Reputation: 8414

DocFx: how to create table of contents navigation on site?

I want to create a table of contents that looks like what DocFx has on their official site:

enter image description here

Using the default docfx init command using all of the default values my website looks like this upon build:

enter image description here\

I've tried tampering with the toc.yml files with no such luck. How do I get this kind of navigation, and for that matter the top-level navigation with DocFx?

Upvotes: 4

Views: 1769

Answers (1)

Aaronontheweb
Aaronontheweb

Reputation: 8414

Turns out the issue was trying to serve my files locally - security sandboxing prevented some of the JavaScript from running. Worked fine once I used docfx --serve instead.

Upvotes: 4

Related Questions