DocFx:如何在网站上创建目录导航? [英] DocFx: how to create table of contents navigation on site?

查看:20
本文介绍了DocFx:如何在网站上创建目录导航?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个目录,看起来像

使用默认的 docfx init 命令使用所有默认值,我的网站在构建时如下所示:

我试过篡改 toc.yml 文件,但没有这样的运气.我如何获得这种导航,以及与 DocFx 相关的顶级导航?

解决方案

原来问题是试图在本地提供我的文件 - 安全沙箱阻止了一些 JavaScript 的运行.使用 docfx --serve 后效果很好.

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

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

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?

解决方案

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.

这篇关于DocFx:如何在网站上创建目录导航?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆