Search code examples
.net.net-coredocfx

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?


Solution

  • 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.