Skip to content

0 appended to reference id when called by automodule #4782

Closed
@momargoh

Description

@momargoh

Subject: 0 appended to reference id when called by automodule

Problem

In my project root I have dirs for docs/, examples/ and src/. In docs/ I have an .rst file that uses automodule to print the docstring of a module in the examples directory. In this docstring is a citation of a reference as below.

This example goes over the analysis found in the author's paper [Author2018]_.

.. [Author2018] Author, T., Rest of the reference, 2018

When I compile my docs to .html the reference appears with an appended 0, ie:

This example goes over the analysis found in the author's paper [Author20180].
[Author20180] | Author, T., Rest of the reference, 2018

Procedure to reproduce the problem

I am using python3-sphinx: sudo apt install python3-sphinx and then simply running make html in docs/.

make html

Error logs / results

No error log is produced.

Expected results

The reference appears as in the docstring: without the appended 0.

Reproducible project / your project

I have attached a zip of a mock project demonstrating the problem.
example_project.zip

Environment info

  • OS: Ubuntu 17.10 (same result on Ubuntu 16.04)
  • Python version: 3.6.3
  • Sphinx version: 1.5.6

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions