如何更改第一个代码片段 :ref:`foo` 以显示为 Foo?
How do I change an rst code snippet :ref:`foo` to display as Foo?
第一个文档有 :ref:function-calls
并将其作为函数调用显示在 readthedocs 上,但它是句子的开头。如何将其更改为显示为 "Function calls"?
上下文:https://viper.readthedocs.io/en/latest/structure-of-a-contract.html#functions
根据角色 :ref:
的 Sphinx 文档:
Labels that aren’t placed before a section title can still be referenced to, but you must give the link an explicit title, using this syntax:
:ref:`Link title <label-name>`
所以尝试:
:ref:`Function calls <function-calls>`
第一个文档有 :ref:function-calls
并将其作为函数调用显示在 readthedocs 上,但它是句子的开头。如何将其更改为显示为 "Function calls"?
上下文:https://viper.readthedocs.io/en/latest/structure-of-a-contract.html#functions
根据角色 :ref:
的 Sphinx 文档:
Labels that aren’t placed before a section title can still be referenced to, but you must give the link an explicit title, using this syntax:
:ref:`Link title <label-name>`
所以尝试:
:ref:`Function calls <function-calls>`