Код: Выделить всё
./doc/source/conf.pyКод: Выделить всё
# -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = ['myst_nb', 'sphinx.ext.autodoc', 'sphinxcontrib.bibtex'] templates_path = ['_templates'] exclude_patterns = [] bibtex_bibfiles = ["references.bib"] bibtex_default_style = 'plain' # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = 'sphinx_book_theme' html_static_path = ['_static']Код: Выделить всё
./doc/source/references.bibКод: Выделить всё
@article{knuth:1984, title={Literate Programming}, author={Donald E. Knuth}, journal={The Computer Journal}, volume={27}, number={2}, pages={97--111}, year={1984}, publisher={Oxford University Press} }Код: Выделить всё
./doc/source/my_chapter.mdКод: Выделить всё
# Section I want to cite {cite:t}`knuth:1984`. --- **Bibliography** ```{bibliography} ```
Раздел
Я хочу процитировать Кнута [1]
Библиография
[1] Дональд Э. Кнут. Грамотное программирование. Компьютерный журнал, 27(2):97–111, 1984.
Подробнее здесь: https://stackoverflow.com/questions/798 ... e-citation