如何在 sphinx-needs 中生成 html 输出而不是 needs.json

how to generate html output in sphinx-needs instead of needs.json

我正在尝试 use/understand 狮身人面像的需求。 一旦我 运行 以下命令,它就会生成 needs.json

sphinx-build -b needs source build

但是如何从 needs.json 生成 html 输出? 我不想有任何自定义布局默认或预定义的布局(如'完整')会做

感谢您的回答

我已经使用快速启动命令生成了我的 sphinx 文件夹

$ sphinx-quickstart

你会得到像这样的东西

将需求写成.rst格式后 以下命令将生成 html 个文件。

$ make html

PS:你应该没有任何依赖问题。 sphinx-需要单独安装