我正在尝试创建从文档中的一个页面到
.rst
文件中的另一页面的链接:
Link to another page :doc:`Another Page`
但是当我运行 PHPDocumentor 时
php phpDocumentor.phar -c .\phpdoc.dist.xml --setting="guides.enabled=true"
HTML 已生成,但我没有获得页面中包含的链接
Link to another page
我做错了什么?
您链接到文档的路径(减去文件扩展名),而不是标题,因此要链接到
another-page.rst
,请按如下方式插入链接:
Link to another page :doc:`another-page`