Skip to content

Duplicate explicit target name on links with same name #18

@diasdm

Description

@diasdm

Hi,
(Bit of a novice in Sphinx, not completely sure the issue is in sphinx_mdinclude)

Description

I'm adding a README.md with the following contents to my Sphinx documentation:

# Title
Example 1 occurs ...
See example [here](https://github.com/amyreese/sphinx-mdinclude/blob/main/requirements-dev.txt).

Example 2 occurs ...
See example [here](https://github.com/amyreese/sphinx-mdinclude/blob/main/requirements.txt).

When building the docs I get the following:

$ sphinx-build -E -W -c ./docs/source/ -b html ./docs/source/ ./docs/build/
Running Sphinx v5.1.1
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 9 source files that are out of date
updating environment: [new config] 9 added, 0 changed, 0 removed
reading sources... [100%] tests                                                                                                                                                                                    

Warning, treated as error:
README.md:3:Duplicate explicit target name: "here".

Chaging here to be unique no longer shows the issue so I might take that approach.

Details

  • OS: Ubuntu 20.04.5 LTS
  • Python version: Python 3.8.10
  • Project version: Sphinx==5.1.1, sphinx-mdinclude==0.5.2
  • Can you repro on main? Didn't reproduced on main
  • Can you repro in a clean virtualenv? Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions