-
Notifications
You must be signed in to change notification settings - Fork 591
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
HTML Proofer bug #86
Comments
Are you sure that this is a bug of the proofer? I realised that many of the ERC markdown files still reference images and documents in the EIP folder. I could fix many of them with regex. See here: #42 |
For me it is clearly a bug, as in this case it happens on a file on which i manually updated the references to match the new terminology.
while in all logic, the path should not be an issue, as the |
Yes. Appears as if this was introduces just recently? Did not saw this behaviour last week. Sorry for having bothers.
where it should reside in ERCS/erc-3643.html. |
This renaming of the webpages is a bit disturbing, because it makes it a bit hard to check links in a PR on ones local repository. The markdown files should be locally consistent. ( see the proposal at the end of #42 - use relative links for ERCs and absolute links for EIPs) |
So it appears as if it is intended. |
*Several PRs to this repo have failed due to this issue -- that cannot possibly be intended behavior. Here are some possible solutions:
It would be great to solve this issue so that ERCs can continue to be developed, let me know which solution you prefer, and if you'd like my help to make the changes into a PR! |
I also do not like the current state. My proposal would be to use - for the time being -
in this repository and do the necessary renaming in the build of the webpage. It is a simple reg. exp. that can do this. However, it is not true that this is a bug and that every single PR failed due to this issue. If you just link to eip-xx.md instead of erc-xx.md the check will be OK. See the latest commit in this PR: #25 (the HTMLProofer has not failed in PR after the latest commit). PS: I fixed most of the broken links using the scheme above (local links to ERC, external links to EIP) here: #42 - but I believe it was decided to go a different route. |
In my opinion it is a bug, even if you can easily solve it by referencing As a conclusion, it makes no sense to try and get the bot to return a positive check if it means all relative links are broken when you click on them from the md files in the |
The goal of the HTML proofer is to ensure no link is broken. The goal is not to get the HTML proofer return |
Not sure if I understand your point. My understanding is: It was decisded that the generation of the HTML page performs a renaming of files (which I do not like, and which is the root of this issue). The HTMLProofer is not checking the files in this repo. It is checking the generated HTML site. (See the error messages). The bug is not in the HTMLProofer, the issue is that it was decided to rename erc-XX.md to eip-XX.md while building the side (and doing this without adjusting the links in the files). |
What i mean is that the links, if done like that, are all broken on the github side, if you navigate any file in the ERCs directory, the relative links will throw a 404 when you click on them. |
@cfries i understand, and i believe you are right, it is not a bug as such as the HTML proofer works the way it was required to work. The problem comes from the latter, the way the HTML Proofer is set at the moment is not correct. It has the benefit to display links correctly on the website, but at the same time the relative links are all broken on the github side. |
To clear up any confusion: the build system to combine the websites currently just renames the ERC-terminology files so that they use EIP-terminology files. It does NOT rewrite the file contents, however, including any links that use ERC-terminology. For the time being, use |
This is also a temporary measure. I'll be closing this, since we're all in agreement that it's not a good system. |
Pull Request
#44
What happened?
The HTML proofer is still looking for the files in
../assets/eip-XXX
while the files have been all updated to../assets/erc-XXX
during the split. Same happens for files./erc-XXX
that generate errors too as the HTML Proofer says they don't exist.In the PR #44 i updated the path of all assets files and HTML proofer bot blocks the PR with errors.
Relevant log output
The text was updated successfully, but these errors were encountered: