You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
this might be as simple as keeping track of how many links were seen with that target name, and automatically adding a -X suffix for subsequent links, such as here-2 for your specific example. Would need to make sure it only happens for links where both the target name and URL are included.
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:When building the docs I get the following:
Chaging
here
to be unique no longer shows the issue so I might take that approach.Details
The text was updated successfully, but these errors were encountered: