sphinx-mdinclude icon indicating copy to clipboard operation
sphinx-mdinclude copied to clipboard

Duplicate explicit target name on links with same name

Open diasdm opened this issue 2 years ago • 1 comments

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

diasdm avatar Sep 22 '22 10:09 diasdm