diff --git a/{{ cookiecutter.package_name }}/docs/conf.py b/{{ cookiecutter.package_name }}/docs/conf.py index 89a01f0..0992c2a 100644 --- a/{{ cookiecutter.package_name }}/docs/conf.py +++ b/{{ cookiecutter.package_name }}/docs/conf.py @@ -51,6 +51,9 @@ # The master toctree document. master_doc = "index" +# Treat everything in single ` as a Python reference. +default_role = 'py:obj' + # -- Options for intersphinx extension --------------------------------------- # Example configuration for intersphinx: refer to the Python standard library. @@ -75,3 +78,5 @@ # the docs. For more options, see: # https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autoclass_content autoclass_content = "both" + +# -- Other options ----------------------------------------------------------