Docfx: The menu is missing

Created on 29 May 2018  路  4Comments  路  Source: dotnet/docfx

Hi there,

I just install docfx to VS2017 from Nuget Package. Then I build the project and open the index.html file
However menu is missing.

image

This is my toc.yml file

  • name: Articles
    href: articles/
  • name: API Documentation
    href: obj/api/
    homepage: api/index.md

Did I missing something ?
Please help

question

Most helpful comment

this works without server in Edge web browser. And does not work with Opera, FF

All 4 comments

Are you opening the html directly? navbar is dynamically loaded and needs a web server. Try docfx build --serve or host these html files using some web server like https://www.npmjs.com/package/http-server

Thanks @vicancy ,
It's working fine if host these file on a server rather than just run index.html file

this works without server in Edge web browser. And does not work with Opera, FF

Just leaving this comment here in case someone needs the menu with static HTML without a web server (for instance, to ship the docs). As said in this comment from #1762, you just need to change the template to statictoc.

Was this page helpful?
0 / 5 - 0 ratings