Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是Aviatrix网站,这些是Drift 的说明。 这就是readthedocs帮助所说的。
但是我已经尝试过这些,它不会出现在网站上。
你可能已经想通了,但我刚刚经历了同样的过程,我想出了一种方法来做到这一点。就是这样。
我在一个drift.js 文件中添加了漂移安装脚本并将它放在docs/jsfiles/ 下
然后我所要做的就是将它添加到我的 yml 中:extra_javascript: ['jsfiles/drift.js']
这奏效了!我认为这会在页面加载结束时处理 js 脚本,但我确信还有一种方法可以将脚本移动到每个页面的 head 标签。当我弄清楚时会报告它。现在,我将使用这个解决方案。