-
Notifications
You must be signed in to change notification settings - Fork 508
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
plain.html is not consistent with deployed index.html #11396
Comments
We don't make any guarantees about the contents of those |
Since generating index.html is deprecated, what do we use to get the output HTML, then? |
Rendering |
Could you add that to content's Also, the index.html is much bigger than plain.html and hard to parse. Having a stable plain.html is still much appreciated, but it's fine if you want to treat that as an implementation detail. |
I'm intrigued that the plain.html files don't have the same ids as index.html, we should probably fix that in its own right for AI Help. Otherwise, @Josh-Cena can you help me understand your workflow here? Why are you building and manually parsing the HTML files, rather than running |
@LeoMcA: I'm parsing plain.html as part of my link checker that detects broken anchor links. I run it on build output so it can handle links generated by macros. This bug doesn't block me now because I have since switched to parse index.json instead, but I think this is still nice-to-have for Yari. |
Summary
The output plain.html is not consistent with index.html, in particular the anchors are different.
URL
https://developer.mozilla.org/en-US/docs/Web/CSS/Value_definition_syntax#question_mark
Reproduction steps
yarn build files/en-us/web/css/value_definition_syntax/index.md --nohtml
build/en-us/docs/web/css/value_definition_syntax/plain.html
; search for "question_mark"<h3 id="question_mark_">
Expected behavior
The anchor is
question_mark
, because that's what the deployed page has (and whatyarn start
displays)Actual behavior
The anchor is
question_mark_
Device
Desktop
Browser
Chrome
Browser version
Stable
Operating system
Mac OS
Screenshot
No response
Anything else?
Apologies in advance if this is something that's changed very recently. My Yari version is the latest.
Validations
The text was updated successfully, but these errors were encountered: