代码之家  ›  专栏  ›  技术社区  ›  Mad Physicist

斯芬克斯脚注跨页或同等

  •  0
  • Mad Physicist  · 技术社区  · 6 年前

    我有一份有一些脚注的文件:

    This sentence needs clarification\ [#fn1]_.
    

    如果我把脚注放在同一个文件里,就可以了。不过,我想有一个单独的文件,里面有几个不同文件的脚注:

    [#fn1] A word of explanation.
    

    supplement.rst

    ...supplement.rst:1: WARNING: Footnote [#] is not referenced.
    

    然后一对警告出现了 doc.rst :

    ...doc.rst:1: WARNING: Too many autonumbered footnote references: only 0 corresponding footnotes available.
    ...doc.rst:1: WARNING: Unknown target name "fn1".
    

    doc.html 呈现为带有文本的链接 [#fn1]_ supplement.html 是灰色的。

    如何在sphinx中实现跨文档脚注?

    1 回复  |  直到 6 年前
        1
  •  2
  •   Steve Piercy    6 年前

    脚注的范围仅限于文档,而不是整个文档集的全局范围。你可以实施 citations 或者 glossary .