-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra files with same file name #1277
Comments
I've just encountered the same issue. |
still broken, affected by lsegal/yard#1277 [ci skip]
This is a known limitation in YARD's extra file serializer, which flattens all extra files into the same directory. There are ways you can monkeypatch For example: in
in
in
This generates something like the following: It's not the cleanest workaround but it works with vanilla YARD without monkeypatches. FWIW I would accept a PR to "fix" the root issue if it (a) is backward compatible and (b) handles the more common case of supporting singular nested READMEs without displaying as a nested README. Hope that helps! |
most importantly name clash between /README.md and /data/README.md fixed the way suggested here lsegal/yard#1277 (comment)
most importantly name clash between /README.md and /data/README.md fixed the way suggested here lsegal/yard#1277 (comment)
There's an issue when adding multiple extra files from different locations but having the same file name / e.g.
README.md
/. The generated documentation lists the extra files but links all to the same content.Steps to reproduce
This is the minimal reproduction for the issue. I've done my best to remove
all extraneous code and unique environment state on my machine before providing
these steps:
README.md
files with different content -README.md
, doc/README.mdand
tasks/README.md`yard doc README.md,docs/README.md,tasks/README.md -o documentation/
documentation/index.html
in the browserThe 3 readme files will be listed. The one in the root folder will be recognised as the main document but the other 2 links will point to the same content.
Actual Output
Generated documentation linking 2 of the readmes to the same content:
Expected Output
Expecting yard to respect the file paths and link the files to the correct content
Environment details:
2.6.2
yard -v
):0.9.20
I have read the Contributing Guide.
The text was updated successfully, but these errors were encountered: